Results 1 to 2 of 2

Thread: help w/ module!?

  1. #1

    Thread Starter
    Lively Member VB Begginer Kid's Avatar
    Join Date
    Jul 2001
    Location
    home
    Posts
    127

    help w/ module!?

    this isn't disabling the ctrl alt del function like its supposed to.is it beause i have win2k if not pleez help

    VB Code:
    1. Private Sub Form_Load()
    2. Call EnableTaskKeys(False)
    3. End Sub

    heres the module

    VB Code:
    1. Private Const SPI_SCREENSAVERRUNNING = 97
    2.  
    3. Declare Function SystemParametersInfo Lib "user32" _
    4.     Alias "SystemParametersInfoA" (ByVal uAction As _
    5.     Long, ByVal uParam As Long, lpvParam As Any, ByVal _
    6.     fuWinIni As Long) As Long
    7.  
    8. Public Sub EnableTaskKeys(Enabled As Boolean)
    9.  
    10. If Enabled = False Then
    11.     SystemParametersInfo SPI_SCREENSAVERRUNNING, 1&, 0&, 0
    12. Else
    13.     SystemParametersInfo SPI_SCREENSAVERRUNNING, 0&, 0&, 0
    14. End If
    15.  
    16. End Sub
    I'm a beginner.
    ------------------------------------------------
    Your impossible ego ***** is like a
    Megalomaniacal tab on my tongue
    You *****in' touch me I will rip you apart


  2. #2
    Fanatic Member rudvs2's Avatar
    Join Date
    Mar 2001
    Location
    NZ
    Posts
    935
    ah ha Win 2k will make a difference that process will not work under the NT environment because NT still displays screensavers in the tasklist.


    I found that out the hard way as well

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