IDebugSymbols3::GetTypeIdWide method (dbgeng.h)

The GetTypeIdWide method looks up the specified type and return its type ID.

Syntax

HRESULT GetTypeIdWide(
  [in]  ULONG64 Module,
  [in]  PCWSTR  Name,
  [out] PULONG  TypeId
);

Parameters

[in] Module

Specifies the base address of the module to which the type belongs. For more information, see Modules. If Name contains a module name, Module is ignored.

[in] Name

Specifies the name of the type whose type ID is desired. If Name is a module-qualified name (for example mymodule!main), the Module parameter is ignored.

[out] TypeId

Receives the type ID of the symbol.

Return value

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

Return code Description
S_OK
The method was successful.

Remarks

If the specified symbol is a type, these methods return the type ID for that type; otherwise, they return the type ID for the type of the symbol.

A variable whose type was defined using typedef has a type ID that identifies the original type, not the type created by typedef. In the following example, the type ID of MyInstance corresponds to the name MyStruct (this correspondence can be seen by passing the type ID to GetTypeName):

struct MyStruct { int a; };
typedef struct MyStruct MyType;
MyType MyInstance;

Moreover, calling these methods for MyStruct and MyType yields type IDs corresponding to MyStruct and MyType, respectively.

For more information about symbols and symbol names, see Symbols.

Requirements

Requirement Value
Target Platform Desktop
Header dbgeng.h (include Dbgeng.h)

See also

GetOffsetTypeId

GetSymbolTypeId

IDebugSymbols3