返回代码上下文对象具有指定的代码位置标识符相对应。
HRESULT GetCodeContext(
UINT64 uCodeLocationId,
IDebugCodeContext2** ppCodeContext
);
int GetCodeContext(
ulong uCodeLocationId,
out IDebugCodeContext2 ppCodeContext
);
参数
uCodeLocationId
[in] 指定代码位置标识符。 为代码位置标识符的声明中 IDebugDisassemblyStream2:: GetCodeLocationId 方法参见 " 备注 " 节。ppCodeContext
[out] 返回表示关联的代码上下文的 IDebugCodeContext2 对象。
返回值
如果成功,则返回; S_OK否则,返回错误代码。
备注
代码位置标识符从调用返回到 IDebugDisassemblyStream2:: GetCurrentLocation 方法,并可以出现在 DisassemblyData 结构。
若要将代码上下文为代码位置标识符,请调用 IDebugDisassemblyStream2:: GetCodeLocationId 方法。
请参见
参考
IDebugDisassemblyStream2:: GetCodeLocationId