Partager via


IDebugBinder::GetMemoryContext

Note

This article applies to Visual Studio 2015. If you're looking for the latest Visual Studio documentation, see Visual Studio documentation. We recommend upgrading to the latest version of Visual Studio. Download it here

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

Syntax

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

IDebugBinder
IDebugMemoryContext2
IDebugField