Path: csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!gegeweb.org!de-l.enfer-du-nord.net!feeder1.enfer-du-nord.net!feeds.phibee-telecom.net!newsfeed.xs4all.nl!newsfeed5.news.xs4all.nl!xs4all!post.news.xs4all.nl!not-for-mail Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.004 X-Spam-Evidence: '*H*': 0.99; '*S*': 0.00; 'from:addr:timgolden.me.uk': 0.09; 'from:name:tim golden': 0.09; 'logon': 0.09; 'message-id:@timgolden.me.uk': 0.09; 'obviously,': 0.16; 'received:74.55.86': 0.16; 'received:74.55.86.74': 0.16; 'received:smtp.webfaction.com': 0.16; 'received:webfaction.com': 0.16; 'subject:Detecting': 0.16; 'url:timgolden': 0.16; 'cc:addr :python-list': 0.16; 'question.': 0.16; 'subject:Windows': 0.18; 'cc:no real name:2**0': 0.20; 'trying': 0.21; 'detect': 0.21; 'pointed': 0.21; 'cc:2**0': 0.22; 'header:In-Reply-To:1': 0.22; "shouldn't": 0.23; "i'm": 0.27; 'charset:iso-8859-15': 0.28; 'handled': 0.28; '(and': 0.29; 'cc:addr:python.org': 0.30; 'os,': 0.30; 'tjg': 0.30; 'there': 0.33; 'however,': 0.34; 'header:User- Agent:1': 0.34; 'switch': 0.35; 'url:python': 0.36; 'security.': 0.37; 'reasons': 0.37; 'but': 0.37; 'some': 0.38; 'subject:: ': 0.39; 'received:192': 0.39; 'session': 0.39; 'might': 0.40; 'from:addr:mail': 0.64; 'interrupt': 0.84; 'to:none': 0.93 Date: Fri, 02 Sep 2011 13:45:39 +0100 From: Tim Golden User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:6.0.1) Gecko/20110830 Thunderbird/6.0.1 MIME-Version: 1.0 CC: python-list@python.org Subject: Re: Detecting Ctrl-Alt-Del in Windows References: <6e602a19-8cca-4924-bd95-df08615662d2@c8g2000prn.googlegroups.com> <4e60ce59$0$18107$426a74cc@news.free.fr> In-Reply-To: <4e60ce59$0$18107$426a74cc@news.free.fr> Content-Type: text/plain; charset=ISO-8859-15; format=flowed Content-Transfer-Encoding: 7bit X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.12 Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Newsgroups: comp.lang.python Message-ID: Lines: 12 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1314967544 news.xs4all.nl 2441 [2001:888:2000:d::a6]:59376 X-Complaints-To: abuse@xs4all.nl Xref: x330-a1.tempe.blueboxinc.net comp.lang.python:12635 >> Obviously, this is a windows-based question. I know that Ctrl-Alt-Del >> is handled deep inside the OS, and I'm not trying to interrupt that. >> But is there some way to detect that a C-A-D has been pressed? Others have pointed out that this shouldn't really be possible for reasons of security. (And I agree). However, if what you're really after is to detect a session switch or a logon then this might be of some use: http://timgolden.me.uk/python/win32_how_do_i/track-session-events.html TJG