Results 1 to 4 of 4

Thread: KeyDown

  1. #1

    Thread Starter
    Frenzied Member CyberCarsten's Avatar
    Join Date
    Sep 1999
    Location
    Aalborg Ø, Denmark
    Posts
    1,544

    Post

    HI!
    How do i make a program that comes with an error when CTRL+ALT+DEL is pressed.
    I have tried the KeyDown, but it didn't work.

    / CyberCarsten

  2. #2
    Guest

    Post

    your going to have to find a way to intercept the warm re-boot irq, before windows gets it. good luck, it is possible, maybe its worth going back through the postings on this site a few weeks.

    ------------------

    Wossname,
    Email me: [email protected]

  3. #3
    Hyperactive Member
    Join Date
    Sep 1999
    Location
    Cleveland, Ohio
    Posts
    263

    Post

    Actually, you could do it really easily, but not as direct as the method you were looking for...

    Checkout this tip in VB-World on how to disable Ctrl+Alt+Del by making the machine think the screen saver is running. Then use the GetAsyncKeyState or better yet the GetKeyState (I think?) API to determine which keys are being pressed; meaning you are looking for the combination of control+alternate+delete. If those keys are being pressed, display your error message.

  4. #4
    Lively Member
    Join Date
    Jun 1999
    Location
    Ireland
    Posts
    96

    Post

    1 solution would be.

    In the Tips Section of VB-World. Find the Tip telling you how to disable Ctrl+Alt+Del.

    Then create a timer: Interval=100

    Use the following API

    Declare Function GetAsyncKeyState Lib "user32" (ByVal vKey As Long) As Integer

    to check for 3 keys, Ctrl,Alt & Del and if true then ...

    Steve.

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