How is media player playing midi .mid files?

It's using the default software MIDI synthesizer (device 0). Device 0 used to be the MIDI mapper, which would choose your default MIDI device. There are several fixes, but not one of them claims 100% support. Just do a quick google for Windows 7 MIDI for some more information.