Skip to content

Latest commit

 

History

History
56 lines (38 loc) · 1.06 KB

mmioWrite.md

File metadata and controls

56 lines (38 loc) · 1.06 KB

Home

Function name : mmioWrite

Group: Windows Multimedia - Library: winmm


Writes a specified number of bytes to a file opened by using the mmioOpen function.


Code examples:

Class for sound recording
Changing pitch and speed of a wave file
Adding supplementary data to AVI files

Declaration:

LONG mmioWrite(
	HMMIO hmmio,
	char _huge* pch,
	LONG cch
);  

FoxPro declaration:

DECLARE LONG mmioWrite IN winmm;
	INTEGER hmmio,;
	STRING  pch,;
	LONG    cch
  

Parameters:

hmmio File handle of the file.

pch Pointer to the buffer to be written to the file.

cch Number of bytes to write to the file.


Return value:

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