MIDIEnableInstance - Parameters
minstance
(
MINSTANCE
) - input
The instance to be enabled.
ulFlag
(
ULONG
) - input
Flag indicating the hardware node should be enabled for sending or receiving messages. Valid values are MIDI_ENABLE_SEND and MIDI_ENABLE_RECEIVE.
rc
(
ULONG
) - returns
Returns 0 if the command is completed successfully.
MIDIERR_HARDWARE_FAILED
The enable or open 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 enable an instance for send (or for send and receive) when the instance supports receive only.
MIDIERR_RESOURCE_NOT_AVAILABLE
The enable or open attempt failed due to a system resource not being available.
MIDIERR_SENDONLY
An attempt was made to enable an instance for receive (or for send and receive) when the instance supports send only.
[Back: MIDIEnableInstance Return Value - rc]
[Next: MIDIEnableInstance - Remarks]