IDiaStackWalkHelper::put_registerValue

Applies to: yesVisual Studio noVisual Studio for Mac

Note

This article applies to Visual Studio 2017. If you're looking for the latest Visual Studio documentation, see Visual Studio documentation. We recommend upgrading to the latest version of Visual Studio. Download it here

Sets the value of a register.

Syntax

HRESULT put_registerValue ( 
   DWORD     index,
   ULONGLONG NewVal
);

Parameters

index

[in] A value from the CV_HREG_e Enumeration enumeration specifying the register to write to.

NewVal

[in] The new register value.

Return Value

If successful, returns S_OK; otherwise, returns an error code.

Remarks

Despite the size of the value, an implementation should store only what the register normally holds. For example, an 8-bit register would hold only the lowest 8-bits of the given value.

See also