MIDM_GETDEVCAPS

The MIDM_GETDEVCAPS message requests a MIDI input driver to return the capabilities of a specified device.

Parameters
uDeviceId
Device identifier (0, 1, 2, and so on) for the target device.
uMsg
MIDM_GETDEVCAPS
dwUser
Device instance identifier.
dwParam1
Pointer to a MIDIINCAPS structure. (The MIDIINCAPS structure is described in the Win32 SDK.)
dwParam2
Size of the MIDIINCAPS structure in bytes.
Return Value

The driver should return MMSYSERR_NOERROR if the operation succeeds. Otherwise it should return one of the MMSYSERR or MIDIERR error codes defined in mmsystem.h. See midiInGetDevCaps return values in the Win32 SDK.

Comments

A client sends the MIDM_GETDEVCAPS message by calling the user-mode driver’s midMessage entry point, passing the specified parameters.

Typically, the user-mode driver calls DeviceIoControl to send the kernel-mode driver an IOCTL_MIDI_GET_CAPABILITIES control code.

The user-mode driver fills the MIDIINCAPS structure.