By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
440,467 Members | 1,308 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 440,467 IT Pros & Developers. It's quick & easy.

Know when computer is locked

P: n/a
Hi all

In my .NET application (maybe run as a service), is there a way to know when
my computer is locked? I want to write an app that logs when the computer
has started and when it has been shutdown, but also log when the computer
was locked. Our system administrator has set our computer to lock
automatically after 15 minutes if it's inactive, and I could always lock my
computer manually using CTRL+ALT+DLT.

Is this possible? Is it also possible for screensavers as well??

Kind Regards,
Dec 16 '05 #1
Share this Question
Share on Google+
1 Reply

P: n/a
You can check if the screensaver is active by checking if the process is
running. To be honest I don't think that there is a clean way to check
wether the computer has been locked with Ctrl + Alt + Del or event if it is
in the "locked" state.

Gabriel Lozano-Morán
Dec 16 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.