Virtual Devices (3.1) (vdag31qh.hlp) (Table of Contents; Topic list)
Important Notice
The pages on this site contain documentation for very old MS-DOS software, purely for historical purposes. If you're looking for up-to-date documentation, particularly for programming, you should not rely on the information found here, as it will be woefully out of date.
VKD_API_Force_Key
                                                     Up Next Previous
────────────────────────────────────────────────────────────────────────────
 
include vkd.inc
 
VxDcall VKD_API_Force_Key
 
The VKD_API_Force_Key service forces a key into a virtual machine as if it
was typed on the keyboard. VKD will scan these forced keys for hot keys, so
forcing VKD hot keys is allowed.
 
Parameter  Description
────────────────────────────────────────────────────────────────────────────
 
EBX        Specifies the virtual machine handle or 0 for current focus.
 
CH         Specifies the scan code.
 
CL         Specifies the repeat count (1 or more).
 
EDX        Specifies the shift state (-1 means no change).
 
Return Value
 
The carry flag is set if an error occurs.
 
Comments
 
This service is currently limited to the focus virtual machine, so the
service fails if the EBX register is not zero or not the focus virtual
machine handle.
 
Uses
 
Flags
 
                                      ♦