#ifndef _INPUT_H #define _INPUT_H #include #include #define WIN32_NO_STATUS #include #include #include #include #include #include #include #include #include #include #include #include "resource.h" typedef struct { int idIcon; int idName; int idDescription; APPLET_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 #define MAX_STR_LEN 256 /* settings_page.c */ INT_PTR CALLBACK SettingsPageProc(HWND hwndDlg, UINT uMsg, WPARAM wParam, LPARAM lParam); /* 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); /* edit_dialog.c */ INT_PTR CALLBACK EditDialogProc(HWND hDlg, UINT uMsg, WPARAM wParam, LPARAM lParam); /* key_settings_dialog.c */ typedef struct { DWORD dwAttributes; DWORD dwLanguage; DWORD dwLayout; } KEY_SETTINGS; INT_PTR CALLBACK KeySettingsDialogProc(HWND hDlg, UINT uMsg, WPARAM wParam, LPARAM lParam); DWORD ReadAttributes(VOID); /* key_sequence_dialog.c */ INT_PTR CALLBACK ChangeKeySeqDialogProc(HWND hwndDlg, UINT uMsg, WPARAM wParam, LPARAM lParam); static inline DWORD DWORDfromString(const WCHAR *pszString) { WCHAR *pszEnd; return wcstoul(pszString, &pszEnd, 16); } #endif /* _INPUT_H */