Tech
Forums
Jobs
Books
Events
Interviews
Live
More
Learn
Training
Career
Members
Videos
News
Blogs
Login
Sign Up
Ask Question
2
Reply
How to check my system is locked or not using c#?
Vikas Ahlawat
Aug 31 2016 1:51 AM
332
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;
Upload Source Code
Select only zip and rar file.
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