Tech
Forums
Jobs
Books
Events
Videos
Conference
Annual Conference
Bcrypt
Ai Conference
Live
More
Interviews
Certification
Training
Career
Members
News
Blogs
Post
An Article
A Blog
A Video
An Ebook
An Interview Question
Register
Login
2
Reply
How to check my system is locked or not using c#?
Vikas Ahlawat
8 years ago
351
Reply
I am creating C# window application, by this I want to know system status (locked or not or sleep) by running it at random time.
Below code will not work because I am running my exe at random time and then close it, So it can't catch below event code. Can someone help me how can I check windows status in my case?
private const int SessionLockParam = 0x7;
private const int SessionUnlockParam = 0x8;
Post
Reset
Cancel
Answers (
2
)
Next Recommended Forum
Zoom in/out, rotar image
separate string 172X120X40 in s1=172,s2=120.s3=40 how it is