Debugging Tools for Windows |
The GetPseudoDescription and GetPseudoDescriptionWide methods return a description of a pseudo-register, including its name and type.
HRESULT
IDebugRegisters2::GetPseudoDescription(
IN ULONG Register,
OUT OPTIONAL PSTR NameBuffer,
IN ULONG NameBufferSize,
OUT OPTIONAL PULONG NameSize,
OUT OPTIONAL PULONG64 TypeModule,
OUT OPTIONAL PULONG TypeId
);
HRESULT
IDebugRegisters2::GetPseudoDescriptionWide(
IN ULONG Register,
OUT OPTIONAL PWSTR NameBuffer,
IN ULONG NameBufferSize,
OUT OPTIONAL PULONG NameSize,
OUT OPTIONAL PULONG64 TypeModule,
OUT OPTIONAL PULONG TypeId
);
#ifdef UNICODE
#define GetPseudoDescriptionT GetPseudoDescriptionWide
#else
#define GetPseudoDescriptionT GetPseudoDescription
#endif
This list does not contain all the errors that might occur. For a list of possible errors, see HRESULT Values.
GetPseudoDescription and GetPseudoDescriptionWide are available in IDebugRegisters2 and later versions.
Descriptions are not always available for all registers. If a pseudo-register does not have a value ‑ for example, $eventip will not have a value before an event has occurred ‑ or a type cannot be determined for a pseudo-register, this method will return E_FAIL.
For an overview of the IDebugRegisters interface and other register-related methods, see Registers.
Headers: Defined in DbgEng.h. Include DbgEng.h.