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 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.

See Also

Reference

IDiaStackWalkHelper

MemoryTypeEnum