include vkd.inc mov ebx, VMHandle mov ch, ScanCode mov cl, RepeatCount mov edx, ShiftState VxDcall VKD_API_Force_Key jc errorhandler
Forces a key into a virtual machine as if it were typed on the keyboard. Because the VKD scans these forced keys for hot keys, forcing VKD hot keys is allowed. Uses Flags. Clears the carry flag upon success, sets it upon failure.
VMHandle
Handle of the virtual machine, or 0 for the virtual machine that currently has the focus.
ScanCode
Scan code.
RepeatCount
Repeat count (1 or more).
ShiftState
Shift state (1 means no change).
This service is currently limited to the focus virtual machine, so the service fails if VMHandle is not zero or not the focus virtual machine handle.