There is the PlaySound API call which can play a sound async or sync, but as far as I know it does play .wav files and not midi...