- Timestamp:
- Oct 8, 2001, 10:46:44 PM (24 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/user32/HOOK.CPP
r6859 r6967 1 /* $Id: HOOK.CPP,v 1.2 4 2001-09-28 14:08:17phaller Exp $ */1 /* $Id: HOOK.CPP,v 1.25 2001-10-08 20:46:44 phaller Exp $ */ 2 2 3 3 /* … … 778 778 BOOL ProcessKbdHook(LPMSG msg, BOOL remove ) 779 779 { 780 // call the low level hook first 781 ProcessKbdHookLL(msg, remove, FALSE); 782 780 783 /* Handle F1 key by sending out WM_HELP message */ 781 784 if ((msg->message == WM_KEYUP) && … … 815 818 * system-input queue AFAIK. 816 819 */ 817 BOOL ProcessKbdHookLL(LPMSG msg, BOOL remove)820 BOOL ProcessKbdHookLL(LPMSG msg, BOOL flagRemove, BOOL flagInjected ) 818 821 { 819 822 // @@@PH … … 827 830 kbhs.scanCode = ( (msg->lParam & 0x00ff0000) >> 16); 828 831 kbhs.flags = ( (msg->lParam & (1 << 24)) ? LLKHF_EXTENDED : 0 ) | 829 // LLKHF_INJECTED currently not supported (SendInput)832 ( flagInjected ? LLKHF_INJECTED : 0) | 830 833 fAltDown ? LLKHF_ALTDOWN : 0 | 831 834 ( (msg->lParam & (1 << 31)) ? LLKHF_UP : 0); … … 834 837 835 838 return (HOOK_CallHooksA(WH_KEYBOARD_LL, 836 remove ? HC_ACTION : HC_NOREMOVE,839 flagRemove ? HC_ACTION : HC_NOREMOVE, 837 840 msg->message, 838 841 (LPARAM)&kbhs )
Note:
See TracChangeset
for help on using the changeset viewer.