IDebugBinder::GetMemoryContext

此方法将对象位置或内存地址转换为内存上下文。

语法

int GetMemoryContext(
   IDebugField              pField,
   uint                     dwConstant,
   out IDebugMemoryContext2 ppMemCxt
);

参数

pField
[in]描述 要查找的对象的 IDebugField 。 如果是 NULL,则改用 dwConstant

dwConstant
[in]常量内存地址,例如0x5000。

ppMemCxt
[out]返回 表示对象地址或内存中地址的 IDebugMemoryContext2 接口。

返回值

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

另请参阅