CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1
    Join Date
    May 1999
    Posts
    15

    HOWTO: generate CRTL-ALT-DEL for a programm?

    Hi I have to simulate the CRTL-ALT-DEL user input from my program.
    I tried:
    keybd_event( VK_MENU,0,KEYEVENTF_EXTENDEDKEY | 0,0 );
    keybd_event( VK_CONTROL,0,KEYEVENTF_EXTENDEDKEY | 0,0 );
    keybd_event ((BYTE)VK_DELETE,0,0,0);
    keybd_event( VK_MENU,0,KEYEVENTF_EXTENDEDKEY | KEYEVENTF_KEYUP,0);
    keybd_event( VK_CONTROL,0,KEYEVENTF_EXTENDEDKEY | KEYEVENTF_KEYUP,0);

    but it doesn't work.

    Any ideas?


  2. #2
    Guest

    Re: HOWTO: generate CRTL-ALT-DEL for a programm?

    Can't be done using the API code (Security Design). I think PC Anywhere does it by changing some NT drivers.


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