Share via


mmioClose

The mmioClose function closes a file that was opened by using the mmioOpen function.

MMRESULT mmioClose(
  HMMIO hmmio, 
  UINT wFlags  
);

Parameters

hmmio

File handle of the file to close.

wFlags

Flags for the close operation. The following value is defined.

Value Meaning
MMIO_FHOPEN If the file was opened by passing a file handle whose type is not HMMIO, using this flag tells the mmioClose function to close the multimedia file handle, but not the standard file handle.

Return Values

Returns zero if successful or an error otherwise. The error value can originate from the mmioFlush function or from the I/O procedure. Possible error values include the following.

Value Description
MMIOERR_CANNOTWRITE The contents of the buffer could not be written to disk.

Requirements

**  Windows NT/2000/XP:** Included in Windows NT 3.1 and later.
**  Windows 95/98/Me:** Included in Windows 95 and later.
**  Header:** Declared in Mmsystem.h; include Windows.h.
**  Library:** Use Winmm.lib.

See Also

mmioOpen, mmioFlush