Click to See Complete Forum and Search --> : disabling ctrl+alt+delete


kaeiminji
January 3rd, 2000, 12:45 PM
Anyone know how to disable the ctrl+alt+delete keystroke in a visual basic program? Would be a big help - thanks
Best Regards

smalig
January 11th, 2000, 01:04 PM
Try it:

Private Declare Function RegisterServiceProcess Lib "kernel32" (ByVal dwProcessID As Long, ByVal dwType As Long) As Long

Private Sub Form_Unload(Cancel As Integer)
Call RegisterServiceProcess(0&, 0&)
End Sub

Private Sub Form_Load()
Call RegisterServiceProcess(0&, 1)
End Sub

Best Regards.

smalig@hotmail.com
http://vbcode.webhostme.com/

kaeiminji
January 11th, 2000, 01:22 PM
I've given it a try, but I have a question. This seems keep the program from being listed in the Close Program dialog box that results from ctrl+alt+del (is that right?). I was wondering if there was a way to disable the keystroke so that pressing it didn't bring up the Close Program dialog at all. Help?