Sync to trunk revision 61757.
[reactos.git] / dll / cpl / input / input.h
1 #include <stdarg.h>
2
3 #define WIN32_NO_STATUS
4 #include <windef.h>
5 #include <winbase.h>
6 #include <winnls.h>
7 #include <winreg.h>
8 #include <winuser.h>
9 #include <commctrl.h>
10 #include <tchar.h>
11
12 #include "resource.h"
13
14 typedef LONG (CALLBACK *CPLAPPLET_PROC)(VOID);
15
16 typedef struct
17 {
18 int idIcon;
19 int idName;
20 int idDescription;
21 CPLAPPLET_PROC AppletProc;
22 } APPLET, *PAPPLET;
23
24 extern HINSTANCE hApplet;
25 extern HANDLE hProcessHeap;
26
27 // Character Count of a layout ID like "00000409"
28 #define CCH_LAYOUT_ID 8
29
30 // Maximum Character Count of a ULONG in decimal
31 #define CCH_ULONG_DEC 10
32
33 /* input.c */
34 VOID
35 InitPropSheetPage(PROPSHEETPAGE *psp, WORD idDlg, DLGPROC DlgProc);
36
37 /* settings.c */
38 INT_PTR CALLBACK
39 SettingsPageProc(HWND hwndDlg,UINT uMsg,WPARAM wParam,LPARAM lParam);
40 BOOL
41 GetLayoutName(LPCTSTR szLCID, LPTSTR szName);
42 VOID
43 UpdateLayoutsList(VOID);
44 BOOL
45 IsLayoutExists(LPTSTR szLayoutID, LPTSTR szLangID);
46
47 /* advsettings.c */
48 INT_PTR CALLBACK
49 AdvancedSettingsPageProc(HWND hwndDlg, UINT uMsg, WPARAM wParam, LPARAM lParam);
50
51 /* keysettings.c */
52 INT_PTR CALLBACK
53 KeySettingsDlgProc(HWND hDlg,UINT message,WPARAM wParam,LPARAM lParam);
54 VOID
55 UpdateKeySettingsList(VOID);
56
57 /* add.c */
58 INT_PTR CALLBACK
59 AddDlgProc(HWND hDlg,UINT message,WPARAM wParam,LPARAM lParam);
60 VOID
61 CreateKeyboardLayoutList(HWND hItemsList);
62 INT
63 GetLayoutCount(LPTSTR szLang);
64
65 /* changekeyseq.c */
66 INT_PTR CALLBACK
67 ChangeKeySeqDlgProc(HWND hDlg,UINT message,WPARAM wParam,LPARAM lParam);
68 BOOL
69 GetHotkeys(LPTSTR szHotkey, LPTSTR szLangHotkey, LPTSTR szLayoutHotkey);
70
71 void ShowLastWin32Error(HWND hWndOwner);
72
73 /* EOF */