Debugging Tools for Windows |
The SetTextMacro and SetTextMacroWide methods set the value of a fixed-name alias.
HRESULT
IDebugControl::SetTextMacro(
IN ULONG Slot,
IN PCSTR Macro
);
HRESULT
IDebugControl4::SetTextMacroWide(
IN ULONG Slot,
IN PCWSTR Macro
);
#ifdef UNICODE
#define SetTextMacroT SetTextMacroWide
#else
#define SetTextMacroT SetTextMacro
#endif
This method may also return error values. See Return Values for more details.
SetTextMacro is available in all versions of IDebugControl. SetTextMacroWide is available in IDeubgControl4 and later versions.
Before executing commands or evaluating expressions, the debugger engine will replace the alias specified by Slot with the value of the alias (specified by Macro).
For an overview of aliases used by the debugger engine, see Using Aliases. For more information about using aliases with the debugger engine API, see Interacting with the Engine.
Headers: Defined in Dbgeng.h. Include Dbgeng.h.
GetTextMacro, SetTextReplacement, RemoveTextReplacements, r (Registers)