May 24th, 2002, 10:37 AM
Launch default player for audio CD
I am trying figure out how I can get my app to launch the default audio CD player, with a CD Extra (i.e., audio + data) in the CD drive. Oh, and I'm trying to avoid playing with the registry!!
I know (thanks to a post by Ondrak in Nov 2000) that I could do it by parsing the HKEY_CLASSES_ROOT/AudioCD/shell/play/command registry entry to get the default AudioCD program, substituting parameters, and calling ShellExecute ... but that's way too ugly for my liking.
I feel like I SHOULD be able to do it with a more simple ShellExecute call, but I can't for the life of me figure out how. If I try to "open" the drive, it simply brings up Explorer. If I try to "open" the first track (i.e. <drive>:\\Track01.cda), nothing happens (and I can't see the tracks in explorer anyway). "play" isn't a valid verb.
Click Here to Expand Forum to Full Width
This is a CodeGuru survey question.