MIDI Input Driver Data Structures

Each message received by the midMessage function comes with two DWORD parameters. For some messages, one of these parameters points to a data structure containing additional information from the client, or to an empty data structure for the driver to fill with information for the client.

MIDI input device drivers use the data structures listed in the following table. See “Audio Device Driver Reference,” later in this chapter, for details on these messages.

Data Structures for MIDI Input Device Drivers

MIDIHDR

A client-filled structure identifying a MIDI data block.

MIDIOPENDESC

A client-filled structure providing information about opening a MIDI device.

MIDIINCAPS

A driver-filled structure providing a client with information about the capabilities of a MIDI input device.