[Tutor] How would I make a program that password protects on aninactivity timer?
Bill Burns
billburns at pennswoods.net
Tue Aug 29 22:30:03 CEST 2006
[Bill Burns]
> import pythoncom
> import ctypes
> import win32api
<snip>
You can lose the win32api import in my code.
Initially, I was using `win32api.ExitWindowsEx(0, 0)` to logout, but
after Kent posted the link to ctypes.windll.user32.LockWorkStation(), I
switched to the cytpes method. I just forgot to pull the import.
Bill
More information about the Tutor
mailing list