VKD_Get_Msg_Key

include vkd.inc

VxDcall VKD_Get_Msg_Key


The VKD_Get_Msg_Key service returns the next available key from the special message mode input buffer, and removes it from the buffer. If no key is available, then the zero flag is set.

This service does not block.

Parameters

EBX

Specifies the virtual machine handle.

Return Value

The zero flag is clear if a key is read. The AL register contains the scan code and the AH register contains a combination of the following modifier flag values:

Value Meaning

MK_Alt An ALT key is down.
MK_Ctrl A CTRL key is down.
MK_Extended The key is an extended key.
MK_Shift A SHIFT key is down.

The zero flag is set if no key is available.

Uses

EAX, Flags