Kommentar
Åtkomst till den här sidan kräver auktorisering. Du kan prova att logga in eller ändra kataloger.
Åtkomst till den här sidan kräver auktorisering. Du kan prova att ändra kataloger.
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
uCodeLocationId
[in] Specifies the code location identifier. See the Remarks section for the IDebugDisassemblyStream2::GetCodeLocationId method for a description of a code location identifier.ppCodeContext
[out] Returns an IDebugCodeContext2 object that represents the associated code context.
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::GetCodeLocationId