

'Re-enable CTRL+ALT+DEL and ALT+TAB before the program terminates. Private Sub Form_Unload(Cancel As Integer) Private Declare Function SystemParametersInfo Lib "User32" _ Private Const SPI_SCREENSAVERRUNNING = 97& You will need two command buttons for this program. Machine, which could result in the loss of data.

Not be possible to terminate it by any method other than rebooting the If a program "hangs" while CTRL+ALT+DEL is disabled, it may Program dialog box was created to enable users to terminate misbehavingĪpplications. Note that disabling CTRL+ALT+DEL is not recommended because the Close "SPI_SCREENSAVERRUNNING Windows 95: Used internally applications should As a side effect, CTRL+ALT+DEL and ALT+TAB are disabled. SystemParametersInfo API to trick Windows 95 into thinking that a screen Sometimes it is necessary for a program to prevent the use of theĬTRL+ALT+DEL key combination to bring up the Close Program task list to endĪ task or shut down Windows 95 and to prevent the use of the ALT+TAB keyĬombination to switch tasks. How can I disable CTRL-ALT-DEL and ALT-TAB and CTRL-ESC ? It says that the code works in Win95, but I think a similar article in MSDN also mentions that the code works in Win95 & Win98. Check out this article at one of the best site for API:Īnd they have one article has the code to disable those key you want.
