| Debugging Tools for Windows | 
The GetConstantName and GetConstantNameWide methods return the name of the specified constant.
HRESULT
  IDebugSymbols2::GetConstantName(
    IN ULONG64  Module,
    IN ULONG  TypeId,
    IN ULONG64  Value,
    OUT OPTIONAL PSTR  NameBuffer,
    IN ULONG  NameBufferSize,
    OUT OPTIONAL PULONG  NameSize
    );
HRESULT
  IDebugSymbols3::GetConstantName(
    IN ULONG64  Module,
    IN ULONG  TypeId,
    IN ULONG64  Value,
    OUT OPTIONAL PWSTR  NameBuffer,
    IN ULONG  NameBufferSize,
    OUT OPTIONAL PULONG  NameSize
    );
#ifdef UNICODE
#define GetConstantNameT GetConstantNameWide
#else
#define GetConstantNameT GetConstantName
#endif
This method may also return error values. See Return Values for more details.
GetConstantName is available in IDebugSymbols2 and later versions. GetConstantNameWide is available in IDebugSymbols and later versions.
For more information about symbols, see Symbols.
Headers: Defined in Dbgeng.h. Include Dbgeng.h.