Condividi tramite


IDebugCodeContext2::GetDocumentContext

Gets the document context that corresponds to this code context. The document context represents a position in the source file that corresponds to the source code that generated this instruction.

HRESULT GetDocumentContext( 
   IDebugDocumentContext2** ppSrcCxt
);
int GetDocumentContext( 
   out IDebugDocumentContext2 ppSrcCxt
);

Parameters

Return Value

If successful, returns S_OK; otherwise, returns an error code.

Remarks

Generally, the document context can be thought of as a position in a source file while the code context is a position of a code instruction in an execution stream.

See Also

Reference

IDebugCodeContext2

IDebugDocumentContext2