2016-08-06 20:48:33 +00:00
|
|
|
#pragma once
|
|
|
|
|
2013-01-24 23:00:42 +00:00
|
|
|
#include <stdarg.h>
|
|
|
|
#include <windef.h>
|
|
|
|
#include <winbase.h>
|
2008-05-04 20:58:15 +00:00
|
|
|
#include <winuser.h>
|
2013-01-24 23:00:42 +00:00
|
|
|
#include <winnls.h>
|
|
|
|
#include <winreg.h>
|
|
|
|
#include <wingdi.h>
|
|
|
|
#include <shellapi.h>
|
2008-04-20 10:41:34 +00:00
|
|
|
#include <tchar.h>
|
2016-08-06 20:48:33 +00:00
|
|
|
#include <strsafe.h>
|
2008-04-20 10:41:34 +00:00
|
|
|
|
|
|
|
#include "resource.h"
|
2008-04-20 15:48:43 +00:00
|
|
|
|
|
|
|
// Character Count of a layout ID like "00000409"
|
|
|
|
#define CCH_LAYOUT_ID 8
|
|
|
|
|
|
|
|
// Maximum Character Count of a ULONG in decimal
|
|
|
|
#define CCH_ULONG_DEC 10
|
2008-05-20 12:53:31 +00:00
|
|
|
|
|
|
|
#define WM_KEY_PRESSED (WM_USER + 10100)
|
|
|
|
#define WM_LANG_CHANGED (WM_USER + 10200)
|
|
|
|
#define WM_WINDOW_ACTIVATE (WM_USER + 10300)
|
|
|
|
|
2016-08-06 20:48:33 +00:00
|
|
|
typedef BOOL (WINAPI *PKBSWITCHSETHOOKS) (VOID);
|
|
|
|
typedef VOID (WINAPI *PKBSWITCHDELETEHOOKS) (VOID);
|
|
|
|
|
2008-05-20 12:53:31 +00:00
|
|
|
TCHAR szKbSwitcherName[] = _T("kbswitcher");
|