mmioWrite(3mms) — Subroutines
Name
mmioWrite --- Write a specified number of bytes to a file
Syntax
#include <mme/mme_api.h>
MMRESULT APIENTRY mmioWrite(HMMIO hmmio,
HPSTR pch,
LONG cch);
Arguments
HMMIO hmmio
Specifies the file handle to the file.
HPSTR pch
Specifies a pointer to the buffer to be written to the file.
LONG cch
Specifies the number of bytes to write to the file.
Description
The mmioWrite function writes a specified number of bytes to a file opened with the mmioOpen function. The current file position is incremented by the number of bytes written.
Extensions
None.
Return Values
Returns the number of bytes actually written. If there is an error writing to the file, the return value is -1.