Udostępnij za pośrednictwem


IDkmRegisterWrite.SetRegisterValue Method

Definition

Sets the value of the register in the thread's context. Sub registers that are made up of larger registers are supported.

public:
 void SetRegisterValue(Microsoft::VisualStudio::Debugger::DkmRuntimeInstance ^ runtimeInstance, Microsoft::VisualStudio::Debugger::CallStack::DkmStackWalkFrame ^ stackWalkFrame, int registerIndex, System::Collections::ObjectModel::ReadOnlyCollection<System::Byte> ^ value);
public void SetRegisterValue (Microsoft.VisualStudio.Debugger.DkmRuntimeInstance runtimeInstance, Microsoft.VisualStudio.Debugger.CallStack.DkmStackWalkFrame stackWalkFrame, int registerIndex, System.Collections.ObjectModel.ReadOnlyCollection<byte> value);
abstract member SetRegisterValue : Microsoft.VisualStudio.Debugger.DkmRuntimeInstance * Microsoft.VisualStudio.Debugger.CallStack.DkmStackWalkFrame * int * System.Collections.ObjectModel.ReadOnlyCollection<byte> -> unit
Public Sub SetRegisterValue (runtimeInstance As DkmRuntimeInstance, stackWalkFrame As DkmStackWalkFrame, registerIndex As Integer, value As ReadOnlyCollection(Of Byte))

Parameters

runtimeInstance
DkmRuntimeInstance

[In] The DkmRuntimeInstance class represents an execution environment which is loaded into a DkmProcess and which contains code to be debugged.

stackWalkFrame
DkmStackWalkFrame

[In] The stack frame the register is being set in. For most runtime instances, this is used to verify the stack frame is the top of the stack and stop the write if it isn't.

registerIndex
Int32

[In] The CV constant of the register to set.

value
ReadOnlyCollection<Byte>

[In] The value to set the register to. The size of the byte array must match the width of the register being set.

Applies to