Freigeben über


IDebugCanStopEvent2::GetCodeContext

Gets the code context that describes the location of this event.

HRESULT GetCodeContext( 
   IDebugCodeContext2** ppCodeContext
);
int GetCodeContext( 
   out IDebugCodeContext2 ppCodeContext
);

Parameters

  • ppCodeContext
    [out] Returns the IDebugCodeContext2 object that represents the current code location.

Return Value

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

Remarks

For most run-time architectures, a code context can be thought of as an address in a program's execution stream, pointing to a specific instruction.

To get the document context, which is oriented towards lines of source code, call the IDebugCanStopEvent2::GetDocumentContext method.

See Also

Reference

IDebugCanStopEvent2

IDebugCodeContext2

IDebugCanStopEvent2::GetDocumentContext