Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. C / C++ / MFC
  3. keyboard hooking

keyboard hooking

Scheduled Pinned Locked Moved C / C++ / MFC
3 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • L Offline
    L Offline
    Lee Middleton
    wrote on last edited by
    #1

    I am writing an application in which I need to capture all keyboard system keys in Win2k until the user logs in. I have managed to do so for all combinations except ctrl+alt+del using SetWindowsHookEx()in Winuser.h and a callback function. In Win2k this combination produces the Windows Security dialog with access to the Task Manager, and thus the ability to kill a process. I have no trouble capturing any dual combination of system and non-system keys, including anything with each of ctrl, alt and del. Is there a certain syntax needed to get all three of these keys, or is it just not possible to persuade Windows to let me handle things? Lee Middleton

    J M 2 Replies Last reply
    0
    • L Lee Middleton

      I am writing an application in which I need to capture all keyboard system keys in Win2k until the user logs in. I have managed to do so for all combinations except ctrl+alt+del using SetWindowsHookEx()in Winuser.h and a callback function. In Win2k this combination produces the Windows Security dialog with access to the Task Manager, and thus the ability to kill a process. I have no trouble capturing any dual combination of system and non-system keys, including anything with each of ctrl, alt and del. Is there a certain syntax needed to get all three of these keys, or is it just not possible to persuade Windows to let me handle things? Lee Middleton

      J Offline
      J Offline
      James Pullicino
      wrote on last edited by
      #2

      I think that win2k will not let you do this for security reasons. If you can trap ctrl-alt-del, then you can create a trojan which will mimic the logon screen and ask for a password. :( (2b || !2b)

      1 Reply Last reply
      0
      • L Lee Middleton

        I am writing an application in which I need to capture all keyboard system keys in Win2k until the user logs in. I have managed to do so for all combinations except ctrl+alt+del using SetWindowsHookEx()in Winuser.h and a callback function. In Win2k this combination produces the Windows Security dialog with access to the Task Manager, and thus the ability to kill a process. I have no trouble capturing any dual combination of system and non-system keys, including anything with each of ctrl, alt and del. Is there a certain syntax needed to get all three of these keys, or is it just not possible to persuade Windows to let me handle things? Lee Middleton

        M Offline
        M Offline
        mProject
        wrote on last edited by
        #3

        Hi, I had problem of CTRL+ALT+DEL last few days. I searched discussion board for that but didnot found proper solution. I only found that use Gina Dll inplace of microsoft's MSGina.dll. That is not proper solution. Now i solved my purpose to disable CTRL+ALT+DEL in win2000. I don't know about WinNT but it will work for it also. So i want to contribute this part to all user. Steps are as follows : 1. Open Microsoft SDK Examples. In That Example, Open GinaStub example. 2. Find function int WINAPI WlxLoggedOnSAS( PVOID pWlxContext, DWORD dwSasType, PVOID pReserved ) 3. In this function remove all code written and only return like this return WLX_SAS_ACTION_NONE; 4. So it looks like this... int WINAPI WlxLoggedOnSAS( PVOID pWlxContext, DWORD dwSasType, PVOID pReserved ) { return WLX_SAS_ACTION_NONE; // Return code for doing nothing ... return to desktop } 5. Now Make dll. 6. Goto Registry by regedit. 7. goto \HKEY_LOCAL_MACHINE\Software\Microsoft\Windows NT\CurrentVersion\Winlogon (WindowsNT is also there. So dont confused it is | Windows(Space)NT | okay) 8. Make New string value and give data like this name : GinaDLL Type : REG_SZ Data : C:\WinNT\System32\mygina.dll (path of your gina dll(suppose mygina.dll)) 9. Reboot computer And your control+alter+delete not worked at all. ---------------------------------------------------------------------------------------- If You want this mygina.dll then contact me on my personal email address. manish_ld@rediffmail.com m_codeproject@rediffmail.com if still not contact me then and then try : pansiniya_manish@hotmail.com ---------------------------------------------------------------------------------------- Thanx in advance. :cool: :cool: :cool: :cool: :cool: :-O :rose: :rose: :rose: -------------------------------------------------- Say Whatever You Know. Helping other people is good for health. ========= Manish ========= ---------------------------------------------------

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups