This function removes a link from the source instance (minstanceSource) to the target instance (minstanceTarget).
#include <mididll.h>
MINSTANCE minstanceSource; /* Source. */
MINSTANCE minstanceTarget; /* Target. */
ULONG ulSlotNumber; /* Slot number. */
ULONG ulFlag; /* Not used. */
ULONG rc; /* Return code. */
rc = MIDIRemoveLink(minstanceSource, minstanceTarget,
ulSlotNumber, ulFlag);