PDA

Click to See Complete Forum and Search --> : disable alt ctrl del in windows 2000/XP


calble
Feb 24th, 2002, 01:53 PM
How do you disable alt ctrl del in windows 2000
and windows XP. The API calls that disable alt
ctrl del in windows 9X dont't work with 2000/Xp.
Please help me so that I can finish my project.
Thank you,
Noah

Hack
Feb 24th, 2002, 03:00 PM
Use the Query_Unload Mode of your main form.[Highlight=VB]Private Sub Form_QueryUnload(Cancel As Integer, UnloadMode As Integer)
'there are 5 unloadmode levels
Select Case UnloadMode
Case vbFormControlMenu 'UnloadMode 0
'form is being unloaded via the Close
'command from the System menu or
'the X button on the form
Cancel = -1
Case vbFormCode 'UnloadMode 1
'Unload Me has been issued from code
Case vbAppWindows 'UnloadMode 2
'Windows itself is closing
Case vbAppTaskManager 'UnloadMode 3
'the Task Manager is closing the app
Case vbFormMDIForm 'UnloadMod 4
'an MDI child form is closing because
'its parent form is closing
End Select
End Sub

parksie
Feb 24th, 2002, 05:38 PM
You can't disable Ctrl-Alt-Delete in NT.

MerrionComputin
Feb 25th, 2002, 04:18 AM
With Soldering_Iron
.RemoveKey "DELETE"
End With


There is no VB way of disabling the CTRL+ALT+DEL combination and this is for a very good reason....why do you want to do this? There may be another less drastic measuer to take...

HTH,
Duncan

parksie
Feb 25th, 2002, 11:07 AM
Originally posted by MerrionComputin
There is no VB way of disabling the CTRL+ALT+DEL combination and this is for a very good reason....why do you want to do this? There may be another less drastic measuer to take...There's no C++, Pascal, Assembler, Befunge, etc., way of doing it.

Whatever happens, NT gets Ctrl-Alt-Delete first.

calble
Feb 25th, 2002, 05:29 PM
I need to disable or hide my program from the task manger so that it can not be bypassed by the user. I creating a program that can help limt what people can do on public computer termials. For example prevent them from messing with settings.

MerrionComputin
Feb 26th, 2002, 04:37 AM
This is already possible through Windows NT user management (System Tools - > User Manager).

Set up a new group and restrict its rights then add the low rights users to that group.

HTH,
Duncan

Neilbaker86
Oct 2nd, 2002, 04:22 PM
It CAN be blocked with C++, My friend gave me a program he made and it blocked it succesfully, He wouldnt tell me how it was done exactly but he said he 'remapped the keys'.

If anyone has any idea on how to do this then please say!!

I will try to find his program to show you...

ice_531
Oct 2nd, 2002, 06:44 PM
What about registering the prog as a service?
doesnt that work lol :p

parksie
Oct 2nd, 2002, 07:28 PM
Originally posted by Neilbaker86
It CAN be blocked with C++, My friend gave me a program he made and it blocked it succesfully, He wouldnt tell me how it was done exactly but he said he 'remapped the keys'.

If anyone has any idea on how to do this then please say!!

I will try to find his program to show you... Not under NT you can't...you have to replace gina.dll which I think someone mentioned before...

The Hobo
Oct 2nd, 2002, 09:13 PM
Originally posted by calble
disable alt ctrl del in windows 2000/XP

Ahh, the age-old debate. Might as well stick a fork in her, sparky, because she's done!

amitabh
Oct 3rd, 2002, 04:04 AM
You can disable the task list though.

Pc_Madness
Oct 3rd, 2002, 06:49 AM
Theres a thread to do with this in General VB. Take the link, and at the bottom, it has a method of doing it on NT. But its extremely risky.. involving some keyboard mapping, if I'm correct.

I think I have an example of how to block the Ctrl + Alt + Del in xp.. but its done by changing something in the Registry..

Pc_Madness
Oct 3rd, 2002, 06:51 AM
This be what I talks of :D

amitabh
Oct 3rd, 2002, 07:51 AM
Pc_Madness
Or anyone who uses this code in W2K.
Just check whether this code disables and enables shutdown and restart options in the start menu correctly.

Pc_Madness
Oct 3rd, 2002, 09:03 PM
???

That example enables and disables the Alt+ctl+Del.

lol, I think I know what you did.... :D

amitabh
Oct 4th, 2002, 01:55 AM
Pc_Madness What according to you could have gone wrong?
The problem seems to have occured in W2K Pro edition.

Pc_Madness
Oct 4th, 2002, 05:53 AM
The example I posted disables the Alt+Ctrl+Del by editing the a registry key.

When you run the program the first time - tick some boxes, etc, those things are disabled. Close the app - There still disabled. I did it to myself, scared the **** out of myself when I could get my Alt+Ctrl+Del back... but then I ran it again, and checked some boxes and things started working again.

Although I had alot of trouble adding the code to my app... :(

amitabh
Oct 4th, 2002, 06:08 AM
I know how to use it. Actually, I am the author of the code at PSC. Someon had a problem with W2K PRO version, that's why I was asking you.
Anyways, what trouble did you have integrating it in your code?