en:ibm:prcp:mou:flushque

MouFlushQue

Bindings: C, MASM

This call directs the mouse driver to flush (empty) the mouse event queue and the monitor chain data for the session.

MouFlushQue (DeviceHandle)

DeviceHandle (HMOU) - input Mouse device handle from a previous MouOpen.

rc (USHORT) - return Return code descriptions are:

0 NO_ERROR
385 ERROR_MOUSE_NO_DEVICE
466 ERROR_MOU_DETACHED
501 ERROR_MOUSE_NO_CONSOLE
505 ERROR_MOU_EXTENDED_SG

C bindings

#define INCL_MOU
 
USHORT  rc = MouFlushQue(DeviceHandle);
 
HMOU             DeviceHandle;  /* Mouse device handle */
 
USHORT           rc;            /* return code */

MASM bindings

EXTRN  MouFlushQue:FAR
INCL_MOU            EQU 1
 
PUSH   WORD    DeviceHandle  ;Mouse device handle
CALL   MouFlushQue
 
Returns WORD