Tim Roberts wrote:
> Tim Golden wrote:
>> 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
>>   
> 
> Gosh, Tim, is there ANY Windows tool you haven't built?  ;)
> 
> I'm starting to think that every Python problem can be solved by either
> a 5-line Twisted script, or a script from Tim Golden's web site.

<grin>Thanks for the bouquets</grin>

Funnily enough, I was just saying to a friend that I
can go weeks or even months without a question coming
up on the lists which is *specific* to stuff I can help
with, and then a whole run of them come up in one week.
(Or, as we say in London: you wait for ages then three
come along at once).

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

Reply via email to