Home
Search
 
What's New
Index
Books
Links
Q & A
Newsletter
Banners
 
Feedback
Tip Jar
 
 
 
 
 
 
 
 
Old Pages
 
Old Index
Site Map
What's New
 
Books
How To
Tips & Tricks
Tutorials
Stories
Performance
Essays
Links
Q & A
New in VB6
Free Stuff
Pictures
 
 
 
TitleDisable Ctl-Alt-Del
Keywordsctl-alt-del, disable
CategoriesSoftware Engineering, Windows
 
Use the SystemParametersInfo API function to tell the system a screen saver is running.
 
Private Sub chkCtlAltDelDisabled_Click()
    SystemParametersInfo SPI_SETSCREENSAVERRUNNING, _
        (chkCtlAltDelDisabled.Value = vbChecked), _
        0&, 0
End Sub

' Reenable Ctl-Alt-Del.
Private Sub Form_Unload(Cancel As Integer)
    SystemParametersInfo SPI_SETSCREENSAVERRUNNING, _
        False, 0&, 0
End Sub
 
 
Copyright © 1997-2003 Rocky Mountain Computer Consulting, Inc.   All rights reserved.
  Updated