WORD mmioSetInfo(hmmio, lpmmioinfo, wFlags)
This 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.
HMMIO hmmio
Specifies the file handle of the file.
LPMMIOINFO lpmmioinfo
Specifies a far pointer to an MMIOINFO structure filled with information with mmioGetInfo.
WORD wFlags
Is not used and should be set to zero.
The return value is zero if the function is successful.
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.
mmioGetInfo, MMIOINFO