include vkd.inc
mov esi, OFFSET32 ScanCodes
mov ecx, num_ScanCodes
VxDCall VKD_Force_Keys
jc errorhandler
Forces scan codes into the keyboard buffer just as if they had been typed on the physical keyboard. These keys are processed in the context of the focus virtual machine. Uses Flags. Clears the carry flag upon success, sets it if the keyboard buffer overflows.