subcalls.hlp (Topic list)
MouClose (1.2)
Overview                                            Up Next Previous
────────────────────────────────────────────────────────────────────────────
 
#define INCL_MOU
 
USHORT MouClose(hmou)
HMOU hmou;    /* mouse handle */
 
The MouClose function closes the mouse identified by the given handle. The
function removes the mouse pointer from the screen only if the process is
the last one in the screen group to have the mouse open.
 
Parameter  Description
────────────────────────────────────────────────────────────────────────────
 
hmou       Identifies the mouse. The handle must have been created
           previously by using the MouOpen function.
 
Return Value
 
The return value is zero if the function is successful. Otherwise, it is an
error value, which may be the following:
 
     ERROR_MOUSE_NO_DEVICE
 
Example
 
This example creates a mouse handle then calls the MouClose function to
close the open handle:
 
HMOU hmou;
MouOpen(0L, &hmou);
    .
    .
    .
MouClose(hmou);
 
See Also
 
MouOpen