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