Debugging Tools for Windows

GetSymbolTypeId

The GetSymbolTypeId and GetSymbolTypeIdWide methods return the type ID and module of the specified symbol.

HRESULT
  IDebugSymbols::GetSymbolTypeId(
    IN PCSTR  Symbol,
    OUT PULONG  TypeId,
    OUT OPTIONAL PULONG64  Module
    );

HRESULT
  IDebugSymbols3::GetSymbolTypeIdWide(
    IN PCWSTR  Symbol,
    OUT PULONG  TypeId,
    OUT OPTIONAL PULONG64  Module
    );

#ifdef UNICODE
#define GetSymbolTypeIdT GetSymbolTypeIdWide
#else
#define GetSymbolTypeIdT GetSymbolTypeId
#endif

Parameters

Symbol
Specifies the expression whose type ID is requested. See the Comments section for details on the syntax of this expression.
TypeId
Receives the type ID.
Module
Receives the base address of the module containing the symbol. For more information, see Modules. If Module is NULL, this information is not returned.

Return Value

S_OK
The method was successful

This method may also return error values. See Return Values for more details.

Interface Version

GetSymbolTypeId is available in all versions of IDebugSymbols. GetSymbolTypeIdWide is available in IDebugSymbols3 and later versions.

Comments

The Symbol expression may contain structure fields, pointer dereferencing, and array dereferencing — for example my_struct.some_field[0].

For more information about symbols, see Symbols.

Requirements

Headers: Defined in Dbgeng.h. Include Dbgeng.h.

See Also

GetTypeId, GetSymbolTypeId

Build machine: CAPEBUILD