mmioSetInfo

  MMRESULT mmioSetInfo(hmmio, lpmmioinfo, uFlags)    
  HMMIO hmmio;    
  LPMMIOINFO lpmmioinfo;    
  UINT uFlags;    

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

Parameters

hmmio

Specifies the file handle of the file.

lpmmioinfo

Specifies a pointer to an MMIOINFO structure filled with information with mmioGetInfo.

uFlags

Is not used and should be set to zero.

Return Value

The return value is zero if the function is successful.

Comments

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

See Also

mmioGetInfo