Share via


mmioWrite

The mmioWrite function writes a specified number of bytes to a file opened by using the mmioOpen function.

LONG mmioWrite(
  HMMIO hmmio,      
  char _huge* pch,  
  LONG cch          
);

Parameters

hmmio

File handle of the file.

pch

Pointer to the buffer to be written to the file.

cch

Number of bytes to write to the file.

Return Values

Returns the number of bytes actually written. If there is an error writing to the file, the return value is -1.

Remarks

The current file position is incremented by the number of bytes written.

Requirements

**  Windows NT/2000/XP:** Included in Windows NT 3.1 and later.
**  Windows 95/98/Me:** Included in Windows 95 and later.
**  Header:** Declared in Mmsystem.h; include Windows.h.
**  Library:** Use Winmm.lib.

See Also

mmioOpen