IDiaStackWalkHelper::readMemory
Applies to: Visual Studio Visual Studio for Mac
Note
This article applies to Visual Studio 2017. 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
Reads a block of data from the executable's image in memory.
Syntax
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.
Return Value
If successful, returns S_OK
; otherwise, returns an error code.