IDiaStackWalkHelper::readMemory

 

The new home for Visual Studio documentation is Visual Studio 2017 Documentation on docs.microsoft.com.

The latest version of this topic can be found at IDiaStackWalkHelper::readMemory.

Reads a block of data from the executable's image in memory.

HRESULT readMemory(   
   enum MemoryTypeEnum type,  
   ULONGLONG           va,  
   DWORD               cbData,  
   DWORD*              pcbData,  
   BYTE*               pbData  
);  

Parameters

type
[in] A value from the MemoryTypeEnum Enumeration enumeration specifying the type of memory to read.

va
[in] Virtual address in the image from which to begin reading.

cbData
[in] The size of the data buffer in bytes.

pcbData
[out] Returns the number of bytes actually read. If pbData is NULL, then this is the total number of bytes of data available.

pbData
[in, out] A buffer that is filled in with the memory read.

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

IDiaStackWalkHelper
MemoryTypeEnum Enumeration

Show: