Condividi tramite


IDebugDisassemblyStream2::GetCodeContext

Returns a code context object corresponding to a specified code location identifier.

HRESULT GetCodeContext( 
   UINT64               uCodeLocationId,
   IDebugCodeContext2** ppCodeContext
);
int GetCodeContext( 
   ulong                  uCodeLocationId,
   out IDebugCodeContext2 ppCodeContext
);

Parameters

Return Value

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

Remarks

The code location identifier can be returned from a call to the IDebugDisassemblyStream2::GetCurrentLocation method and can appear in the DisassemblyData structure.

To convert a code context into a code location identifier, call the IDebugDisassemblyStream2::GetCodeLocationId method.

See Also

Reference

IDebugDisassemblyStream2

IDebugCodeContext2

IDebugDisassemblyStream2::GetCodeLocationId

IDebugDisassemblyStream2::GetCurrentLocation

DisassemblyData