Debugging Tools for Windows |
The GetSymbolInformation and SetSymbolInformationWide methods return specified information about a symbol.
HRESULT
IDebugAdvanced2::GetSymbolInformation(
IN ULONG Which,
IN ULONG64 Arg64,
IN ULONG Arg32,
OUT OPTIONAL PVOID Buffer,
IN ULONG BufferSize,
OUT OPTIONAL PULONG InfoSize,
OUT OPTIONAL PSTR StringBuffer,
IN ULONG StringBufferSize,
OUT OPTIONAL PULONG StringSize
);
HRESULT
IDebugAdvanced3::GetSymbolInformationWide(
IN ULONG Which,
IN ULONG64 Arg64,
IN ULONG Arg32,
OUT OPTIONAL PVOID Buffer,
IN ULONG BufferSize,
OUT OPTIONAL PULONG InfoSize,
OUT OPTIONAL PWSTR StringBuffer,
IN ULONG StringBufferSize,
OUT OPTIONAL PULONG StringSize
);
#ifdef UNICODE
#define GetSymbolInformationT GetSymbolInformationWide
#else
#define GetSymbolInformationT GetSymbolInformation
#endif
Value | Information returned |
---|---|
DEBUG_SYMINFO_BREAKPOINT_SOURCE_LINE | Returns the source code file name and line number for a specified breakpoint. The line number is returned to Buffer as a ULONG. The file name is returned to StringBuffer. |
DEBUG_SYMINFO_IMAGEHLP_MODULEW64 | Returns an IMAGEHLP_MODULEW64 structure that describes a specified module. For details about this structure, see the IMAGEHELP_MODULE64 topic in the Debug Help Library documentation (dbghelp.chm). No string is returned and StringBuffer, StringBufferSize, and StringSize must all be set to zero. |
DEBUG_SYMINFO_GET_SYMBOL_NAME_BY_OFFSET_AND_TAG_WIDE | Returns the Unicode name of the symbol specified by location in memory and PDB tag type. The name is returned to Buffer. StringBuffer is not used. |
DEBUG_SYMINFO_GET_MODULE_SYMBOL_NAMES_AND_OFFSETS | Returns a list of symbol names and offsets for the symbols in the specified module with the specified PDB tag type. The offsets are returned as an array of ULONG values to Buffer. The names are returned in the same order as the offsets to StringBuffer. Some names might contain embedded zeros because annotations can have multi-part names; hence, each name is terminated with two null characters. |
This method may also return error values. See Return Values for more details.
GetSymbolInformation is available in IDebugAdvanced2 and later versions. GetSymbolInformationWide is available in IDebugAdvanved3 and later versions.
Headers: Defined in dbgeng.h. Include dbgeng.h.