[KBSWITCH][INPUT][SDK] Use <imm32_undoc.h>'s IS_IME_HKL (#6588)

Unify the private IMM32 macro
definitions. Refactoring...
JIRA issue: CORE-19361
- Define IS_SPECIAL_HKL macro
  in <imm32_undoc.h>.
- Use IS_IME_HKL and
  IS_SPECIAL_HKL macros of
  <imm32_undoc.h>,
  in kbswitch and input modules.
This commit is contained in:
Katayama Hirofumi MZ 2024-03-10 12:15:56 +09:00 committed by GitHub
parent e25d7d724d
commit fcbcc5b30c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 12 additions and 19 deletions

View file

@ -11,6 +11,7 @@
#include <shlobj.h>
#include <shlwapi_undoc.h>
#include <imm.h>
#include <imm32_undoc.h>
/*
* This program kbswitch is a mimic of Win2k's internat.exe.
@ -26,13 +27,6 @@
* won't be generated in Vista+.
*/
#define IME_MASK (0xE0000000UL)
#define SPECIAL_MASK (0xF0000000UL)
#define IS_IME_HKL(hKL) ((((ULONG_PTR)(hKL)) & 0xF0000000) == IME_MASK)
#define IS_SPECIAL_HKL(hKL) ((((ULONG_PTR)(hKL)) & 0xF0000000) == SPECIAL_MASK)
#define SPECIALIDFROMHKL(hKL) ((WORD)(HIWORD(hKL) & 0x0FFF))
#define WM_NOTIFYICONMSG (WM_USER + 248)
PKBSWITCHSETHOOKS KbSwitchSetHooks = NULL;