Freigeben über


IDebugBinder::GetMemoryContext

This method converts either an object location or a memory address to a memory context.

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

Parameters

  • pField
    [in] An IDebugField describing the object to locate. If NULL, then use dwConstant instead.

  • dwConstant
    [in] A constant memory address, such as 0x5000.

  • ppMemCxt
    [out] Returns the IDebugMemoryContext2 interface that represents the address of the object, or the address in memory.

Return Value

If successful, returns S_OK; otherwise, returns an error code.

See Also

Reference

IDebugBinder

IDebugMemoryContext2

IDebugField