Ignore:
Timestamp:
Oct 26, 2001, 11:10:57 AM (24 years ago)
Author:
phaller
Message:

.

File:
1 edited

Legend:

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

    r7190 r7211  
    1 /* $Id: HOOK.CPP,v 1.29 2001-10-24 12:26:56 phaller Exp $ */
     1/* $Id: HOOK.CPP,v 1.30 2001-10-26 09:10:12 phaller Exp $ */
    22
    33/*
     
    818818        }
    819819    }
    820 
     820 
     821    // this undoc (don't care) bit isn't passed through to this hook
     822    DWORD lParam = msg->lParam & ~0x02000000;
     823 
    821824    return (HOOK_CallHooksA( WH_KEYBOARD, remove ? HC_ACTION : HC_NOREMOVE,
    822                              LOWORD (msg->wParam), msg->lParam )
     825                             LOWORD (msg->wParam), lParam )
    823826                             ? TRUE : FALSE);
    824827}
     
    845848 
    846849  kbhs.vkCode      = msg->wParam;
    847   kbhs.scanCode    = ( (msg->lParam & 0x00ff0000) >> 16);
     850  kbhs.scanCode    = ( (msg->lParam & 0x03ff0000) >> 16);
    848851 
    849852  BOOL fKeyUp      = (msg->message == WM_KEYUP) ||
Note: See TracChangeset for help on using the changeset viewer.