473,472 Members | 2,148 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Know when computer is locked

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,
Steve
Dec 16 '05 #1
1 1475
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Eric Rupp via .NET 247 | last post by:
I am designing a program that will detect when a computer becomes locked (screen saver comes on/Ctrl+Alt+Del). I am looking to detect that and update a database for a custom Time Tracker program. ...
5
by: tsnyder | last post by:
I need to have an option button that allows editing to a field only when it is checked.
4
by: rodmc | last post by:
I have written an application which works perfectly when the machine is operating under normal conditions, however when the screen becomes locked it imediately starts to fill up several hundred...
2
by: jim-on-linux | last post by:
py help, The file below will run as a stand alone file. It works fine as it is. But, when I call it from another module it locks my computer, The off switch is the only salvation. This...
2
by: John Smith | last post by:
How do i know if windows has been locked (via ctrl-alt-del)? I need to know because I'm running my app as a service and I want to suppress sounds when the desktop's locked (it currently plays...
2
by: Stephan Steiner | last post by:
Hi I need to start a GUI application from a console app. Upon startup, the application can display one or two popups, which need clicking away. I have all this handled using FindWindow,...
2
by: Josh Burkard | last post by:
Hello For a alarm-system in our company i want to show a message-window at the users screen while some events, even the users computer (Win XP SP 2 in domain) is locked. How can i show a...
0
by: venkatanarasimhaa | last post by:
Hi All, Thanks in advance. I will open the excel sheet and keep working on that. I would like to run a excel macro when my computer gets locked. is there anyway to identify whether my...
9
by: tomhawkins1 | last post by:
Hi I currently have a site where users can upload files. These files can be doc, wmv, jpeg, xls, dwf, dwf and dwg. These files are uploaded to /home/**user**/uploads and not /home/...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
1
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
0
muto222
php
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.