VBcoders Guest



Don't have an account yet? Register
 


Forgot Password?



disables/enables Ctrl-Alt-Del

by Pete Thompson (1 Submission)
Category: Custom Controls/Forms/Menus
Compatability: Visual Basic 4.0 (32-bit)
Difficulty: Unknown Difficulty
Originally Published: Sun 1st October 2000
Date Added: Mon 8th February 2021
Rating: (1 Votes)

disables/enables Ctrl-Alt-Del

API Declarations


Private Declare Function SystemParametersInfo Lib "user32" Alias "SystemParametersInfoA" _
(ByVal uAction As Long, ByVal uParam As Long, lpvParam As Any, ByVal fuWinIni As Long) As Long

Private Const SPI_SCREENSAVERRUNNING = 97

Rate disables/enables Ctrl-Alt-Del



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


'put this in the form close
 Dim Ret  As Long
  Dim pOld As Boolean
  Ret = SystemParametersInfo(SPI_SCREENSAVERRUNNING, False, pOld, 0)


Download this snippet    Add to My Saved Code

disables/enables Ctrl-Alt-Del Comments

No comments have been posted about disables/enables Ctrl-Alt-Del. Why not be the first to post a comment about disables/enables Ctrl-Alt-Del.

Post your comment

Subject:
Message:
0/1000 characters