We can find if a network machine is up or not using ping, but what if I want to know the locked status of the desktop ?
Is there any tool or windows API or a work around to find this ?
Jump to content
Geeks To Go is a helpful hub, where thousands of volunteer geeks quickly serve friendly answers and support. Check out the forums and get free advice from the experts. Register now to gain access to all of our features, it's FREE and only takes one minute. Once registered and logged in, you will be able to create topics, post replies to existing threads, give reputation to your fellow members, get your own private messenger, post status updates, manage your profile and so much more.Create Account How it Works
Call OpenInputDesktop with the access mask set to
(DESKTOP_ENUMERATE | DESKTOP_READOBJECTS). If the call
fails you're on the WinLogon desktop. (If you need to)
call GetUserObjectInformation to retrieve the UOI_NAME
value, which will be 'Default' for the normal desktop
or 'Screen-saver' for the screen saver.
You may be able to wait on the desktop handle if it gets
signalled when the 'focus' changes; again, not tried.
Otherwise poll in a 2 or 3 second loop.
HTH, John Bates.
0 members, 0 guests, 0 anonymous users
Community Forum Software by IP.Board
Licensed to: Geeks to Go, Inc.