模拟鼠标键盘相关
模拟键盘、鼠标:
普通模拟:
postmessage
sendinput
mouse_event, keybd_event
驱动模拟:
检测普通模拟(sendinput):
typedef struct tagKBDLLHOOKSTRUCT { DWORD vkCode; DWORD scanCode; DWORD flags; DWORD time; ULONG_PTR dwExtraInfo; } KBDLLHOOKSTRUCT, *PKBDLLHOOKSTRUCT, *LPKBDLLHOOKSTRUCT;
flags
Type: DWORD
The extended-key flag, event-injected flags, context code, and transition-state flag. This member is specified as follows. An application can use the following values to test the keystroke flags. Testing LLKHF_INJECTED (bit 4) will tell you whether the event was injected. If it was, then testing LLKHF_LOWER_IL_INJECTED (bit 1) will tell you whether or not the event was injected from a process running at lower integrity level.
LLKHF_INJECTED
http://bbs.pediy.com/thread-139040.htm
http://bbs.csdn.net/topics/350161875
http://www.cnblogs.com/sunrack/articles/687151.html