IDiaSession::findSymbolByRVA

 

For the latest documentation on Visual Studio 2017 RC, see Visual Studio 2017 RC Documentation.

Retrieves a specified symbol type that contains, or is closest to, a specified relative virtual address (RVA).

HRESULT findSymbolByRVA (   
   DWORD        rva,  
   SymTagEnum   symtag,  
   IDiaSymbol** ppSymbol  
);  

Parameters

rva
[in] Specifies the RVA.

symtag
[in] Symbol type to be found. Values are taken from the SymTagEnum Enumeration enumeration.

ppSymbol
[out] Returns an IDiaSymbol object that represents the symbol retrieved.

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

IDiaSymbol* pFunc;  
pSession->findSymbolByRVA( rva, SymTagFunction, &pFunc );  

IDiaSession
IDiaSymbol
SymTagEnum Enumeration

Show: