Compartilhar via


IDiaStackWalkFrame::readMemory

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

Reads memory from image.

Syntax

HRESULT readMemory (   
   MemoryTypeEnum type,  
   ULONGLONG va,  
   DWORD     cbData,  
   DWORD*    pcbData,  
   BYTE      data[]  
);  

Parameters

type
[in] One of the MemoryTypeEnum Enumeration enumeration values that specifies the kind of memory to access.

va
[in] Virtual address location in image to begin reading.

cbData
[in] Size of the data buffer, in bytes.

pcbData
[out] Returns the number of bytes returned. If data is NULL, then pcbData contains the total number of bytes of data available.

data
[out] A buffer that is to be filled in with data from the specified location.

Return Value

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

See Also

IDiaStackWalkFrame