dos12.hlp (Table of Contents; Topic list)
DosMonClose (1.2)
Function Group  Overview                          Up Next Previous
────────────────────────────────────────────────────────────────────────────
 
#define INCL_DOSMONITORS
 
USHORT DosMonClose(hmon)
HMONITOR hmon;    /* monitor handle to close */
 
The DosMonClose function closes the specified monitor. The function flushes
and closes all monitor buffers associated with this process.
 
Parameter  Description
────────────────────────────────────────────────────────────────────────────
 
hmon       Identifies the monitor to close. This handle must have been
           created previously by using the DosMonOpen 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_MON_INVALID_HANDLE
 
See Also
 
DosMonOpen, DosMonRead, DosMonReg, DosMonWrite