midiOutGetID

Syntax

WORD midiOutGetID(hMidiOut, lpwDeviceID)

This function gets the device ID for a MIDI output device.

Parameters

HMIDIOUT hMidiOut

Specifies the handle to the MIDI output device.

LPWORD lpwDeviceID

Specifies a pointer to the WORD-sized memory location to be filled with the device ID.

Return Value

Returns MMSYSERR_NOERROR if successful. Otherwise, returns an error number. Possible error returns are:

MMSYSERR_INVALHANDLE

The hMidiOut parameter specifies an invalid handle.