IDebugBinder::GetMemoryContext
這個方法會將物件位置或記憶體位址轉換為記憶體內容。
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。 否則,會傳回錯誤碼。