Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

mmioClose function

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

Syntax


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_FHOPENIf 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 value

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.

Return codeDescription
MMIOERR_CANNOTWRITE

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

 

Requirements

Minimum supported client

Windows 2000 Professional [desktop apps only]

Minimum supported server

Windows 2000 Server [desktop apps only]

Header

Mmsystem.h (include Windows.h)

Library

Winmm.lib

DLL

Winmm.dll

 

 

Community Additions

Show:
© 2014 Microsoft