Synchronize with trunk's revision r57652.
[reactos.git] / 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 SettingPageProc(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 /* keysettings.c */
47 INT_PTR CALLBACK
48 KeySettingsDlgProc(HWND hDlg,UINT message,WPARAM wParam,LPARAM lParam);
49 VOID
50 UpdateKeySettingsList(VOID);
51
52 /* add.c */
53 INT_PTR CALLBACK
54 AddDlgProc(HWND hDlg,UINT message,WPARAM wParam,LPARAM lParam);
55 VOID
56 CreateKeyboardLayoutList(HWND hItemsList);
57 INT
58 GetLayoutCount(LPTSTR szLang);
59
60 /* changekeyseq.c */
61 INT_PTR CALLBACK
62 ChangeKeySeqDlgProc(HWND hDlg,UINT message,WPARAM wParam,LPARAM lParam);
63 BOOL
64 GetHotkeys(LPTSTR szHotkey, LPTSTR szLangHotkey, LPTSTR szLayoutHotkey);
65
66 void ShowLastWin32Error(HWND hWndOwner);
67
68 /* EOF */