Export (0) Print
Expand All
Expand Minimize

SymGetTypeInfo function

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

Syntax


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

Parameters

hProcess [in]

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

ModBase [in]

The base address of the module.

TypeId [in]

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

GetType [in]

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

pInfo [out]

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

Redistributable

DbgHelp.dll 5.1 or later

Header

Dbghelp.h

Library

Dbghelp.lib

DLL

Dbghelp.dll

See also

DbgHelp Functions
IMAGEHLP_SYMBOL_TYPE_INFO
SymGetTypeFromName
SymGetTypeInfoEx

 

 

Community Additions

ADD
Show:
© 2015 Microsoft