ReactOS 0.4.15-dev-7907-g95bf896
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
54typedef struct _APPLET
55{
61
62typedef 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
125typedef struct
126{
130
131extern HINSTANCE hApplet;
133extern DWORD UnattendLCID;
135
136/* intl.c */
138
139INT
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 */
161
162/* general.c */
165
166PWSTR
168 PWSTR *pLocaleArray,
169 LCTYPE lcType);
170
171/* locale.c */
174
175/* numbers.h */
178
179/* time.c */
182
183/* sort.c */
184BOOL
186
189
190/* misc.c */
191PWSTR
192InsSpacesFmt(PCWSTR szSourceStr, PCWSTR szFmtStr);
193
194PWSTR
195ReplaceSubStr(PCWSTR szSourceStr, PCWSTR szStrToReplace, PCWSTR szTempl);
196
197VOID
199 HWND hwndDlg,
200 INT nIdDlgItem,
202 UINT uSize);
203
204VOID
206 HWND hwndDlg,
207 INT nIdDlgItem,
208 PINT pValue);
209
210/* kblayouts.c */
212
213#endif /* _INTL_H */
#define msg(x)
Definition: auth_time.c:54
Definition: bufpool.h:45
WPARAM wParam
Definition: combotst.c:138
LPARAM lParam
Definition: combotst.c:139
LONG(APIENTRY * APPLET_PROC)(HWND, UINT, LPARAM, LPARAM)
Definition: cpl.h:23
#define CALLBACK
Definition: compat.h:35
unsigned int BOOL
Definition: ntddk_ex.h:94
unsigned long DWORD
Definition: ntddk_ex.h:95
PWCHAR pValue
BOOL IsSortPageNeeded(LCID lcid)
Definition: sort.c:32
INT_PTR CALLBACK LanguagesPageProc(HWND hwndDlg, UINT uMsg, WPARAM wParam, LPARAM lParam)
Definition: languages.c:48
#define MAX_TIMESEPARATOR
Definition: intl.h:39
DWORD UnattendLCID
Definition: intl.c:41
INT_PTR CALLBACK DatePageProc(HWND hwndDlg, UINT uMsg, WPARAM wParam, LPARAM lParam)
Definition: date.c:544
DWORD IsUnattendedSetupEnabled
Definition: intl.c:40
VOID GetSelectedComboBoxText(HWND hwndDlg, INT nIdDlgItem, PWSTR Buffer, UINT uSize)
Definition: misc.c:176
#define MAX_NUMNEGATIVESIGN
Definition: intl.h:28
VOID AddNewKbLayoutsByLcid(LCID Lcid)
Definition: kblayouts.c:189
PWSTR ReplaceSubStr(PCWSTR szSourceStr, PCWSTR szStrToReplace, PCWSTR szTempl)
Definition: misc.c:118
INT_PTR CALLBACK TimePageProc(HWND hwndDlg, UINT uMsg, WPARAM wParam, LPARAM lParam)
Definition: time.c:220
#define MAX_NUMPOSITIVESIGN
Definition: intl.h:29
#define MAX_GROUPINGFORMATS
Definition: intl.h:51
#define MAX_MISCCOUNTRY
Definition: intl.h:48
#define MAX_NUMDECIMALSEP
Definition: intl.h:26
INT ResourceMessageBox(HWND hwnd, UINT uType, UINT uCaptionId, UINT uMessageId)
Definition: intl.c:63
VOID GetSelectedComboBoxIndex(HWND hwndDlg, INT nIdDlgItem, PINT pValue)
Definition: misc.c:223
INT_PTR CALLBACK NumbersPageProc(HWND hwndDlg, UINT uMsg, WPARAM wParam, LPARAM lParam)
Definition: numbers.c:581
#define MAX_MISCLANGUAGE
Definition: intl.h:49
#define MAX_CURRSYMBOL
Definition: intl.h:33
INT_PTR CALLBACK InpLocalePageProc(HWND hwndDlg, UINT uMsg, WPARAM wParam, LPARAM lParam)
Definition: inplocale.c:30
#define MAX_CURRTHOUSANDSEP
Definition: intl.h:35
struct _APPLET * PAPPLET
INT_PTR CALLBACK CurrencyPageProc(HWND hwndDlg, UINT uMsg, WPARAM wParam, LPARAM lParam)
Definition: currency.c:351
INT_PTR CALLBACK GeneralPageProc(HWND hwndDlg, UINT uMsg, WPARAM wParam, LPARAM lParam)
GROUPINGDATA GroupingFormats[MAX_GROUPINGFORMATS]
Definition: generalp.c:44
PWSTR GetLocaleString(PWSTR *pLocaleArray, LCTYPE lcType)
#define MAX_LONGDATEFORMAT
Definition: intl.h:44
struct _GLOBALDATA * PGLOBALDATA
#define MAX_TIMEPMSYMBOL
Definition: intl.h:41
PWSTR InsSpacesFmt(PCWSTR szSourceStr, PCWSTR szFmtStr)
Definition: misc.c:39
struct _APPLET APPLET
#define MAX_SHORTDATEFORMAT
Definition: intl.h:43
#define MAX_CURRDECIMALSEP
Definition: intl.h:34
INT_PTR CALLBACK SortPageProc(HWND hwndDlg, UINT uMsg, WPARAM wParam, LPARAM lParam)
Definition: sort.c:147
INT_PTR CALLBACK AdvancedPageProc(HWND hwndDlg, UINT uMsg, WPARAM wParam, LPARAM lParam)
Definition: advanced.c:422
struct _GLOBALDATA GLOBALDATA
#define MAX_DATESEPARATOR
Definition: intl.h:45
#define MAX_NUMLISTSEP
Definition: intl.h:30
VOID PrintErrorMsgBox(UINT msg)
Definition: intl.c:51
#define MAX_NUMNATIVEDIGITS
Definition: intl.h:31
#define MAX_TIMEAMSYMBOL
Definition: intl.h:40
#define MAX_NUMTHOUSANDSEP
Definition: intl.h:27
#define MAX_TIMEFORMAT
Definition: intl.h:38
HINSTANCE hApplet
Definition: access.c:17
ULONG GEOID
Definition: mui.h:28
unsigned int UINT
Definition: ndis.h:50
DWORD LCID
Definition: nls.h:13
UINT nInteger
Definition: intl.h:127
PWSTR pszString
Definition: intl.h:128
Definition: access.h:18
APPLET_PROC AppletProc
Definition: access.h:22
UINT idIcon
Definition: intl.h:56
UINT idDescription
Definition: intl.h:58
UINT idName
Definition: intl.h:57
BOOL bApplyToDefaultUser
Definition: intl.h:116
WCHAR szCurrThousandSep[MAX_CURRTHOUSANDSEP]
Definition: intl.h:83
INT nCurrGrouping
Definition: intl.h:87
INT nCurrDigits
Definition: intl.h:86
WCHAR szShortDateFormat[MAX_SHORTDATEFORMAT]
Definition: intl.h:100
INT nCalendarType
Definition: intl.h:105
BOOL bIsUserAdmin
Definition: intl.h:122
INT nNumGrouping
Definition: intl.h:76
INT nMiscCountry
Definition: intl.h:111
INT nTimeLeadingZero
Definition: intl.h:96
WCHAR szTimePM[MAX_TIMEPMSYMBOL]
Definition: intl.h:93
WCHAR szCurrDecimalSep[MAX_CURRDECIMALSEP]
Definition: intl.h:82
WCHAR szNumListSep[MAX_NUMLISTSEP]
Definition: intl.h:72
INT nNumNegFormat
Definition: intl.h:73
LCID UserLCID
Definition: intl.h:113
WCHAR szTimeFormat[MAX_TIMEFORMAT]
Definition: intl.h:90
WCHAR szLongDateFormat[MAX_LONGDATEFORMAT]
Definition: intl.h:99
INT nNumDigits
Definition: intl.h:74
WCHAR szTimeAM[MAX_TIMEAMSYMBOL]
Definition: intl.h:92
WCHAR szNumNativeDigits[MAX_NUMNATIVEDIGITS]
Definition: intl.h:66
INT nCurrPosFormat
Definition: intl.h:84
WCHAR szDateSep[MAX_DATESEPARATOR]
Definition: intl.h:101
INT nFirstWeekOfYear
Definition: intl.h:103
WCHAR szCurrSymbol[MAX_CURRSYMBOL]
Definition: intl.h:81
WCHAR szNumPositiveSign[MAX_NUMPOSITIVESIGN]
Definition: intl.h:65
BOOL bGeoIdChanged
Definition: intl.h:119
INT nFirstDayOfWeek
Definition: intl.h:102
WCHAR szMiscLanguage[MAX_MISCLANGUAGE]
Definition: intl.h:110
BOOL bEnableYearNotification
Definition: intl.h:106
INT nDate
Definition: intl.h:104
INT nCurrNegFormat
Definition: intl.h:85
WCHAR szNumDecimalSep[MAX_NUMDECIMALSEP]
Definition: intl.h:69
INT nNumLeadingZero
Definition: intl.h:75
INT nTime
Definition: intl.h:94
WCHAR szNumNegativeSign[MAX_NUMNEGATIVESIGN]
Definition: intl.h:71
GEOID geoid
Definition: intl.h:118
WCHAR szTimeSep[MAX_TIMESEPARATOR]
Definition: intl.h:91
LCID SystemLCID
Definition: intl.h:114
INT nNumMeasure
Definition: intl.h:77
BOOL bUserLocaleChanged
Definition: intl.h:115
INT nTimePrefix
Definition: intl.h:95
WCHAR szMiscCountry[MAX_MISCCOUNTRY]
Definition: intl.h:109
WCHAR szNumThousandSep[MAX_NUMTHOUSANDSEP]
Definition: intl.h:70
INT nNumShape
Definition: intl.h:78
uint16_t * PWSTR
Definition: typedefs.h:56
int32_t INT_PTR
Definition: typedefs.h:64
const uint16_t * PCWSTR
Definition: typedefs.h:57
int32_t INT
Definition: typedefs.h:58
_In_ LONG _In_ HWND hwnd
Definition: winddi.h:4023
LONG_PTR LPARAM
Definition: windef.h:208
UINT_PTR WPARAM
Definition: windef.h:207
int * PINT
Definition: windef.h:177
DWORD LCTYPE
Definition: winnls.h:517
_In_ CONST DEVPROPKEY _In_ LCID Lcid
Definition: iofuncs.h:2415
__wchar_t WCHAR
Definition: xmlstorage.h:180