I\'ve written some powershell which allows me to harness the power of the keyboard media keys to control any music that\'s currently running.
What I want to be able
Try and create a permanent event consumer for the lock/unlock events. Check http://powerevents.codeplex.com and look at an example of using PowerEvents module at http://www.ravichaganti.com/blog/?p=1951