SymGetTypeInfo function (dbghelp.h)

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

Syntax

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

Parameters

[in] hProcess

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

[in] ModBase

The base address of the module.

[in] TypeId

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

[in] GetType

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

[out] 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

Requirement Value
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