|
-
May 27th, 1999, 08:49 AM
#1
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?
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|