SymGetTypeInfo Function

Debug Help Library

SymGetTypeInfo Function

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

BOOL WINAPI SymGetTypeInfo(
  __in          HANDLE hProcess,
  __in          DWORD64 ModBase,
  __in          ULONG TypeId,
  __in          IMAGEHLP_SYMBOL_TYPE_INFO GetType,
  __out         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.

To call the Unicode version of this function, define DBGHELP_TRANSLATE_TCHAR.

Requirements

Redistributable

Requires DbgHelp.dll 5.1 or later.

Header

Declared in Dbghelp.h.

Library

Use Dbghelp.lib.

DLL

Requires Dbghelp.dll.

See Also

DbgHelp FunctionsIMAGEHLP_SYMBOL_TYPE_INFO
SymGetTypeFromName
SymGetTypeInfoEx


Send comments about this topic to Microsoft

Build date: 9/25/2007

© 2007 Microsoft Corporation. All rights reserved.