Programmatically prevent Windows screensaver from starting
Is there a recommended way to prevent the Windows screensaver from starting? The closest thing I've found is this article , but what I would really like to do is just tell Windows that the computer isn't idle rather than fooling with the currently set screensaver values. 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 event, every 1000