|
-
April 11th, 1999, 05:07 AM
#1
Generate Keyboard event
Hi,
I want to create a keyboard event from within a service to long to Windows NT. Therefore I need to simulate Ctrl-Alt-Del.
keydb_event(VK_MENU, 0, 0, 0);
keydb_event(VK_CONTROL, 0, 0, 0);
keydb_event(VK_DELETE, 0, 0, 0);
keydb_event(VK_DELETE, 0, KEYEVENTF_KEYUP, 0);
keydb_event(VK_CONTROL, 0, KEYEVENTF_KEYUP, 0);
keydb_event(VK_MENU, 0, KEYEVENTF_KEYUP, 0);
does not work.
Any ideas?
Regards,
Bernd
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
|