Windows: Remove locked screen detection
This does not reliably tell us when the screen is locked. For example this triggers when a UAC prompt is active. From the Windows documentation there is no way to determine if a workstation is locked Fixes #9117
This commit is contained in:
parent
ebc0dd4536
commit
37420720fe
1 changed files with 0 additions and 7 deletions
|
@ -168,13 +168,6 @@ class WindowsIdleMonitor:
|
||||||
info = self.SystemParametersInfo(0x72, 0, ctypes.byref(saver_runing), 0)
|
info = self.SystemParametersInfo(0x72, 0, ctypes.byref(saver_runing), 0)
|
||||||
if info and saver_runing.value:
|
if info and saver_runing.value:
|
||||||
return True
|
return True
|
||||||
|
|
||||||
# Check if Screen is locked
|
|
||||||
desk = self.OpenInputDesktop(0, False, 0)
|
|
||||||
if not desk:
|
|
||||||
return True
|
|
||||||
self.CloseDesktop(desk)
|
|
||||||
|
|
||||||
return False
|
return False
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue