7 #define WIN32_NO_STATUS
17 #include <ndk/exfuncs.h>
21 #define DECIMAL_RADIX 10
24 #define MAX_FMT_SIZE 30
25 #define MAX_STR_SIZE 128
26 #define MAX_SAMPLES_STR_SIZE 70
28 #define MAX_NUMBERDSYMBOL 3
29 #define MAX_NUMBERSDIGITGRSYM 3
30 #define MAX_NUMBERSNSIGNSYM 4
31 #define MAX_NUMBERSLSEP 3
33 #define MAX_CURRENCYSYMBOL 5
34 #define MAX_CURRENCYDECSEP 3
35 #define MAX_CURRENCYGRPSEP 3
37 #define MAX_TIMEFORMAT 80
38 #define MAX_TIMESEPARATOR 3
39 #define MAX_TIMEAMSYMBOL 12
40 #define MAX_TIMEPMSYMBOL 12
42 #define MAX_SHRTDATEFMT 80
43 #define MAX_SHRTDATESEP 3
44 #define MAX_LONGDATEFMT 80
45 #define MAX_YEAR_EDIT 4
47 typedef struct _APPLET
52 APPLET_PROC AppletProc
;
55 typedef struct _GLOBALDATA
63 BOOL fUserLocaleChanged
;
64 } GLOBALDATA
, *PGLOBALDATA
;
66 extern HINSTANCE hApplet
;
67 extern DWORD IsUnattendedSetupEnabled
;
68 extern DWORD UnattendLCID
;
71 VOID
PrintErrorMsgBox(UINT msg
);
75 LanguagesPageProc(HWND hwndDlg
, UINT uMsg
, WPARAM wParam
, LPARAM lParam
);
79 AdvancedPageProc(HWND hwndDlg
, UINT uMsg
, WPARAM wParam
, LPARAM lParam
);
81 SetNonUnicodeLang(HWND hwnd
, LCID lcid
);
85 CurrencyPageProc(HWND hwndDlg
, UINT uMsg
, WPARAM wParam
, LPARAM lParam
);
89 DatePageProc(HWND hwndDlg
, UINT uMsg
, WPARAM wParam
, LPARAM lParam
);
93 GeneralPageProc(HWND hwndDlg
, UINT uMsg
, WPARAM wParam
, LPARAM lParam
);
97 InpLocalePageProc(HWND hwndDlg
, UINT uMsg
, WPARAM wParam
, LPARAM lParam
);
101 NumbersPageProc(HWND hwndDlg
, UINT uMsg
, WPARAM wParam
, LPARAM lParam
);
105 TimePageProc(HWND hwndDlg
, UINT uMsg
, WPARAM wParam
, LPARAM lParam
);
109 IsSortPageNeeded(LCID lcid
);
112 SortPageProc(HWND hwndDlg
, UINT uMsg
, WPARAM wParam
, LPARAM lParam
);
116 InsSpacesFmt(LPCTSTR szSourceStr
, LPCTSTR szFmtStr
);
119 ReplaceSubStr(LPCTSTR szSourceStr
, LPCTSTR szStrToReplace
, LPCTSTR szTempl
);
123 SetupApplet(HWND hwndDlg
, PGLOBALDATA pGlobalData
);
126 VOID
AddNewKbLayoutsByLcid(LCID Lcid
);