I use the windows API (mciSemdMessage) to play music. for example:

rc = mciSendString("play myfile", 0, 0, 0)

How can I tell when the current file is finished so I can process another. I want to play a list of files one at a time.