Debugging Tools for Windows

GetValue

The GetValue method gets the value of one of the target's registers.

HRESULT
  IDebugRegisters::GetValue(
    IN ULONG  Register,
    OUT PDEBUG_VALUE  Value
    );

Parameters

Register
Specifies the index of the register whose value is requested.
Value
Receives the value of the register. See DEBUG_VALUE for a description of this parameter type.

Return Value

S_OK
The method was successful.
E_UNEXPECTED
The target is not accessible, or the register could not be accessed.
E_INVALIDARG
The value of Register is greater than the number of registers on the target machine.

This list does not contain all the errors that might occur. For a list of possible errors, see HRESULT Values.

Interface Version

GetValue is available in all versions of IDebugRegisters.

Comments

To receive the values of multiple registers, use the GetValues method instead.

For an overview of the IDebugRegisters interface and other register-related methods, see Registers.

Requirements

Headers: Defined in DbgEng.h. Include DbgEng.h.

See Also

GetValues, GetValues2

Build machine: CAPEBUILD