Версия для печати темы
Нажмите сюда для просмотра этой темы в оригинальном формате
Форум программистов > VB .NET > Как определить в коде блокировку ПК


Автор: Marazmatik2000 3.4.2015, 13:21
Вопрос собственно примитивный просто никак не могу правильно спросить у гугла. Как програмно определить заблокирован ли ПК или нет. Под блокировкой я имею ввиду сочетание клавиш Win+L или пуск->Блокировка. Заранее спасибо

Автор: Akina 3.4.2015, 13:40
Цитата(https://msdn.microsoft.com/en-us/library/windows/desktop/aa376875(v=vs.85).aspx)

There is no function you can call to determine whether the workstation is locked. To receive notification when the user logs in, use the WTSRegisterSessionNotification function to receive WM_WTSSESSION_CHANGE messages. You can use session notifications to track the desktop state so you know whether it is possible to interact with the user.

Автор: diadiavova 3.4.2015, 13:59
http://stackoverflow.com/questions/44980/how-can-i-programmatically-determine-if-my-workstation-is-locked

Powered by Invision Power Board (http://www.invisionboard.com)
© Invision Power Services (http://www.invisionpower.com)