Tim Roberts wrote:
> The "usual" way to determine whether the desktop has been locked is to
> call OpenDesktop on the desktop called "default", and then try to use
> SwitchDesktop to switch to it.  If the SwitchDesktop fails, then the
> workstation is locked.  There's an example in Delphi here:
>     http://www.delphipages.com/threads/thread.cfm?ID=145214&G=145213
> and one in Visual Basic here:
>    
> http://gethelp.devx.com/techtips/nt_pro/10_minute_solutions/10minNT0701-4.asp

and, indeed, one in Python here:

http://timgolden.me.uk/python/win32_how_do_i/see_if_my_workstation_is_locked.html

This, in fact, the OP already knows because he's come to
the list at my suggestion after a private email
conversation. I wasn't entirely clear why that solution
didn't suit his needs to I hope someone here can serve
him better. (Your point about not being able to trap
Ctrl-Alt-Del might help clear things up a little.)

TJG


_______________________________________________
python-win32 mailing list
python-win32@python.org
http://mail.python.org/mailman/listinfo/python-win32

Reply via email to