Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Disable CTRL+AL+DEL
Message
From
17/09/2004 05:23:02
 
 
To
17/09/2004 02:03:36
General information
Forum:
Visual Basic
Category:
Other
Miscellaneous
Thread ID:
00943229
Message ID:
00943239
Views:
16
Hi Noel

You can try this code
disable CTRL + ALT + DEL

'disable CTRL + ALT + DEL
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 Disable(blnDisable As Boolean)

result = SystemParametersInfo(97, blnDisable, CStr(1), 0)

End Sub

-------------------


alternatively you can use the following code

Sub DisableCtrlAltDelete(bDisabled As Boolean)
Dim lpvParam As Boolean
Dim X As Long

X = SystemParametersInfo _
(SPI_SETSCREENSAVERRUNNING, _
bDisabled, lpvParam, 0)

End Sub


Then in your main code... in the Form_Load event... do this:


DisableCtrlAltDelete (True)


Regards
Pranav Gore
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform