mmioClose(3mms) — Subroutines
Name
mmioClose --- Close a file
Syntax
#include <mme/mme_api.h>
MMRESULT APIENTRY mmioClose(HMMIO hmmio,
UINT uFlags);
Arguments
HMMIO hmmio
Specifies the file handle of the file to close.
UINT uFlags
Specifies options for the close operation. The following flag is defined:
MMIO_FHOPEN
Indicates that if a UNIX file handle of a previously opened file is passed to the mmioOpen function, the mmioClose function is to close the MMIO file handle but not the UNIX file handle.
Description
The mmioClose function closes a file opened with the mmioOpen function. If the file is not opened with the mmioOpen function, the mmioClose function does not close it.
Extensions
None.
Return Values
Returns MMSYSERR_NOERROR if the function is successful; otherwise, it returns the following error code:
MMIOERR_CANNOTWRITE@T{ The contents of the buffer could not be written to disk. T}
See Also
mmioOpen(3mms), mmioRead(3mms), mmioSeek(3mms), mmioWrite(3mms)