Generate Ctrl-Alt-Del programmatically
-
Hello guys, I want to generate Ctrl-Alt-Del key sequence programmatically. I have searched a lot on net but don't get any solution. I have tried to fill keyboard buffer with 'keybd_event()' function. But it is also not working. It seems that it fills application's key buffer. Anyway......can anybody help me to solve this problem ? Thanking You, C.R.Naik
-
Hello guys, I want to generate Ctrl-Alt-Del key sequence programmatically. I have searched a lot on net but don't get any solution. I have tried to fill keyboard buffer with 'keybd_event()' function. But it is also not working. It seems that it fills application's key buffer. Anyway......can anybody help me to solve this problem ? Thanking You, C.R.Naik
It's not an easy one to solve. That key combination is special. When you press the Ctrl+Alt+Del keys on the keyboard, the keyboard driver is detecting that and passing the instructions on to the OS, rather than any application(s). Trying to stuff the keyboard buffer does not get "low enough" in the hierarchy. These two articles don't directly answer your question, but they might help you get started: http://www.codeproject.com/useritems/preventclose.asp http://www.codeproject.com/useritems/GINA\_SPY.asp