Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ mmioRead(3mms) — Multimedia Services 2.4B

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

mmioClose(3mms)

mmioOpen(3mms)

mmioSeek(3mms)

mmioWrite(3mms)

mmioRead(3mms)  —  Subroutines

 
 
 
 

Name

 
mmioRead --- Read a specified number of bytes from a file
 
 

Syntax

 
 
 

 #include <mme/mme_api.h>
 LRESULT APIENTRY mmioRead(HMMIO hmmio,
                          HPSTR pch,
                          LONG cch);
 

 
 
 

Arguments

 
HMMIO hmmio
Specifies the file handle to the file to be read.

 
HPSTR pch
Specifies a pointer to a buffer containing the data read from the file.

 
LONG cch
Specifies the number of bytes to read from the file.
 
 

Description

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

Extensions

 
None.
 
 

Return Values

 
Returns the value of 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 0. If there is an error reading from the file, the return value is -1.
 

See Also

 
 
 
 
 
mmioClose(3mms), mmioOpen(3mms), mmioSeek(3mms), mmioWrite(3mms)
 
 
 
 

Typewritten Software • bear@typewritten.org • Edmonds, WA 98026