Skip to content

Latest commit

 

History

History
63 lines (43 loc) · 1.52 KB

mmioOpen.md

File metadata and controls

63 lines (43 loc) · 1.52 KB

Home

Function name : mmioOpen

Group: Windows Multimedia - Library: winmm


The mmioOpen function opens a file for unbuffered or buffered I/O. The file can be a standard file, a memory file, or an element of a custom storage system.


Code examples:

WAV file player
Class for sound recording
Changing pitch and speed of a wave file
Adding supplementary data to AVI files
Playing WAV sounds simultaneously

Declaration:

HMMIO mmioOpen(
  LPSTR szFilename,
  LPMMIOINFO lpmmioinfo,
  DWORD dwOpenFlags
);  

FoxPro declaration:

DECLARE INTEGER mmioOpen IN winmm;
	STRING   szFilename,;
	STRING @ lpmmioinfo,;
	INTEGER  dwOpenFlags
  

Parameters:

szFilename Pointer to a string containing the filename of the file to open.

lpmmioinfo Pointer to an MMIOINFO structure containing extra parameters used by mmioOpen.

dwOpenFlags Flags for the open operation.


Return value:

Returns a handle of the opened file. If the file cannot be opened, the return value is NULL.


Comments:

The handle returned by mmioOpen is not a standard file handle. Do not use it with any file I/O functions other than multimedia file I/O functions.