midiOutGetID

  MMRESULT midiOutGetID(hMidiOut, lpwDeviceID)    
  HMIDIOUT hMidiOut;    
  PUINT lpwDeviceID;    

The midiOutGetID function gets the device ID for a MIDI output device.

Parameters

hMidiOut

Specifies the handle to the MIDI output device.

lpwDeviceID

Specifies a pointer to the UINT-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:

Value Meaning

MMSYSERR_INVALHANDLE The hMidiOut parameter specifies an invalid handle.

VOID.refpage midiOutGetNumDevs

  UINT midiOutGetNumDevs()    

The midiOutGetNumDevs function retrieves the number of MIDI output devices present in the system.

Parameters

Return Value

Returns the number of MIDI output devices present in the system.

See Also

midiOutGetDevCaps