This function creates an instance of the specified class.
#include <mididll.h> ULONG ulClassNumber; /* Class number. */ PMINSTANCE pminstance; /* New instance #. */ PSZ pszInstanceName; /* Instance name. */ ULONG ulFlag; /* Not used. */ ULONG rc; /* Return code. */ rc = MIDICreateInstance(ulClassNumber, pminstance, pszInstanceName, ulFlag);