Debugging Tools for Windows

GetTypeName

The GetTypeName and GetTypeNameWide methods return the name of the type symbol specified by its type ID and module.

HRESULT
  IDebugSymbols::GetTypeName(
    IN ULONG64  Module,
    IN ULONG  TypeId,
    OUT OPTIONAL PSTR  NameBuffer,
    IN ULONG  NameBufferSize,
    OUT OPTIONAL PULONG  NameSize
    );

HRESULT
  IDebugSymbols3::GetTypeNameWide(
    IN ULONG64  Module,
    IN ULONG  TypeId,
    OUT OPTIONAL PWSTR  NameBuffer,
    IN ULONG  NameBufferSize,
    OUT OPTIONAL PULONG  NameSize
    );

#ifdef UNICODE
#define GetTypeNameT GetTypeNameWide
#else
#define GetTypeNameT GetTypeName
#endif

Parameters

Module
Specifies the base address of the module to which the type belongs. For more information, see Modules.
TypeId
Specifies the type ID of the type.
NameBuffer
Receives the name of the type. If NameBuffer is NULL, this information is not returned.
NameBufferSize
Specifies the size in characters of the buffer NameBuffer.
NameSize
Receives the size in characters of the type's name. If NameSize is NULL, this information is not returned.

Return Value

S_OK
The method was successful.
S_FALSE
The method was successful. However, the buffer was not large enough to hold the name of the type and it was truncated.
E_FAIL
The specified type could not be found in the specified module.

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

Interface Version

GetTypeName is available in all versions of IDebugSymbols. GetTypeNameWide is available in IDebugSymbols3 and later versions.

Comments

For more information about symbols, see Symbols.

Requirements

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

See Also

GetTypeSize

Build machine: CAPEBUILD