IDebugSymbols2::GetConstantName method

The GetConstantName method returns the name of the specified constant.

Syntax


HRESULT GetConstantName(
  [in]            ULONG64 Module,
  [in]            ULONG   TypeId,
  [in]            ULONG64 Value,
  [out, optional] PSTR    NameBuffer,
  [in]            ULONG   NameBufferSize,
  [out, optional] PULONG  NameSize
);

Parameters

Module [in]

Specifies the base address of the module in which the constant was defined.

TypeId [in]

Specifies the type ID of the constant.

Value [in]

Specifies the value of the constant.

NameBuffer [out, optional]

Receives the constant's name. If NameBuffer is NULL, this information is not returned.

NameBufferSize [in]

Specifies the size in characters of the buffer NameBuffer.

NameSize [out, optional]

Receives the size in characters of the constant's name.

Return value

Return codeDescription
S_OK

The method was successful.

S_FALSE

The method was successful. However, the buffer was not large enough for the constant's name and it was truncated.

 

This method can also return error values. For more information, see Return Values.

Remarks

For more information about symbols, see Symbols.

Requirements

Target platform

Desktop

Header

Dbgeng.h (include Dbgeng.h)

 

 

Send comments about this topic to Microsoft

Show:
© 2015 Microsoft