Programmatically prevent Windows screensaver from starting
For testing, I set the screensaver to 1 minute and required a password. I tried capturing SC_SCREENSAVE and returning -1 in VB .Net. As commented, it works when there is no screensaver password but fails if the screensaver password is active. (I tried it in Windows XP). I also put this into a Timer’s tick … Read more