VBcoders Browse New Submit Contact Sign In

No account? Register free

Forgot password?

Disable/Enable CTRL+ALT+DEL

King Patrik the Zerg  (1 Submission)   Windows System Services   Visual Basic 3.0   Unknown Difficulty   Wed 3rd February 2021

' This code disables/enabled CTRL+ALT+DEL pressing
' To disable CTRL+ALT+DEL, call the function Disable_CTRL_ALT_DEL
' To enabled CTRL+ALT+DEL, call the function Enable_CTRL_ALT_DEL

API Declarations
'***************************************************************
'Windows API/Global Declarations for :Dissable / Enable CTRL + AL
' T + DEL
'***************************************************************

Declare Function SystemParametersInfo Lib "user32" Alias "SystemParametersInfoA" (ByVal uAction As Long, ByVal uParam As Long, lpvParam As Any, ByVal fuWinIni As Long) As Long
Public Const SPI_SCREENSAVERRUNNING = 97
Public Sub Disable_Ctrl_Alt_Del()

'Disables the Crtl+Alt+Del
Dim AyW As Integer
Dim TurFls As Boolean
AwY = SystemParametersInfo(SPI_SCREENSAVERRUNNING, True, TurFls, 0)
End Sub
Public Sub Enable_Ctrl_Alt_Del()

'Enables the Crtl+Alt+Del
Dim AwY As Integer
Dim TurFls As Boolean
AwY = SystemParametersInfo(SPI_SCREENSAVERRUNNING, False, TurFls, 0)
End Sub

Rate Disable/Enable CTRL+ALT+DEL (3(3 Vote))
Disable/Enable CTRL+ALT+DEL.bas

Disable/Enable CTRL+ALT+DEL Comments

No comments yet — be the first to post one!

Post a Comment

0/1000 characters