Results 1 to 2 of 2

Thread: Disabling Ctrl Alt Del checking

  1. #1

    Thread Starter
    Lively Member brjames's Avatar
    Join Date
    Jan 2000
    Location
    Tenby, Wales, UK
    Posts
    121

    I am developing a password protection application and have nearly finished it but, I know its only a simple thing to do but cannot remember how to disable Ctrl Alt Del checking so that the user cannot cancel the program.

    Can anyone help me with this?

    Thankx in advance!

    Ben


  2. #2
    Junior Member
    Join Date
    Sep 2000
    Location
    South Africa
    Posts
    25

    Talking

    lucky 4 u i am also working on something similar (maybe i will send my app to u when i am finished
    here is the code

    put this in general declarations of form

    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

    paste this sub in the form

    Sub DisableCtrlAltDelete(bDisabled As Boolean)
    Dim X As Long
    X = SystemParametersInfo(97, bDisabled, CStr(1), 0)
    End Sub

    and in your form load event type the following

    Call DisableCtrlAltDelete (true)

    that skould disable all windows key combinations includind Windows key , Alt+Tab and Ctrl+Esc.


    Just remember to type set it to false when you unload the form or else you cannot use your windows key combinations until you restart.


    Go Luke , and may the source be with you.

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