midiInMessage function

The midiInMessage function sends a message to the MIDI device driver.

Syntax

DWORD midiInMessage(
   HMIDIIN   deviceID,
   UINT      msg,
   DWORD_PTR dw1,
   DWORD_PTR dw2
);

Parameters

  • deviceID
    Identifier of the MIDI device that receives the message. You must cast the device ID to the HMIDIIN handle type. If you supply a handle instead of a device ID, the function fails and returns the MMSYSERR_NOSUPPORT error code.

  • msg
    Message to send.

  • dw1
    Message parameter.

  • dw2
    Message parameter.

Return value

Returns the value returned by the audio device driver.

Remarks

This function is used only for driver-specific messages that are not supported by the MIDI API.

Requirements

Minimum supported client

Windows 2000 Professional [desktop apps only]

Minimum supported server

Windows 2000 Server [desktop apps only]

Header

Mmsystem.h (include Windows.h)

Library

Winmm.lib

DLL

Winmm.dll

See also

MIDI Functions