MouClose: Difference between revisions
Appearance
No edit summary |
mNo edit summary |
||
Line 1: | Line 1: | ||
MouClose closes the mouse device for the current session and removes the mouse device driver handle from the list of valid open mouse device handles. | MouClose closes the mouse device for the current session and removes the mouse device driver handle from the list of valid open mouse device handles. | ||
Line 12: | Line 8: | ||
==Return Code== | ==Return Code== | ||
;rc (USHORT) - return:Return code descriptions are: | |||
Return code descriptions are: | |||
* 0 - NO_ERROR | * 0 - NO_ERROR | ||
* 385 - ERROR_MOUSE_NO_DEVICE | * 385 - ERROR_MOUSE_NO_DEVICE | ||
Line 20: | Line 15: | ||
* 505 - ERROR_MOU_EXTENDED_SG | * 505 - ERROR_MOU_EXTENDED_SG | ||
== | ==Bindings== | ||
=== C | === C === | ||
<PRE> | <PRE> | ||
#define INCL_MOU | #define INCL_MOU | ||
Line 27: | Line 22: | ||
USHORT rc = MouClose(DeviceHandle); | USHORT rc = MouClose(DeviceHandle); | ||
HMOU | HMOU DeviceHandle; /* Mouse device handle */ | ||
USHORT | USHORT rc; /* return code */ | ||
</PRE> | </PRE> | ||
===MASM | ===MASM=== | ||
<PRE> | <PRE> | ||
EXTRN MouClose:FAR | EXTRN MouClose:FAR |
Revision as of 14:30, 24 May 2019
MouClose closes the mouse device for the current session and removes the mouse device driver handle from the list of valid open mouse device handles.
Syntax
MouClose (DeviceHandle)
Parameters
- DeviceHandle (HMOU) - input
- Mouse device handle from a previous MouOpen.
Return Code
- 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
Bindings
C
#define INCL_MOU USHORT rc = MouClose(DeviceHandle); HMOU DeviceHandle; /* Mouse device handle */ USHORT rc; /* return code */
MASM
EXTRN MouClose:FAR INCL_MOU EQU 1 PUSH WORD DeviceHandle ;Mouse device handle CALL MouClose Returns WORD