Platform SDK: Debugging and Error Handling |
The SymGetSymbolInfo function retrieves advanced symbol information for a specified symbol. This function is intended for use by Windows 2000 debuggers.
This function is implemented as a wrapper that calls SymGetSymbolInfo64. For more information, see New 64-bit Functions.
BOOL SymGetSymbolInfo( HANDLE hProcess, DWORD Address, IMAGEHLP_TYPES TypeIn, PBYTE DataIn, IMAGEHLP_TYPES TypeOut, PULONG SizeOut, PBYTE DataOut );
For SymGetSymbolInfo64, the parameter list is as follows.
BOOL SymGetSymbolInfo64( HANDLE hProcess, DWORD64 Address, IMAGEHLP_TYPES TypeIn, PBYTE DataIn, IMAGEHLP_TYPES TypeOut, PULONG SizeOut, PBYTE DataOut );
Value | Meaning |
---|---|
IMAGEHLP_TYPEID_IMAGEHLP_SYMBOL | The DataIn parameter is a pointer to an IMAGEHLP_SYMBOL structure. |
IMAGEHLP_TYPEID_IMAGEHLP_SYMBOL64 | The DataIn parameter is a pointer to an IMAGEHLP_SYMBOL64 structure. |
IMAGEHLP_TYPEID_NAME | The DataIn parameter is a pointer to a string that specifies the symbol name. |
Value | Meaning |
---|---|
IMAGEHLP_TYPEID_INDEX | The function takes the symbol name in DataIn and returns its type index in DataOut. |
IMAGEHLP_TYPEID_TYPE_ENUM_INFO | The function takes the partial symbol name in DataIn and enumerates all symbols that begin with the same characters. The DataOut parameter is a pointer to a TYPE_ENUM_INFO structure. Each time the function finds a match, it calls the SymTypeNameCallback function specified in the structure. |
If the function succeeds, the return value is TRUE.
If the function fails, the return value is FALSE. To retrieve extended error information, call GetLastError.
Windows NT/2000: Requires Windows 2000. Available as a redistributable for Windows NT 4.0.
Windows 95/98: Requires Available as a redistributable for Windows 98.
Header: Declared in Dbghelp.h.
Library: Use Dbghelp.lib.