none
How Do I Disable Ctrl-Alt-Delete in WES7 RRS feed

  • Question

  • I have the need to disable the Ctrl-Alt-Delete key sequence for our app so that the users don't "escape" and get access to the file system.  It is VERY important that users can't get out of our app.  I was able to do this quite easily in WES2009, but have not been able to figure out how to do it in WES7.  I've tried that mechanism I used with WES2009 and it no longer works.  I've looked around the Internet quite a bit for possible solutions but haven't found anything yet. 

    The basic steps I followed for WES 2009 were the following:

    ·         Switch Ctrl-Alt-Delete to launch the Task Manager

    ·         Disable the Task Manager (already done during the registry tweaks)

    ·         Block the Task Manager from Running

    Thanks! I really appreciate any help you can give me with this.

    Rick

    Monday, June 7, 2010 9:39 PM

All replies

  • Up! I have been searching for a solution but could not find any yet. I too would appreciate some help.
    Tuesday, July 6, 2010 7:00 PM
  • Does it help if you exclude taskmgr.exe from your image ?
    Srikanth Kamath [MSFT] - This posting is provided "As Is" with no warranties, and confers no rights.
    Tuesday, July 6, 2010 7:40 PM
  • There is an old MSDN article that discusses how to create a key trap: http://msdn.microsoft.com/en-us/magazine/cc188951.aspx that can be used to trap CTRL-Alt-Delete.

    -Sean

     

     

     


    www.sjjmicro.com / www.seanliming.com, Book Author - XP Embedded Advanced, XPe Supplemental Toolkit, WEPOS / POS for .NET Step-by-Step
    Tuesday, July 6, 2010 9:59 PM
    Moderator
  • Yes, and I was told that the XP work-arounds would not work under W7.  I was even told that the GINA route would no longer work. 

    I had a solution under XPe that didn't involve GINA, but that solution doesn't work under WES7. 

    Thursday, July 15, 2010 5:17 PM
  • I assume nobody has found a solution for this yet ? I recall a question in one of the WES7 surveys (sent out to all CTP participents) that specifically asked if we thought such a feature should be included. I am sure that the ability to block this key combination would be a requiment for many embedded projects, so find it very strange that it was not included in RTM.


    Richard McIntyre
    Tuesday, July 27, 2010 8:51 PM
  • I tested the work around mentioned in the article using the solution for my second XPe book. The application was able to trap the hot-keys in WES7. I haven't tried CTRL-ALT-DEL yet.

    -Sean

     


    www.sjjmicro.com / www.seanliming.com, Book Author - XP Embedded Advanced, XPe Supplemental Toolkit, WEPOS / POS for .NET Step-by-Step
    Tuesday, July 27, 2010 11:34 PM
    Moderator
  • I've been told that the only solution to this may be a low-level keyboard driver.  Sounds pretty nasty.  We are farming this out to an expert on keyboard drivers.  I hope it actually works.  I'll report back on the results.

     

    Scott

    Wednesday, September 15, 2010 9:16 PM
  • if you can disclaim one key, you can edit "Scancode Map" in registry to exclude one of the three keys.

    [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Keyboard Layout]

    Some Tool i found to edit the easy way: http://webpages.charter.net/krumsick/


    "Mark/Propose As Answer" if you got one.
    • Edited by KNARZ Wednesday, September 15, 2010 10:10 PM more info
    Wednesday, September 15, 2010 9:54 PM
  • Sorry for digging an age-old topic, is there a solution to this?

     

    Thanks!

    Monday, July 25, 2011 9:56 AM
  • http://www.elbacom.com/blog/2010/12/keyboard-filter-driver-for-windows-embedded-standard-7/

    and MS has a Keyboarf Filter for POS... and we're waintign for reaction to implement/provide the Filter in normal WES7.


    "Mark/Propose As Answer" if you got one.
    Monday, July 25, 2011 1:02 PM
  • Thanks! I chance upon the elbacom link earlier as well, but prefer something more microsoft-related.

     

    Waiting for reaction to implement the filter in WES7? From...?

    Tuesday, July 26, 2011 8:50 AM
  • if you can disclaim one key, you can edit "Scancode Map" in registry to exclude one of the three keys.

    [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Keyboard Layout]

    Some Tool i found to edit the easy way: http://webpages.charter.net/krumsick/


    "Mark/Propose As Answer" if you got one.
    Funny I miss this one earlier. Using the same to disable the Windows Key, maybe this can be used to effectively disable CAD as well? Is this your experience KNARZ?
    Friday, July 29, 2011 2:35 AM
  • never needed it. but i always try to be prepared. at least you have the ability to remap some keys. like 'scroll' or something never used.
    "Mark/Propose As Answer" if you got one.
    • Proposed as answer by Muragesh Monday, November 5, 2012 12:14 PM
    Friday, July 29, 2011 11:03 AM
  • Righty, thanks. :)
    Monday, August 1, 2011 1:36 AM
  • Download POS7 RTM Eval from: http://www.microsoft.com/download/en/details.aspx?id=26558
    Extract the Keyboardfilter which is located in: DS\WinEmb-Keyboard-Filter.cab

    Import this file to your DSSP1 with ICE (File - Import - Import Package(s))

    Under EEFs you will find the Keyboardfilter.


    Sad: You have to download several GB (but MS Server instead of the ECE Servers are fast) for 51kb (x86).


    "Mark/Propose As Answer" if you got one.
    • Proposed as answer by ITler25 Friday, August 12, 2011 9:07 AM
    Thursday, August 11, 2011 4:21 PM
  • Really nice Knarz. Thanks for sharing this.
    Friday, August 12, 2011 9:07 AM
  • Just for the info, the elbacom keyboard filter driver is not working on 64-bit WES7 SP1. It seems like it is not digitally signed, which is now mandatory in 64-bit Windows 7.
    Friday, August 26, 2011 6:29 AM
  • Hi KNARZ,

    I try your advice, but cannot disable the hotkey.

    Ctrl + alt + del ,[Win], alt +tab still can work.

    I find the log in eventvwr like this.

    <Event xmlns="http://schemas.microsoft.com/win/2004/08/events/event">
    	<System>
    		<Provider Name="Microsoft-Windows-KeyboardFilter" Guid="{84DE80EB-86E8-4FF6-85A6-9319ABC578A4}" />
    		<EventID>10001</EventID>
    		<Version>0<Version>
    		<Level>2</Level>
    		<Task>1000</Task>
    		<Opcode>1</Opcode>
    		<Keywords>0x4000000000000000</Keywords>
    		<TimeCreated SystemTime="2011-08-31T04:24:15.218000000Z" />
    		<EventRecordID>1</EventRecordID>
    		<Correlation />
    		<Execution ProcessID="812" ThreadID="816" />
    		<Channel>Microsoft-Windows-KeyboardFilter/Admin</Channel>
    		<Computer>Demo-PC</Computer>
    		<Security UserID="S-1-5-18" />
    	</System>
    	<EventData>
    		<Data Name="Message">ERROR_NO_TOKEN</Data> 
    		<Data Name="ErrorCode">0</Data>
    		<Data Name="ActionItem" />
    	</EventData>
    </Event>

    Is it something else to do ?

     

    I am using WES7 sp1 x86.

     

    Thank you!



    • Edited by Ruikuan Wednesday, August 31, 2011 6:41 AM add log
    Wednesday, August 31, 2011 4:42 AM
  • Edit: delete.


    "Mark/Propose As Answer" if you got one.
    Wednesday, August 31, 2011 7:50 AM
  • Hi KNARZ,

    I try your advice, but cannot disable the hotkey.

    Ctrl + alt + del ,[Win], alt +tab still can work.

    I find the log in eventvwr like this.

     

    <Event xmlns="http://schemas.microsoft.com/win/2004/08/events/event">
    	<System>
    		<Provider Name="Microsoft-Windows-KeyboardFilter" Guid="{84DE80EB-86E8-4FF6-85A6-9319ABC578A4}" />
    		<EventID>10001</EventID>
    		<Version>0<Version>
    		<Level>2</Level>
    		<Task>1000</Task>
    		<Opcode>1</Opcode>
    		<Keywords>0x4000000000000000</Keywords>
    		<TimeCreated SystemTime="2011-08-31T04:24:15.218000000Z" />
    		<EventRecordID>1</EventRecordID>
    		<Correlation />
    		<Execution ProcessID="812" ThreadID="816" />
    		<Channel>Microsoft-Windows-KeyboardFilter/Admin</Channel>
    		<Computer>Demo-PC</Computer>
    		<Security UserID="S-1-5-18" />
    	</System>
    	<EventData>
    		<Data Name="Message">ERROR_NO_TOKEN</Data> 
    		<Data Name="ErrorCode">0</Data>
    		<Data Name="ActionItem" />
    	</EventData>
    </Event>
    

     

    Is it something else to do ?

     

    I am using WES7 sp1 x86.

     

    Thank you!




    i tested it now and keyboard filter works like a charm! - the only "trade off" (<- hope this is the right term) is that the keyboard filter is not localized.

    Please make sure that the keyboard filter service is running.
    "Mark/Propose As Answer" if you got one.

    Wednesday, August 31, 2011 8:53 AM
  • Sadly...

    Why my image can't work fine? ..

    Cound you please have a look at this answer file ? Thanks.

    https://0brr2a.bay.livefilestore.com/y1p9__Yxzd2yc5sdX4BX-KfFDGZ2uP_fDKdOvvI-27lp0qvxkYKnh--8Kp7qQ2Hwln_38ckz7GB2zjZYt6mCgeFSg/MinWpfShell.xml?download&psid=1

    The language package i use is zh-CN

    Wednesday, August 31, 2011 9:07 AM
  • There is nothin special in your XML.

    Just for the record and to be clear... you know that you have to configure the filter in gpedit.msc, right?!
    "Mark/Propose As Answer" if you got one.
    Wednesday, August 31, 2011 9:22 AM
  • I just don't know..

    How to configure the filter? Thanks..

    Wednesday, August 31, 2011 9:24 AM
  • Oh!

    I find it! let me have a try!

    It works very well!

     

    Thanks! KNARZ!


    • Edited by Ruikuan Wednesday, August 31, 2011 9:34 AM after try
    Wednesday, August 31, 2011 9:29 AM
  •  ;)
    "Mark/Propose As Answer" if you got one.
    Wednesday, August 31, 2011 9:34 AM
  • I have been evaluating WES7 for about two months now. I don't understand why there is no way to block CAD Key in WES7 but in POSReady.

    Since the POSReady filter driver isn't localized I don't even need to try it as we would deploy our systems in at least three different languages.

    Thursday, July 5, 2012 11:15 AM
  • I have been evaluating WES7 for about two months now. I don't understand why there is no way to block CAD Key in WES7 but in POSReady.

    Since the POSReady filter driver isn't localized I don't even need to try it as we would deploy our systems in at least three different languages.


    http://blogs.msdn.com/b/embedded/archive/2011/10/11/new-feature-updates-for-winows-embedded-standard-7-are-now-on-ece.aspx

    Windows Embedded Developer and Scripting Guy //Germany (Preparing a blog about Windows Embedded Standard)

    Thursday, July 5, 2012 3:17 PM