Here is something in C++:
Thanks timovjl... I saw the second one in my journeys... that first one is going to take a while to get my head around... Whew!
I'm starting to think it might just be easier to outright disable autoplay on the account the server runs in and call it quits.... That I can do with a couple of quick registry writes...
Of course the problem is that if someone inserts a DVD or CD while the player is running, it either steals the media player (leaving the user with the wrong remote control) or pops up a dialog that won't go away, right in the middle of the movie. Very frustrating...