IDiaSession::findSymbolByAddr

IDiaSession::findSymbolByAddr

 

Retrieves a specified symbol type that contains, or is closest to, a specified address.

HRESULT findSymbolByAddr ( 
   DWORD        isect,
   DWORD        offset,
   SymTagEnum   symtag,
   IDiaSymbol** ppSymbol
);

isect

[in] Specifies the section component of the address.

offset

[in] Specifies the offset component of the address.

symtag

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

ppSymbol

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

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

Example

IDiaSymbol* pFunc;
pSession->findSymbolByAddr( isect, offset, SymTagFunction, &pFunc );
Show:
© 2016 Microsoft