Compartilhar via


IDiaReadExeAtRVACallback::ReadExecutableAtRVA

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 the specified number of bytes starting at the specified relative virtual address (RVA) from the executable file.

Syntax

HRESULT ReadExecutableAtRVA (   
   DWORD  relativeVirtualAddress,  
   DWORD  cbData,  
   DWORD* pcbData,  
   BYTE   data[]  
);  

Parameters

relativeVirtualAddress
[in] The RVA in the executable file to begin reading.

cbData
[in] Number of bytes to read.

pcbData
[out] Returns the number of bytes read.

data[]
[in, out] An array that is filled in with bytes read from the file.

Remarks

This method is called by the DIA support code to load data bytes from an executable using a relative virtual address. This method is called in support of the IDiaDataSource::loadDataForExe method.

See Also

IDiaReadExeAtRVACallback
IDiaDataSource::loadDataForExe