Reputation: 2463
I want to check that whether the system is in log off state or not in VC++, any ideas?
Upvotes: 3
Views: 2706
Reputation: 5952
In AutoIt I always detect if the system is logged off by checking the active window handle if the system is logged of the active window handle will return 0x0000000. In AutoIt it would look something like...
If WinGetHandle("") == 0x00000000 Then MsgBox(0,"","We are logged out!")
Hope that helps...
Upvotes: 3
Reputation: 4436
Upvotes: 4