MIDIDisableInstance - Parameters
minstance
(
MINSTANCE
) - input
The instance to be disabled.
ulFlag
(
ULONG
) - input
Flag indicating the hardware node should be disabled from sending or receiving messages. Valid values are MIDI_DISABLE_SEND and MIDI_DISABLE_RECEIVE.
rc
(
ULONG
) - returns
Returns 0 if the command is completed successfully.
MIDIERR_HARDWARE_FAILED
The disable or close attempt failed due to a hardware problem.
MIDIERR_INTERNAL_SYSTEM
System problem.
MIDIERR_INVALID_FLAG
The
ulFlag
value is invalid.
MIDIERR_INVALID_INSTANCE_NUMBER
The instance number (
minstance
) is invalid.
MIDIERR_NOT_ALLOWED
Both send and receive are not permitted for this particular instance.
MIDIERR_RECEIVEONLY
An attempt was made to disable an instance for send (or for send and receive) when the instance supports receive only.
MIDIERR_SENDONLY
An attempt was made to disable an instance for receive (or for send and receive) when the instance supports send only.
[Back: MIDIDisableInstance Return Value - rc]
[Next: MIDIDisableInstance - Remarks]