How do I trap windows key, alt+tab, ctrl+alt+delete in C#?

前端 未结 5 2110
遥遥无期
遥遥无期 2020-12-18 13:08

How do I trap Windows key, Alt+Tab, and Ctrl+Alt+Delete in a Windows application using C#?

5条回答
  •  星月不相逢
    2020-12-18 13:20

    As Jan stated, you can't capture CTRL-ALT-DEL without writing your own GINA.

    For the Windows or ALT-TAB keys, you can look at these for help:

    Capturing Keystrokes without Focus (SO near-duplicate)

    How To Set A Windows Hook

    Hooks (low-level, but will explain what you need for the P/Invoke)

提交回复
热议问题