此方法将对象位置或内存地址为内存上下文。
HRESULT GetMemoryContext(
IDebugField* pField,
DWORD dwConstant,
IDebugMemoryContext2** ppMemCxt
);
int GetMemoryContext(
IDebugField pField,
uint dwConstant,
out IDebugMemoryContext2 ppMemCxt
);
参数
pField
[in] 描述对象的 IDebugField 找到。 如果 NULL,然后使用 dwConstant 。dwConstant
[in] 常数的内存地址,例如 0x5000。ppMemCxt
[out] 返回表示对象的地址的 IDebugMemoryContext2 接口,或者在内存中的地址。
返回值
如果成功,则返回; S_OK否则,返回错误代码。