IDebugSymbolGroup::WriteSymbol method

The WriteSymbol methods set the value of the specified symbol.

Syntax


HRESULT WriteSymbol(
  [in]  ULONG Index,
  [in]  PCSTR Value
);

Parameters

Index [in]

The index of the symbol whose value will be changed. The index of a symbol is an identification number. The index ranges from zero through the number of symbols in the symbol group minus one.

Value [in]

A C++ expression that is evaluated to give the symbol's new value.

Return value

Return codeDescription
S_OK

The method was successful.

 

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

Remarks

The WriteSymbol method can change symbols only if the symbols are stored in a register or memory location that the debugger engine knowns and if they have not had their type changed to an extension by using the OutputAsType method.

For more information about symbol groups, see Scopes and Symbol Groups.

Requirements

Header

Dbgeng.h (include Dbgeng.h)

See also

IDebugSymbolGroup
IDebugSymbolGroup2
GetNumberSymbols
GetSymbolValueText

 

 

Send comments about this topic to Microsoft

Show:
© 2014 Microsoft