This function disables an instance from sending messages, receiving messages, or both.
#include <mididll.h> MINSTANCE minstance; /* Instance number. */ ULONG ulFlag; /* Flag. */ ULONG rc; /* Return code. */ rc = MIDIDisableInstance(minstance, ulFlag);