keyboard hooking
-
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
-
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
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)
-
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
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 ========= ---------------------------------------------------