Export (0) Print
Expand All
This topic has not yet been rated - Rate this topic

IDiaSession::findSymbolByToken

Retrieves the symbol that contains a specified metadata token.

HRESULT findSymbolByToken ( 
   ULONG        token,
   SymTagEnum   symtag,
   IDiaSymbol** ppSymbol
);
token

[in] Specifies the token.

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.

IDiaSymbol* pFunc;
pSession->findSymbolByToken( token, SymTagFunction, &pFunc );
Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2014 Microsoft. All rights reserved.