Changeset 6967 for trunk/src


Ignore:
Timestamp:
Oct 8, 2001, 10:46:44 PM (24 years ago)
Author:
phaller
Message:

enabled LL keyboard hook

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/user32/HOOK.CPP

    r6859 r6967  
    1 /* $Id: HOOK.CPP,v 1.24 2001-09-28 14:08:17 phaller Exp $ */
     1/* $Id: HOOK.CPP,v 1.25 2001-10-08 20:46:44 phaller Exp $ */
    22
    33/*
     
    778778BOOL ProcessKbdHook(LPMSG msg, BOOL remove )
    779779{
     780  // call the low level hook first
     781  ProcessKbdHookLL(msg, remove, FALSE);
     782 
    780783    /* Handle F1 key by sending out WM_HELP message */
    781784    if ((msg->message == WM_KEYUP) &&
     
    815818 * system-input queue AFAIK.
    816819 */
    817 BOOL ProcessKbdHookLL(LPMSG msg, BOOL remove )
     820BOOL ProcessKbdHookLL(LPMSG msg, BOOL flagRemove, BOOL flagInjected )
    818821{
    819822  // @@@PH
     
    827830  kbhs.scanCode    = ( (msg->lParam & 0x00ff0000) >> 16);
    828831  kbhs.flags       = ( (msg->lParam & (1 << 24)) ? LLKHF_EXTENDED : 0 ) |
    829                      // LLKHF_INJECTED currently not supported (SendInput)
     832                     ( flagInjected ? LLKHF_INJECTED : 0) |
    830833                     fAltDown ? LLKHF_ALTDOWN : 0 |
    831834                     ( (msg->lParam & (1 << 31)) ? LLKHF_UP : 0);
     
    834837 
    835838  return (HOOK_CallHooksA(WH_KEYBOARD_LL,
    836                           remove ? HC_ACTION : HC_NOREMOVE,
     839                          flagRemove ? HC_ACTION : HC_NOREMOVE,
    837840                          msg->message,
    838841                          (LPARAM)&kbhs )
Note: See TracChangeset for help on using the changeset viewer.