VKD_Peek_Msg_Key

include vkd.inc

VxDcall VKD_Peek_Msg_Key


The VKD_Peek_Msg_Key service returns the next available key from the special message-mode input buffer without removing it from the buffer. If no key is available, the zero flag is set.

Parameters

EBX

Specifies 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