How to Enable And Disable The Ctrl+Alt+Del
Posted on January 5, 2009
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 | 'System & API - How to Enable And Disable The Ctrl+Alt+Del Option Explicit Declare Function SystemParametersInfo Lib "user32" Alias "SystemParametersInfoA" _ (ByVal uAction As Long, ByVal uParam As Long, ByVal lpvParam As Any, ByVal fuWinIni As Long) As Long Sub DisableCtrlAltDelete(ByVal bDisabled As Boolean) Call SystemParametersInfo(97, bDisabled, CStr(1), 0) End Sub 'How can I call this routine: 'To disable Ctrl+Alt+Del Private Sub Command1_Click() DisableCtrlAltDelete (True) End Sub 'To enable Ctrl+Alt+Del Private Sub Command2_Click() DisableCtrlAltDelete (False) End Sub |
Related posts:
- How to Enable/Disable Mouse trails
- How to Enable/Disable all Controls in a frame
- How to Enable/Disable Task Manager
- How to Enable/Disable Close Button in a form
- How to Disable/Toggle screensaver in Windows XP/2003
- How to enable/disable the frame if checkbox is selected/deselected
- How to Enable or disable the Text1 control when the user clicks on the Check1 CheckBox control.
- How to Hide your Program from the Ctrl-Alt-Del Process list
- How to enable or disable the Cut, Copy and Paste menus in Edit menu if the text selected or not in a control.
- How to disable the Mouse until Reboot