midiOutShortMsg

Syntax

WORD midiOutShortMsg(hMidiOut, dwMsg)

This function sends a short MIDI message to the specified MIDI output device. Use this function to send any MIDI message except for system exclusive messages.

Parameters

HMIDIOUT hMidiOut

Specifies a handle to the MIDI output device.

DWORD dwMsg

Specifies the MIDI message. The message is packed into a DWORD with the first byte of the message in the low order byte.

Return Value

Returns zero if the function was successful. Otherwise, it returns an error number. Possible error returns are:

MMSYSERR_INVALHANDLE

Specified device handle is invalid.

MIDIERR_NOTREADY

The hardware is busy with other data.

Comments

This function may not return until the message has been sent to the output device.

See Also

midiOutLongMsg