ReactOS  0.4.15-dev-1074-gffc96d2
intl.h
Go to the documentation of this file.
1 #ifndef _INTL_H
2 #define _INTL_H
3 
4 #include <stdarg.h>
5 #include <stdlib.h>
6 
7 #define WIN32_NO_STATUS
8 #include <windef.h>
9 #include <winbase.h>
10 #include <winnls.h>
11 #include <winreg.h>
12 #include <winuser.h>
13 #include <cpl.h>
14 #include <setupapi.h>
15 #include <ndk/exfuncs.h>
16 
17 #include "resource.h"
18 
19 #define DECIMAL_RADIX 10
20 
21 /* Limits */
22 #define MAX_FMT_SIZE 30
23 #define MAX_STR_SIZE 128
24 #define MAX_SAMPLES_STR_SIZE 70
25 
26 #define MAX_NUMDECIMALSEP 4
27 #define MAX_NUMTHOUSANDSEP 4
28 #define MAX_NUMNEGATIVESIGN 5
29 #define MAX_NUMPOSITIVESIGN 5
30 #define MAX_NUMLISTSEP 4
31 #define MAX_NUMNATIVEDIGITS 11
32 
33 #define MAX_CURRSYMBOL 13
34 #define MAX_CURRDECIMALSEP 4
35 #define MAX_CURRTHOUSANDSEP 4
36 #define MAX_CURRGROUPING 10
37 
38 #define MAX_TIMEFORMAT 80
39 #define MAX_TIMESEPARATOR 4
40 #define MAX_TIMEAMSYMBOL 15
41 #define MAX_TIMEPMSYMBOL 15
42 
43 #define MAX_SHORTDATEFORMAT 80
44 #define MAX_LONGDATEFORMAT 80
45 #define MAX_DATESEPARATOR 4
46 #define MAX_YEAR_EDIT 4
47 
48 #define MAX_MISCCOUNTRY 80
49 #define MAX_MISCLANGUAGE 80
50 
51 #define MAX_GROUPINGFORMATS 3
52 
53 
54 typedef struct _APPLET
55 {
60 } APPLET, *PAPPLET;
61 
62 typedef struct _GLOBALDATA
63 {
64  /* General */
67 
68  /* Number */
79 
80  /* Currency */
88 
89  /* Time */
97 
98  /* Date */
107 
108  /* Other */
112 
117 
120 
121  /* Misc */
124 
125 typedef struct
126 {
129 } GROUPINGDATA;
130 
131 extern HINSTANCE hApplet;
133 extern DWORD UnattendLCID;
135 
136 /* intl.c */
138 
139 INT
141  HWND hwnd,
142  UINT uType,
143  UINT uCaptionId,
144  UINT uMessageId);
145 
146 /* languages.c */
149 
150 /* advanced.c */
153 
154 /* currency.c */
157 
158 /* date.c */
160 DatePageProc(HWND hwndDlg, UINT uMsg, WPARAM wParam, LPARAM lParam);
161 
162 /* general.c */
165 
166 PWSTR
168  PWSTR *pLocaleArray,
169  LCTYPE lcType);
170 
171 /* locale.c */
174 
175 /* numbers.h */
178 
179 /* time.c */
181 TimePageProc(HWND hwndDlg, UINT uMsg, WPARAM wParam, LPARAM lParam);
182 
183 /* sort.c */
184 BOOL
185 IsSortPageNeeded(LCID lcid);
186 
188 SortPageProc(HWND hwndDlg, UINT uMsg, WPARAM wParam, LPARAM lParam);
189 
190 /* misc.c */
191 PWSTR
192 InsSpacesFmt(PCWSTR szSourceStr, PCWSTR szFmtStr);
193 
194 PWSTR
195 ReplaceSubStr(PCWSTR szSourceStr, PCWSTR szStrToReplace, PCWSTR szTempl);
196 
197 VOID
199  HWND hwndDlg,
200  INT nIdDlgItem,
201  PWSTR Buffer,
202  UINT uSize);
203 
204 VOID
206  HWND hwndDlg,
207  INT nIdDlgItem,
208  PINT pValue);
209 
210 /* kblayouts.c */
212 
213 #endif /* _INTL_H */
const DOCKBAR PVOID HWND HWND * hwnd
Definition: tooldock.h:22
struct _GLOBALDATA * PGLOBALDATA
WCHAR szCurrSymbol[MAX_CURRSYMBOL]
Definition: intl.h:81
const uint16_t * PCWSTR
Definition: typedefs.h:57
PWSTR ReplaceSubStr(PCWSTR szSourceStr, PCWSTR szStrToReplace, PCWSTR szTempl)
Definition: misc.c:118
INT_PTR CALLBACK DatePageProc(HWND hwndDlg, UINT uMsg, WPARAM wParam, LPARAM lParam)
Definition: date.c:544
VOID GetSelectedComboBoxText(HWND hwndDlg, INT nIdDlgItem, PWSTR Buffer, UINT uSize)
Definition: misc.c:176
BOOL bEnableYearNotification
Definition: intl.h:106
INT_PTR CALLBACK InpLocalePageProc(HWND hwndDlg, UINT uMsg, WPARAM wParam, LPARAM lParam)
Definition: inplocale.c:30
BOOL bIsUserAdmin
Definition: intl.h:122
_In_ CONST DEVPROPKEY _In_ LCID Lcid
Definition: iofuncs.h:2410
INT nCalendarType
Definition: intl.h:105
VOID GetSelectedComboBoxIndex(HWND hwndDlg, INT nIdDlgItem, PINT pValue)
Definition: misc.c:223
#define MAX_NUMNEGATIVESIGN
Definition: intl.h:28
uint16_t * PWSTR
Definition: typedefs.h:56
LONG(APIENTRY * APPLET_PROC)(HWND, UINT, LPARAM, LPARAM)
Definition: cpl.h:23
INT nCurrNegFormat
Definition: intl.h:85
struct _GLOBALDATA GLOBALDATA
#define CALLBACK
Definition: compat.h:35
WCHAR szTimeFormat[MAX_TIMEFORMAT]
Definition: intl.h:90
BOOL bUserLocaleChanged
Definition: intl.h:115
#define MAX_NUMDECIMALSEP
Definition: intl.h:26
INT nNumNegFormat
Definition: intl.h:73
DWORD LCID
Definition: nls.h:13
UINT_PTR WPARAM
Definition: windef.h:207
WCHAR szNumNegativeSign[MAX_NUMNEGATIVESIGN]
Definition: intl.h:71
int32_t INT_PTR
Definition: typedefs.h:64
PWSTR InsSpacesFmt(PCWSTR szSourceStr, PCWSTR szFmtStr)
Definition: misc.c:39
WCHAR szTimeAM[MAX_TIMEAMSYMBOL]
Definition: intl.h:92
#define MAX_NUMTHOUSANDSEP
Definition: intl.h:27
int32_t INT
Definition: typedefs.h:58
WPARAM wParam
Definition: combotst.c:138
APPLET_PROC AppletProc
Definition: access.h:22
struct _APPLET APPLET
#define MAX_SHORTDATEFORMAT
Definition: intl.h:43
INT nFirstDayOfWeek
Definition: intl.h:102
WCHAR szTimeSep[MAX_TIMESEPARATOR]
Definition: intl.h:91
WCHAR szMiscLanguage[MAX_MISCLANGUAGE]
Definition: intl.h:110
WCHAR szNumThousandSep[MAX_NUMTHOUSANDSEP]
Definition: intl.h:70
DWORD LCTYPE
Definition: winnls.h:514
WCHAR szMiscCountry[MAX_MISCCOUNTRY]
Definition: intl.h:109
VOID PrintErrorMsgBox(UINT msg)
Definition: intl.c:52
unsigned int BOOL
Definition: ntddk_ex.h:94
Definition: access.h:17
PWSTR pszString
Definition: intl.h:128
HINSTANCE hApplet
Definition: access.c:17
DWORD UnattendLCID
Definition: intl.c:42
#define MAX_TIMESEPARATOR
Definition: intl.h:39
VOID AddNewKbLayoutsByLcid(LCID Lcid)
Definition: kblayouts.c:189
INT nNumLeadingZero
Definition: intl.h:75
LONG_PTR LPARAM
Definition: windef.h:208
INT nTimeLeadingZero
Definition: intl.h:96
WCHAR szDateSep[MAX_DATESEPARATOR]
Definition: intl.h:101
Definition: bufpool.h:45
#define MAX_TIMEFORMAT
Definition: intl.h:38
WCHAR szNumPositiveSign[MAX_NUMPOSITIVESIGN]
Definition: intl.h:65
WCHAR szCurrDecimalSep[MAX_CURRDECIMALSEP]
Definition: intl.h:82
INT nCurrGrouping
Definition: intl.h:87
GROUPINGDATA GroupingFormats[MAX_GROUPINGFORMATS]
Definition: generalp.c:44
WCHAR szLongDateFormat[MAX_LONGDATEFORMAT]
Definition: intl.h:99
INT_PTR CALLBACK TimePageProc(HWND hwndDlg, UINT uMsg, WPARAM wParam, LPARAM lParam)
Definition: time.c:220
INT_PTR CALLBACK SortPageProc(HWND hwndDlg, UINT uMsg, WPARAM wParam, LPARAM lParam)
Definition: sort.c:147
int * PINT
Definition: windef.h:177
INT_PTR CALLBACK LanguagesPageProc(HWND hwndDlg, UINT uMsg, WPARAM wParam, LPARAM lParam)
Definition: languages.c:7
LCID SystemLCID
Definition: intl.h:114
INT_PTR CALLBACK GeneralPageProc(HWND hwndDlg, UINT uMsg, WPARAM wParam, LPARAM lParam)
INT nTimePrefix
Definition: intl.h:95
BOOL bGeoIdChanged
Definition: intl.h:119
INT nNumGrouping
Definition: intl.h:76
INT_PTR CALLBACK CurrencyPageProc(HWND hwndDlg, UINT uMsg, WPARAM wParam, LPARAM lParam)
Definition: currency.c:351
#define MAX_CURRSYMBOL
Definition: intl.h:33
__wchar_t WCHAR
Definition: xmlstorage.h:180
WCHAR szNumListSep[MAX_NUMLISTSEP]
Definition: intl.h:72
#define MAX_DATESEPARATOR
Definition: intl.h:45
#define MAX_GROUPINGFORMATS
Definition: intl.h:51
unsigned long DWORD
Definition: ntddk_ex.h:95
INT nDate
Definition: intl.h:104
INT_PTR CALLBACK NumbersPageProc(HWND hwndDlg, UINT uMsg, WPARAM wParam, LPARAM lParam)
Definition: numbers.c:581
INT nNumShape
Definition: intl.h:78
WCHAR szNumDecimalSep[MAX_NUMDECIMALSEP]
Definition: intl.h:69
WCHAR szCurrThousandSep[MAX_CURRTHOUSANDSEP]
Definition: intl.h:83
#define MAX_MISCLANGUAGE
Definition: intl.h:49
INT nNumMeasure
Definition: intl.h:77
INT nNumDigits
Definition: intl.h:74
#define MAX_TIMEPMSYMBOL
Definition: intl.h:41
INT_PTR CALLBACK AdvancedPageProc(HWND hwndDlg, UINT uMsg, WPARAM wParam, LPARAM lParam)
Definition: advanced.c:422
BOOL bApplyToDefaultUser
Definition: intl.h:116
UINT idIcon
Definition: intl.h:56
GEOID geoid
Definition: intl.h:118
INT nCurrPosFormat
Definition: intl.h:84
WCHAR szShortDateFormat[MAX_SHORTDATEFORMAT]
Definition: intl.h:100
WCHAR szNumNativeDigits[MAX_NUMNATIVEDIGITS]
Definition: intl.h:66
PWSTR GetLocaleString(PWSTR *pLocaleArray, LCTYPE lcType)
UINT idDescription
Definition: intl.h:58
unsigned int UINT
Definition: ndis.h:50
INT nTime
Definition: intl.h:94
DWORD GEOID
Definition: winnls.h:518
#define MAX_CURRTHOUSANDSEP
Definition: intl.h:35
#define MAX_MISCCOUNTRY
Definition: intl.h:48
#define MAX_CURRDECIMALSEP
Definition: intl.h:34
#define msg(x)
Definition: auth_time.c:54
INT ResourceMessageBox(HWND hwnd, UINT uType, UINT uCaptionId, UINT uMessageId)
Definition: intl.c:64
struct _APPLET * PAPPLET
#define MAX_TIMEAMSYMBOL
Definition: intl.h:40
INT nCurrDigits
Definition: intl.h:86
UINT nInteger
Definition: intl.h:127
INT nFirstWeekOfYear
Definition: intl.h:103
#define MAX_NUMLISTSEP
Definition: intl.h:30
#define MAX_NUMNATIVEDIGITS
Definition: intl.h:31
LPARAM lParam
Definition: combotst.c:139
#define MAX_LONGDATEFORMAT
Definition: intl.h:44
DWORD IsUnattendedSetupEnabled
Definition: intl.c:41
WCHAR szTimePM[MAX_TIMEPMSYMBOL]
Definition: intl.h:93
#define MAX_NUMPOSITIVESIGN
Definition: intl.h:29
BOOL IsSortPageNeeded(LCID lcid)
Definition: sort.c:32
LCID UserLCID
Definition: intl.h:113
UINT idName
Definition: intl.h:57
INT nMiscCountry
Definition: intl.h:111