IDebugDisassemblyStream2:: GetCodeContext

返回代码上下文对象具有指定的代码位置标识符相对应。

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

参数

返回值

如果成功,则返回; S_OK否则,返回错误代码。

备注

代码位置标识符从调用返回到 IDebugDisassemblyStream2:: GetCurrentLocation 方法,并可以出现在 DisassemblyData 结构。

若要将代码上下文为代码位置标识符,请调用 IDebugDisassemblyStream2:: GetCodeLocationId 方法。

请参见

参考

IDebugDisassemblyStream2

IDebugCodeContext2

IDebugDisassemblyStream2:: GetCodeLocationId

IDebugDisassemblyStream2:: GetCurrentLocation

DisassemblyData