Note: A prerelease of this API is available starting in the Windows Insiders Preview Build 17083
HRESULT WINAPI WHvCancelRunVirtualProcessor( _In_ WHV_PARTITION_HANDLE Partition, _In_ UINT32 VpIndex, _In_ UINT32 Flags );
Handle to the partition object
Specifies the index of the virtual processor for that the execution should be stopped
Unused, must be zero
Canceling the execution of a virtual processor allows an application to abort the call to run the virtual processor (
WHvRunVirtualProcessor) by another thread, and to return the control to that thread. The virtualization stack can use this function to return the control of a virtual processor back to the virtualization stack in case it needs to change the state of a VM or to inject an event into the processor.