mmioRead

  LRESULT mmioRead(hmmio, pch, cch)    
  HMMIO hmmio;    
  LPSTR pch;    
  LONG cch;    

The mmioRead function reads a specified number of bytes from a file opened with mmioOpen.

Parameters

hmmio

Specifies the file handle of the file to be read.

pch

Specifies a pointer to a buffer to contain the data read from the file.

cch

Specifies the number of bytes to read from the file.

Return Value

The return value is the number of bytes actually read. If the end of the file has been reached and no more bytes can be read, the return value is zero. If there is an error reading from the file, the return value is -1.

Comments

On 16 bit windows pch is a huge pointer. On 32 bit windows there is no distinction between huge pointers and long pointers.

See Also

mmioWrite