VBcoders Guest



Don't have an account yet? Register
 


Forgot Password?



Disable the CTRL+ALT+DELETE

by Waty Thierry (60 Submissions)
Category: Windows System Services
Compatability: Visual Basic 4.0 (32-bit)
Difficulty: Unknown Difficulty
Originally Published: Tue 13th April 1999
Date Added: Mon 8th February 2021
Rating: (2 Votes)

Disable the CTRL+ALT+DELETE

Rate Disable the CTRL+ALT+DELETE



   (ByVal uAction As Long, ByVal uParam As Long, lpvParam As Any, ByVal fuWinIni As Long) As Long

Private Const SPI_SCREENSAVERRUNNING = 97

Private Sub Form_Unload(Cancel As Integer)

   ' when this app closes, make sure CTRL+ALT+DELETE is re-enabled
   Call Command2_Click

End Sub

Private Sub cmdDisableCTRLALTDEL_Click()

   Dim Ret  As Long
   Dim pOld As Boolean
   Ret = SystemParametersInfo(SPI_SCREENSAVERRUNNING, True, pOld, 0)

End Sub

Private Sub cmdEnableCTRLALTDEL_Click()

   Dim Ret  As Long
   Dim pOld As Boolean
   Ret = SystemParametersInfo(SPI_SCREENSAVERRUNNING, False, pOld, 0)

End Sub



Download this snippet    Add to My Saved Code

Disable the CTRL+ALT+DELETE Comments

No comments have been posted about Disable the CTRL+ALT+DELETE. Why not be the first to post a comment about Disable the CTRL+ALT+DELETE.

Post your comment

Subject:
Message:
0/1000 characters