mmioSetInfo function (mmiscapi.h)

The mmioSetInfo function updates the information retrieved by the mmioGetInfo function about a file opened by using the mmioOpen function. Use this function to terminate direct buffer access of a file opened for buffered I/O.

Syntax

MMRESULT mmioSetInfo(
  HMMIO       hmmio,
  LPCMMIOINFO pmmioinfo,
  UINT        fuInfo
);

Parameters

hmmio

File handle of the file.

pmmioinfo

Pointer to an MMIOINFO structure filled with information by the mmioGetInfo function.

fuInfo

Reserved; must be zero.

Return value

Returns zero if successful or an error otherwise.

Remarks

If you have written to the file I/O buffer, set the MMIO_DIRTY flag in the dwFlags member of the MMIOINFO structure before calling mmioSetInfo to terminate direct buffer access. Otherwise, the buffer will not get flushed to disk.

Requirements

Requirement Value
Minimum supported client Windows 2000 Professional [desktop apps only]
Minimum supported server Windows 2000 Server [desktop apps only]
Target Platform Windows
Header mmiscapi.h (include Mmiscapi.h, Windows.h)
Library Winmm.lib
DLL Winmm.dll