CodeItBetter Programming Another VB Programming Blog

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:

  1. How to Enable/Disable Mouse trails
  2. How to Enable/Disable all Controls in a frame
  3. How to Enable/Disable Task Manager
  4. How to Enable/Disable Close Button in a form
  5. How to Disable/Toggle screensaver in Windows XP/2003
  6. How to enable/disable the frame if checkbox is selected/deselected
  7. How to Enable or disable the Text1 control when the user clicks on the Check1 CheckBox control.
  8. How to Hide your Program from the Ctrl-Alt-Del Process list
  9. How to enable or disable the Cut, Copy and Paste menus in Edit menu if the text selected or not in a control.
  10. How to disable the Mouse until Reboot

Comments (0) Trackbacks (0)

No comments yet.


Leave a comment


No trackbacks yet.