Skip to content

Latest commit

 

History

History
61 lines (46 loc) · 1.58 KB

idiasession-findsymbolbyrvaex.md

File metadata and controls

61 lines (46 loc) · 1.58 KB
description title ms.date ms.topic dev_langs helpviewer_keywords author ms.author manager ms.subservice
Retrieves a specified symbol type that contains, or is closest to, a specified relative virtual address (RVA) and offset.
IDiaSession::findSymbolByRVAEx
11/04/2016
reference
C++
IDiaSession::findSymbolByRVAEx method
mikejo5000
mikejo
mijacobs
debug-diagnostics

IDiaSession::findSymbolByRVAEx

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

Syntax

HRESULT findSymbolByRVAEx ( 
   DWORD        rva,
   SymTagEnum   symtag,
   IDiaSymbol** ppSymbol,
   LONG*        displacement
);

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.

displacement

[out] Returns a value specifying an offset from the relative virtual address specified in rva.

Return Value

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

Example

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

See also