79aecc9a511cc43543a3623c6f07cb543548540a
[reactos.git] / reactos / dll / cpl / input / input.h
1 #ifndef __CPL_INPUT_H
2 #define __CPL_INPUT_H
3
4 #include <windows.h>
5 #include <commctrl.h>
6 #include <cpl.h>
7
8 #include <stdlib.h>
9 #include <stdio.h>
10 #include <stdarg.h>
11 #include <tchar.h>
12 #include <process.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 SettingPageProc(HWND hwndDlg,UINT uMsg,WPARAM wParam,LPARAM lParam);
40 BOOL
41 GetLayoutName(LPCTSTR szLCID, LPTSTR szName);
42 VOID
43 UpdateLayoutsList(VOID);
44
45 /* keysettings.c */
46 INT_PTR CALLBACK
47 KeySettingsDlgProc(HWND hDlg,UINT message,WPARAM wParam,LPARAM lParam);
48
49 /* add.c */
50 INT_PTR CALLBACK
51 AddDlgProc(HWND hDlg,UINT message,WPARAM wParam,LPARAM lParam);
52 VOID
53 CreateKeyboardLayoutList(VOID);
54
55 /* changekeyseq.c */
56 INT_PTR CALLBACK
57 ChangeKeySeqDlgProc(HWND hDlg,UINT message,WPARAM wParam,LPARAM lParam);
58
59 /* inputlangprop.c */
60 INT_PTR CALLBACK
61 InputLangPropDlgProc(HWND hDlg,UINT message,WPARAM wParam,LPARAM lParam);
62
63 void ShowLastWin32Error(HWND hWndOwner);
64
65 #endif /* __CPL_INPUT_H */
66
67 /* EOF */