[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

_______________________________________________
Tutor maillist  -  Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor

Reply via email to