MMRESULT mmioClose(hmmio, uFlags) | |||
HMMIO hmmio; | |||
UINT uFlags; |
The mmioClose function closes a file opened with mmioOpen.
hmmio
Specifies the file handle of the file to close.
uFlags
Specifies options for the close operation.
Value | Meaning |
MMIO_FHOPEN | ||
If the file was opened by passing the DOS file handle of an already-opened file to mmioOpen, then using this flag tells mmioClose to close the MMIO file handle, but not the DOS file handle. (This is done by the I/O Proc). |
The return value is zero if the function is successful. Otherwise, the return value is an error code, either from mmioFlush or from the I/O procedure. The error code can be one of the following codes:
Value | Meaning |
MMIOERR_CANNOTWRITE | The contents of the buffer could not be written to disk. |
MMIOERR_CANNOTCLOSE | There was a DOS file system error when the I/O Proc attempted to close the DOS file. |
mmioOpen, mmioFlush