This function creates 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 = MIDIAddLink(minstanceSource, minstanceTarget, ulSlotNumber, ulFlag);