共用方式為


IDebugBinder::GetMemoryContext

這個方法會將物件位置或記憶體位址轉換成記憶體內容。

語法

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

參數

pField
[in] 描述要尋找之物件的IDebugField 。 如果 NULL為 ,請改用 dwConstant

dwConstant
[in]常數記憶體位址,例如0x5000。

ppMemCxt
[out]會傳 回代表物件位址的 IDebugMemoryContext2 介面,或記憶體中的位址。

傳回值

如果成功,則會傳回 S_OK;否則,會傳回錯誤碼。

另請參閱