MouCLose

Bindings: C, MASM

This call closes the mouse device for the current session.

MouClose (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

Remarks

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.