IDiaSession::findSymbolByRVA
Retrieves a specified symbol type that contains, or is closest to, a specified relative virtual address (RVA).
Syntax
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.
Return Value
If successful, returns S_OK
; otherwise, returns an error code.
Example
IDiaSymbol* pFunc;
pSession->findSymbolByRVA( rva, SymTagFunction, &pFunc );
See also
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for