CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3
  1. #1
    Guest

    Blocking CTRL+ALT+DEL

    Hello,

    Does anyone know how I can block the CTRL+ALT+DEL and ALT+TAB via a VC++ app ?

    Ideally I need to trap these keystrokes and then ignore them.

    Thanks,

    Simon.


  2. #2
    Join Date
    Jul 1999
    Posts
    4

    Re: Blocking CTRL+ALT+DEL

    I don't believe this is possible. I remember reading somewhere that for a Windows platform (9x & NT, especially NT) the kernel identifies this key sequence and handles it. Just think if you could trap this sequence, you could bypass the security of NT. Not to mention all of the fake login programs that would pop up. You would not know if you are logging into the OS or someone's fake login program; which is sending your username and password to some e-mail address.

    HTH
    Steve

    Steve Winfough, MCSD
    [email protected]

  3. #3
    Join Date
    Jun 1999
    Location
    Canada - Québec
    Posts
    273

    Re: Blocking CTRL+ALT+DEL

    try this

    SystemParametersInfo (SPI_SCREENSAVERRUNNING, 1, &nOldVal, 0);//Turns keys off
    SystemParametersInfo (SPI_SCREENSAVERRUNNING, 0, &nOldVal, 0);//Turns keys on


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

Featured