WHvGetVirtualProcessorRegisters

获取虚拟处理器的指定寄存器的值。

Syntax

HRESULT
WINAPI
WHvGetVirtualProcessorRegisters(
    _In_ WHV_PARTITION_HANDLE Partition,
    _In_ UINT32 VpIndex,
    _In_reads_(RegisterCount) const WHV_REGISTER_NAME* RegisterNames,
    _In_ UINT32 RegisterCount,
    _Out_writes_(RegisterCount) WHV_REGISTER_VALUE* RegisterValues
    );

参数

Partition

分区对象的句柄。

VpIndex

指定查询其寄存器的虚拟处理器的索引。

RegisterNames

指定所查询寄存器的名称的数组。

RegisterCount

指定数组中的 RegisterNames 元素数。

RegisterValues

接收查询寄存器的值。

返回值

如果函数成功,则返回值为 S_OK.

Remarks

WHvGetVirtualProcessorRegisters 函数获取虚拟处理器的指定寄存器的值。

要求

要求 价值
支持的最低Windows Windows 10版本 1803(x64):Windows 11版本 24H2 内部版本 26100.3915 (Arm64)
Header WinHvPlatform.h
图书馆 WinHvPlatform.lib
DLL WinHvPlatform.dll
Architecture x64、Arm64

另见