IDiaSession::findSymbolByVAEx

 

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 virtual address (VA) and offset.

HRESULT findSymbolByVAEx (   
   ULONGLONG    va,  
   SymTagEnum   symtag,  
   IDiaSymbol** ppSymbol,  
   LONG*        displacement  
);  

Parameters

va
[in] Specifies the VA.

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.

displacement
[out] Returns a value that specifies an offset from the virtual address given by va.

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

IDiaSymbol* pFunc;  
LONG disp = 0;  
pSession->findSymbolByVAEx( va, SymTagFunction, &pFunc, &disp );  

IDiaSession
IDiaSession::findChildren
IDiaSession::findSymbolByVA
IDiaSymbol
SymTagEnum Enumeration

Show: