I think that you are not still interested in play a music file, but if someone want to view code to play a multimedia file, you can search in sourceforge my project joseplayer. It plays audio and video. Of course, with the executable there is the sourcecode. It uses only apis from windows.
I hope that this could be useful to someone.