how can you prevent the screensaver from starting using a service?
Posted on 2011-10-25
we have a security policy which forces computers to lock themselves if left unattended for five minutes.
Unfortunately, we also have some very long winded management types who can talk for more than five minutes on a Powerpoint slide; in Windows 7, Powerpoint stops the computer from locking, however in Windows XP, the computers still lock.
I'm writing a windows service in VB.Net 3.5 to sit in the background, so if powerpoint, or any other approved software, is left running as the focussed window the mouse will move 1 pixel every 2 minutes.
The service is running, and a custom audit entry is being added to the event log every tick, but nothing appears to be happening to the mouse - does anyone know why, or of another way to stop the computer from locking if certain applications are running?