midiInGetID

  MMRESULT midiInGetID(hMidiIn, lpwDeviceID)    
  HMIDIIN hMidiIn;    
  PUINT lpwDeviceID;    

The midiInGetID function gets the device ID for a MIDI input device.

Parameters

hMidiIn

Specifies the handle to the MIDI input device.

lpwDeviceID

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

Return Value

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

Value Meaning

MMSYSERR_INVALHANDLE The hMidiIn parameter specifies an invalid handle.