IDebugControl::SetTextMacro method

The SetTextMacro method sets the value of a fixed-name alias.

Syntax


HRESULT SetTextMacro(
  [in] ULONG Slot,
  [in] PCSTR Macro
);

Parameters

Slot [in]

Specifies the number of the fixed-name alias. Slot can take the values 0, 1, ..., 9, that represent the fixed-name aliases $u0, $u1, ..., $u9.

Macro [in]

Specifies the new value of the alias specified by Slot. The debugger engine makes a copy of this string.

Return value

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

Return codeDescription
S_OK

The method was successful.

 

Remarks

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.

Requirements

Target platform

Header

Dbgeng.h (include Dbgeng.h)

See also

IDebugControl
IDebugControl2
IDebugControl3
GetTextMacro
SetTextReplacement
RemoveTextReplacements
r (Registers)

 

 

Send comments about this topic to Microsoft

Show: