Results 1 to 3 of 3

Thread: disabling/enabling ctrl+alt+del - urgent

  1. #1

    Thread Starter
    Hyperactive Member
    Join Date
    Mar 2000
    Location
    India
    Posts
    298
    hi,
    I tried using the SystemParameterInfo API to disable ctrl+alt+del and the WIndows key.

    The code i used was:

    SystemParametersInfo(97, bDisabled, ByVal 0&, 0)

    I also tried:

    SystemParametersInfo(97, bDisabled, CStr(1), 0)

    Where bDisabled was true for disabling and false for enabling.

    The former caused the system to hang(I had to restart everytime) and the latter gave me an error saying that "VB has performed an illegal operation and will be shut down"

    Can someone help me out here?

    Im using vb6 with windows95.

    Thanks in advance,
    Ramya.

    P.S. Is there any way this can be done with NT???

  2. #2
    Frenzied Member
    Join Date
    Mar 2000
    Posts
    1,089
    Are you sure you've declared it right

    I've just found the tip and tried it on my machine(VB6,Win98) and it works fine, here's the code I used

    Code:
    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

  3. #3
    Lively Member
    Join Date
    Jan 2000
    Location
    UK
    Posts
    66
    Apparently, there's no way to do this on NT (none that we know anyway)

    Simon

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