2016-08-07 13:07:23 +00:00
|
|
|
#ifndef _INPUT_H
|
|
|
|
#define _INPUT_H
|
|
|
|
|
2017-04-21 00:22:39 +00:00
|
|
|
#include <stdlib.h>
|
|
|
|
#include <wchar.h>
|
2016-08-07 13:07:23 +00:00
|
|
|
|
|
|
|
#define WIN32_NO_STATUS
|
|
|
|
#include <windef.h>
|
|
|
|
#include <winbase.h>
|
|
|
|
#include <winnls.h>
|
|
|
|
#include <winreg.h>
|
|
|
|
#include <winuser.h>
|
2016-08-07 23:28:50 +00:00
|
|
|
#include <wingdi.h>
|
2016-08-07 13:07:23 +00:00
|
|
|
#include <commctrl.h>
|
2016-08-08 20:30:36 +00:00
|
|
|
#include <windowsx.h>
|
|
|
|
#include <setupapi.h>
|
2016-08-07 23:28:50 +00:00
|
|
|
#include <strsafe.h>
|
2016-08-07 13:07:23 +00:00
|
|
|
|
|
|
|
#include "resource.h"
|
|
|
|
|
|
|
|
typedef LONG (CALLBACK *CPLAPPLET_PROC)(VOID);
|
|
|
|
|
|
|
|
typedef struct
|
|
|
|
{
|
|
|
|
int idIcon;
|
|
|
|
int idName;
|
|
|
|
int idDescription;
|
|
|
|
CPLAPPLET_PROC AppletProc;
|
|
|
|
} APPLET, *PAPPLET;
|
|
|
|
|
|
|
|
extern HINSTANCE hApplet;
|
|
|
|
|
|
|
|
// 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
|
|
|
|
|
2016-08-07 23:28:50 +00:00
|
|
|
#define MAX_STR_LEN 256
|
|
|
|
|
2016-08-08 20:30:36 +00:00
|
|
|
/* settings_page.c */
|
2016-08-07 13:07:23 +00:00
|
|
|
INT_PTR CALLBACK
|
2016-08-07 23:28:50 +00:00
|
|
|
SettingsPageProc(HWND hwndDlg, UINT uMsg, WPARAM wParam, LPARAM lParam);
|
2016-08-07 13:07:23 +00:00
|
|
|
|
2016-08-08 20:30:36 +00:00
|
|
|
/* advanced_settings_page.c */
|
|
|
|
INT_PTR CALLBACK
|
|
|
|
AdvancedSettingsPageProc(HWND hwndDlg, UINT uMsg, WPARAM wParam, LPARAM lParam);
|
|
|
|
|
|
|
|
/* add_dialog.c */
|
|
|
|
INT_PTR CALLBACK
|
|
|
|
AddDialogProc(HWND hDlg, UINT message, WPARAM wParam, LPARAM lParam);
|
2016-08-07 13:07:23 +00:00
|
|
|
|
2016-08-09 14:01:52 +00:00
|
|
|
/* edit_dialog.c */
|
|
|
|
INT_PTR CALLBACK
|
|
|
|
EditDialogProc(HWND hDlg, UINT uMsg, WPARAM wParam, LPARAM lParam);
|
|
|
|
|
|
|
|
/* key_settings_dialog.c */
|
2016-08-09 21:03:55 +00:00
|
|
|
|
|
|
|
typedef struct
|
|
|
|
{
|
|
|
|
DWORD dwAttributes;
|
|
|
|
DWORD dwLanguage;
|
|
|
|
DWORD dwLayout;
|
|
|
|
} KEY_SETTINGS;
|
|
|
|
|
2016-08-09 14:01:52 +00:00
|
|
|
INT_PTR CALLBACK
|
|
|
|
KeySettingsDialogProc(HWND hDlg, UINT uMsg, WPARAM wParam, LPARAM lParam);
|
|
|
|
|
2016-08-10 19:04:11 +00:00
|
|
|
DWORD
|
|
|
|
ReadAttributes(VOID);
|
|
|
|
|
2016-08-09 21:03:55 +00:00
|
|
|
/* key_sequence_dialog.c */
|
|
|
|
INT_PTR CALLBACK
|
|
|
|
ChangeKeySeqDialogProc(HWND hwndDlg, UINT uMsg, WPARAM wParam, LPARAM lParam);
|
|
|
|
|
2016-08-09 14:01:52 +00:00
|
|
|
|
2016-08-08 20:30:36 +00:00
|
|
|
static inline DWORD
|
|
|
|
DWORDfromString(const WCHAR *pszString)
|
|
|
|
{
|
|
|
|
WCHAR *pszEnd;
|
|
|
|
|
|
|
|
return wcstoul(pszString, &pszEnd, 16);
|
|
|
|
}
|
|
|
|
|
2016-08-07 13:07:23 +00:00
|
|
|
#endif /* _INPUT_H */
|