Results 1 to 2 of 2

Thread: Disable AltCtlDel but NOT S-Saver too???

  1. #1

    Thread Starter
    New Member
    Join Date
    Oct 2000
    Posts
    3

    Red face

    All of the API code snippets I've found that disable Alt-Ctrl-Delete also disable the screen saver! Is there a way to disable ACD w/o disabling the screen saver as well???
    -*- Tom -*-

  2. #2
    Member
    Join Date
    Jun 2000
    Location
    Slovenia, Europe
    Posts
    58
    This works fine for me:

    Option Explicit

    Private 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 DisableCtrlAltDelete(bDisabled As Boolean)
    Dim x As Long
    x = SystemParametersInfo(97, bDisabled, CStr(1), 0)
    End Sub


    Usage:
    to disable:
    DisableCtrlAltDelete True
    to enable:
    DisableCtrlAltDelete False

    Tadej

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width