mmioWrite

Syntax

LONG mmioWrite(hmmio, pch, cch)

This function writes a specified number of bytes to a file opened with mmioOpen.

Parameters

HMMIO hmmio

Specifies the file handle of the file.

HPSTR pch

Specifies a huge pointer to the buffer to be written to the file.

LONG cch

Specifies the number of bytes to write to the file.

Return Value

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

Comments

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

See Also

mmioRead