VKD_Force_Keys

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.

ScanCodes
Address of the buffer that contains scan codes.
num_ScanCodes
Number of scan codes in the buffer.