|
-
Jul 12th, 2004, 10:08 PM
#1
Thread Starter
New Member
disable the CTRL ALT DELETE key in visual basic.net
Good day.
I'm creating a simple form that could capture keystrokes. How can i capture CTRL-ALT-DELETE key when pressed together so as not to go to the task manager, in short I want to disable any function when the three keys is pressed. I tried to use the keydown event , detecting the three keys when pressed then set e.handled = true, but still it wont work
How could i do it in VB.NET, any help would be greatly appreciated. please....
THank you very much.
-
Jul 12th, 2004, 10:12 PM
#2
Not possible in win 2k/xp....
Tips:
- Google is your friend! Search before posting!
- Name your thread appropriately... "I Need Help" doesn't cut it!
- Always post your code!!!! We can't read your mind!!! (well, at least most of us!)
- Allways Include the Name and Line of the Exception (if one is occuring!)
- If it is relevant state the version of Visual Studio/.Net Framwork you are using (2002/2003/2005)
If you think I was helpful, rate my post  IRC Contact: Rizon/xous ChakraNET/xous Freenode/xous
-
Jul 14th, 2004, 08:01 AM
#3
Frenzied Member
can he not capture the ascii character of one or all three concatenated and escape the event sequence? I did that with a custom control that accepts only numbers and nothing else.
-
Jul 14th, 2004, 12:04 PM
#4
I wonder how many charact
No, the event never gets passed to the app from the OS, acting as if no key was ever pressed.
-
Jul 14th, 2004, 12:35 PM
#5
Originally posted by Andy
can he not capture the ascii character of one or all three concatenated and escape the event sequence? I did that with a custom control that accepts only numbers and nothing else.
No, because two out of the three keys (Ctrl & Alt) have no ASCII.... they are not characters, they are keyes.
Originally posted by nemaroller
No, the event never gets passed to the app from the OS, acting as if no key was ever pressed.
Right, makes sense to me. As the keys are sent through the keyboard IRQ, the OS picks up that the Ctrl-Alt-Del keys were hit, and goes into the Task Manager mode. The key strokes never make it to the app.
The only way this is going to work is if the OS didn't intercept the keystrokes and always sent everything. Which used to be possible (pre Win2k). I don't know if it istill is or not. It could a couple of APIs to get it done (and no, I don't know what they are either.)
There is a danger of diabling the C-A-D keystrokes though. God forbid that something goes horribly wrong and they need to three-finger salute to get out of an app. Suddenly, it doesn't work! So, use it wisely.
TG
-
Jul 14th, 2004, 06:30 PM
#6
Lively Member
I"m confused why you want to use those keys anyway...why don't you just use some other keys to take a screenshot?
It is like wiping your ass with silk, I love it!
-
Jul 14th, 2004, 06:32 PM
#7
Lively Member
haha whoops...keystrokes w00t w00t, lol i'm dumb sorry i'll shut up...are you making a key-logger?
I bet there is a way to make your program know that Windows did it's thing when the keys were pressed, so...
If windowsdoesit'sthing = true Then
Control+Alt+Delete were pressed
End If
maybe...maybe not
It is like wiping your ass with silk, I love it!
-
Jul 14th, 2004, 08:50 PM
#8
I wonder how many charact
Besides which, any windows application made in the Philipines since the 'I love U' virus, automatically does not work in the West.
-
Jul 14th, 2004, 09:03 PM
#9
Thread Starter
New Member
thnx for ur replies. Im a newbie programmer in vb.net, can anyone provide me a code that disables keypress ( ctrl-ESC, ALT-ESC, windows keys, ALT-TAB, CTRL-ALT-DEL), or links of tutorials on how to hook this keys.
thank you very much
-
Jul 14th, 2004, 09:07 PM
#10
I wonder how many charact
You need to use Win32 API's for this. I think someone mentioned that.
Just be warned, you better be careful, because messing with hooks will screw your system faster than a 1800xp Athlon without its heatsink.
-
Jul 14th, 2004, 09:12 PM
#11
Thread Starter
New Member
ok. I only need tutorials and code snippets so that I can get a fresh start.
TNX.
-
Jul 14th, 2004, 09:18 PM
#12
I wonder how many charact
Last edited by nemaroller; Jul 14th, 2004 at 09:22 PM.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|