LRESULT mmioWrite(hmmio, pch, cch) | |||
HMMIO hmmio; | |||
LPSTR pch; | |||
LONG cch; |
The mmioWrite function writes a specified number of bytes to a file opened with mmioOpen.
hmmio
Specifies the file handle of the file.
pch
Specifies a pointer to the buffer to be written to the file.
cch
Specifies the number of bytes to write to the file.
The return value is the number of bytes actually written. If there is an error writing to the file, the return value is -1.
The current file position is incremented by the number of bytes written. On 16-bit Windows pch is a huge pointer. On 32-bit Windows there is no distinction between huge pointers and long pointers.
mmioRead