How can I intercept all key events, including ctrl+alt+del and ctrl+tab?

后端 未结 12 1437
眼角桃花
眼角桃花 2020-11-28 13:06

I\'m writing a screen saver type app that needs to stop the user from accessing the system without typing a password. I want to catch/supress the various methods a user migh

12条回答
  •  盖世英雄少女心
    2020-11-28 13:59

    "Process Explorer" by Mark Russinovich (http://technet.microsoft.com/en-us/sysinternals/bb896653.aspx) does it, and it had been doing before Sysinternals was bought by Microsoft.

    This article from 2002 updated in 2006 explains one way to do it without writing a keyboard driver. http://www.codeproject.com/KB/system/preventclose.aspx?msg=1666328

提交回复
热议问题