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.
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.