|Debugging Tools for Windows|
The SetValue method sets the value of one of the target's registers.
IN ULONG Register,
IN PDEBUG_VALUE Value
This list does not contain all the errors that might occur. For a list of possible errors, see HRESULT Values.
SetValue is available in all versions of IDebugRegisters.
The engine does its best to coerce the value of Value into the type of the register; this coercion is the same as that performed by CoerceValue. If the value is larger than what the register can hold, the least significant bits are dropped. Floating-point and integer conversions will also be performed if necessary.
When a subregister is altered, the register containing it is also altered.
To set the values of multiple registers, use the SetValues method instead.
For an overview of the IDebugRegisters interface and other register-related methods, see Registers.
Headers: Defined in DbgEng.h. Include DbgEng.h.