VBcoders Guest



Don't have an account yet? Register
 


Forgot Password?



Disable alt+Ctrl+Del

by Mafia Boy (1 Submission)
Category: Windows System Services
Compatability: VB 6.0
Difficulty: Unknown Difficulty
Originally Published: Tue 5th March 2002
Date Added: Mon 8th February 2021
Rating: (1 Votes)

Disable alt+Ctrl+Del

Rate Disable alt+Ctrl+Del



   (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 alt+Ctrl+Del Comments

No comments have been posted about Disable alt+Ctrl+Del. Why not be the first to post a comment about Disable alt+Ctrl+Del.

Post your comment

Subject:
Message:
0/1000 characters