Skip to content

Latest commit

 

History

History
45 lines (35 loc) · 1.31 KB

idiastackwalkhelper-get-registervalue.md

File metadata and controls

45 lines (35 loc) · 1.31 KB
description title ms.date ms.topic dev_langs helpviewer_keywords author ms.author manager ms.subservice
IDiaStackWalkHelper::get_registerValue retrieves the value of a register.
IDiaStackWalkHelper::get_registerValue
11/04/2016
reference
C++
IDiaStackWalkHelper2::get_registerValue method
mikejo5000
mikejo
mijacobs
debug-diagnostics

IDiaStackWalkHelper::get_registerValue

Retrieves the value of a register.

Syntax

HRESULT get_registerValue ( 
   DWORD      index,
   ULONGLONG* pRetVal
);

Parameters

index

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

pRetVal

[out] Returns the current value of the register.

Return Value

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

Remarks

Despite the size of the pRetVal parameter, an implementation should store only what the register normally holds. For example, an 8-bit register holds only the lowest 8-bits of the given value. This 8-bit value is expanded to 64-bits when returned from this method.

See also