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.

mmioFlush function

The mmioFlush function writes the I/O buffer of a file to disk if the buffer has been written to.

Syntax


MMRESULT mmioFlush(
  HMMIO hmmio,
  UINT fuFlush
);

Parameters

hmmio

File handle of a file opened by using the mmioOpen function.

fuFlush

Flag determining how the flush is carried out. It can be zero or the following.

Value Description
MMIO_EMPTYBUFEmpties the buffer after writing it to the disk.

 

Return value

Returns zero if successful or an error otherwise. Possible error values include the following.

Return codeDescription
MMIOERR_CANNOTWRITE

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

 

Remarks

Closing a file with the mmioClose function automatically flushes its buffer.

If there is insufficient disk space to write the buffer, mmioFlush fails, even if the preceding calls of the mmioWrite function were successful.

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