SymGetTypeInfo function

Retrieves type information for the specified type index. For larger queries, use the SymGetTypeInfoEx function.

Syntax

BOOL IMAGEAPI SymGetTypeInfo(
  HANDLE                    hProcess,
  DWORD64                   ModBase,
  ULONG                     TypeId,
  IMAGEHLP_SYMBOL_TYPE_INFO GetType,
  PVOID                     pInfo
);

Parameters

hProcess

A handle to a process. This handle must have been previously passed to the SymInitialize function.

ModBase

The base address of the module.

TypeId

The type index. (A number of functions return a type index in the TypeIndex member of the SYMBOL_INFO structure.)

GetType

The information type. This parameter can be one of more of the values from the IMAGEHLP_SYMBOL_TYPE_INFO enumeration type.

pInfo

The data. The format of the data depends on the value of the GetType parameter.

Return Value

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.

Remarks

For more details on the type information, see the documentation for the PDB format.

All DbgHelp functions, such as this one, are single threaded. Therefore, calls from more than one thread to this function will likely result in unexpected behavior or memory corruption. To avoid this, you must synchronize all concurrent calls from more than one thread to this function.

Requirements

   
Target Platform Windows
Header dbghelp.h
Library Dbghelp.lib
DLL Dbghelp.dll
Redistributable DbgHelp.dll 5.1 or later

See Also

DbgHelp Functions

IMAGEHLP_SYMBOL_TYPE_INFO

SymGetTypeFromName

SymGetTypeInfoEx