MIDM_PROPERTIES

Sent to a MIDI input device driver to change properties of the input stream.

MMSYSERR_NOTENABLED The driver failed to load or initialize.
MMSYSERR_INVALPARAM The property or property value was invalid.

dwParam1
Contains a far pointer to a structure containing information about the stream.
dwParam2
Contains flags specifying the operation and property.
MIDIPROP_SET Tells the driver to set the given property.
MIDIPROP_GET Tells the driver to read the given property.

For a description of the stream properties, see the documentation for the midiStreamProperties function, and the MIDIPROPTIMEDIV, MIDIPROPTEMPO, and MIDIPROPCBTIMEOUT structures in the MIDI SDK documentation