The MMIOOS2.H header file, supplied with the Toolkit, defines data structures used in passing information between an application and MMIO file services. Include the MMIOOS2.H file in any source that uses multimedia file I/O functions. Also include the main header file, OS2.H, which contains a declaration statement for the MMIOOS2.H file. The MMIOOS2.H file defines MMIO data structures listed in the following table.
Note: The MMMIDIHEADER data structure is defined in the MIDIOS2.H file.
┌────────────────┬─────────────────────────────────────────────┐ │Data Structure │Description │ ├────────────────┼─────────────────────────────────────────────┤ │MMAUDIOHEADER │Contains descriptive information about a │ │ │digital audio element (such as the sample │ │ │rate, bits per sample, and so forth). │ ├────────────────┼─────────────────────────────────────────────┤ │MMCFINFO │Contains information about a RIFF compound │ │ │file. │ ├────────────────┼─────────────────────────────────────────────┤ │MMCKINFO │Contains information about a chunk in a RIFF │ │ │file. │ ├────────────────┼─────────────────────────────────────────────┤ │MMCTOCENTRY │Contains information about an entry in the │ │ │compound file table of contents (CTOC) of a │ │ │RIFF compound file. │ ├────────────────┼─────────────────────────────────────────────┤ │MMFORMATINFO │Contains information about the format of a │ │ │file or file element. │ ├────────────────┼─────────────────────────────────────────────┤ │MMIMAGEHEADER │Contains descriptive information about an │ │ │image (such as the size, color type and │ │ │extent, palette information, and so forth). │ ├────────────────┼─────────────────────────────────────────────┤ │MMINIFILEINFO │Contains information about the MMPMMMIO.INI │ │ │file. │ ├────────────────┼─────────────────────────────────────────────┤ │MMIOINFO │Describes the current state of an open file. │ ├────────────────┼─────────────────────────────────────────────┤ │MMMIDIHEADER │Contains descriptive information about a MIDI│ │ │file. │ └────────────────┴─────────────────────────────────────────────┘
Note: Initialize all fields in MMIO data structures that are not used in a given function to NULL. In addition, set unused flags and bits in flags that are not used to 0.