Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Sets the state of a virtual processor's interrupt controller.
Important
WHvSetVirtualProcessorInterruptControllerState is deprecated. Use WHvSetVirtualProcessorState with the WHvVirtualProcessorStateTypeInterruptControllerState2 state type instead.
Note
This function applies to x64 partitions only.
Syntax
HRESULT
WINAPI
WHvSetVirtualProcessorInterruptControllerState(
_In_ WHV_PARTITION_HANDLE Partition,
_In_ UINT32 VpIndex,
_In_reads_bytes_(StateSize) const VOID* State,
_In_ UINT32 StateSize
);
Parameters
Partition
Specifies the partition of the virtual processor.
VpIndex
Specifies the index of the virtual processor whose interrupt controller should be set.
State
Specifies a buffer containing the interrupt controller state.
StateSize
Specifies the size of the buffer, in bytes.
Return Value
If the function succeeds, the return value is S_OK.
If the virtual processor is currently running, the return value is WHV_E_INVALID_VP_STATE.
Remarks
The WHvSetVirtualProcessorInterruptControllerState function sets the state of the specified virtual processor's interrupt controller.
Requirements
| Requirement | Value |
|---|---|
| Minimum supported Windows | Windows 10, version 1809 |
| Header | WinHvPlatform.h |
| Library | WinHvPlatform.lib |
| DLL | WinHvPlatform.dll |
| Architecture | x64 |