[USB-BRINGUP-TRUNK]
[reactos.git] / base / setup / usetup / mui.h
1 #pragma once
2
3 typedef struct
4 {
5 BYTE X;
6 BYTE Y;
7 LPCSTR Buffer;
8 DWORD Flags;
9 }MUI_ENTRY, *PMUI_ENTRY;
10
11 typedef struct
12 {
13 LPCSTR ErrorText;
14 LPCSTR ErrorStatus;
15 }MUI_ERROR;
16
17 typedef struct
18 {
19 LONG Number;
20 MUI_ENTRY * MuiEntry;
21 } MUI_PAGE;
22
23 typedef struct
24 {
25 LONG Number;
26 LPSTR String;
27 } MUI_STRING;
28
29 typedef struct
30 {
31 PWCHAR FontName;
32 PWCHAR SubFontName;
33 } MUI_SUBFONT;
34
35 typedef struct
36 {
37 PWCHAR LangID; // Language ID (like "0409")
38 PWCHAR LayoutID; // Layout ID (like "00000409")
39 } MUI_LAYOUTS;
40
41 typedef struct
42 {
43 PWCHAR LanguageID;
44 PWCHAR ACPage;
45 PWCHAR OEMCPage;
46 PWCHAR MACCPage;
47 PWCHAR LanguageDescriptor;
48 PWCHAR GeoID;
49 const MUI_PAGE * MuiPages;
50 const MUI_ERROR * MuiErrors;
51 const MUI_STRING * MuiStrings;
52 const MUI_SUBFONT * MuiSubFonts;
53 const MUI_LAYOUTS * MuiLayouts;
54 } MUI_LANGUAGE;
55
56 VOID
57 MUIDisplayPage (ULONG PageNumber);
58
59 VOID
60 MUIClearPage (ULONG PageNumber);
61
62 VOID
63 MUIDisplayError (ULONG ErrorNum, PINPUT_RECORD Ir, ULONG WaitEvent);
64
65 LPCWSTR
66 MUIDefaultKeyboardLayout(VOID);
67
68 PWCHAR
69 MUIGetGeoID(VOID);
70
71 const MUI_LAYOUTS *
72 MUIGetLayoutsList(VOID);
73
74 BOOLEAN
75 AddKbLayoutsToRegistry(IN const MUI_LAYOUTS * MuiLayouts);
76
77 BOOLEAN
78 AddCodePage(VOID);
79
80 BOOLEAN
81 AddKeyboardLayouts(VOID);
82
83 VOID
84 SetConsoleCodePage(VOID);
85
86 LPSTR
87 MUIGetString(ULONG Number);
88
89 #define STRING_PLEASEWAIT 1
90 #define STRING_INSTALLCREATEPARTITION 2
91 #define STRING_INSTALLDELETEPARTITION 3
92 #define STRING_PARTITIONSIZE 4
93 #define STRING_CHOOSENEWPARTITION 5
94 #define STRING_HDDSIZE 6
95 #define STRING_CREATEPARTITION 7
96 #define STRING_PARTFORMAT 8
97 #define STRING_NONFORMATTEDPART 9
98 #define STRING_INSTALLONPART 10
99 #define STRING_CHECKINGPART 11
100 #define STRING_QUITCONTINUE 12
101 #define STRING_REBOOTCOMPUTER 13
102 #define STRING_TXTSETUPFAILED 14
103 #define STRING_COPYING 15
104 #define STRING_SETUPCOPYINGFILES 16
105 #define STRING_REGHIVEUPDATE 20
106 #define STRING_IMPORTFILE 21
107 #define STRING_DISPLAYETTINGSUPDATE 22
108 #define STRING_LOCALESETTINGSUPDATE 23
109 #define STRING_KEYBOARDSETTINGSUPDATE 24
110 #define STRING_CODEPAGEINFOUPDATE 25
111 #define STRING_DONE 26
112 #define STRING_REBOOTCOMPUTER2 27
113 #define STRING_CONSOLEFAIL1 28
114 #define STRING_CONSOLEFAIL2 29
115 #define STRING_CONSOLEFAIL3 30
116 #define STRING_FORMATTINGDISK 31
117 #define STRING_CHECKINGDISK 32
118 #define STRING_FORMATDISK1 33
119 #define STRING_FORMATDISK2 34
120 #define STRING_KEEPFORMAT 35
121 #define STRING_HDINFOPARTCREATE 36
122 #define STRING_HDDINFOUNK1 37
123 #define STRING_HDDINFOUNK2 38
124 #define STRING_HDINFOPARTDELETE 39
125 #define STRING_HDDINFOUNK3 40
126 #define STRING_HDINFOPARTZEROED 41
127 #define STRING_HDDINFOUNK4 42
128 #define STRING_HDINFOPARTEXISTS 43
129 #define STRING_HDDINFOUNK5 44
130 #define STRING_HDINFOPARTSELECT 45
131 #define STRING_HDDINFOUNK6 46
132 #define STRING_NEWPARTITION 47
133 #define STRING_UNPSPACE 48
134 #define STRING_MAXSIZE 49
135 #define STRING_UNFORMATTED 50
136 #define STRING_FORMATUNUSED 51
137 #define STRING_FORMATUNKNOWN 52
138 #define STRING_KB 53
139 #define STRING_MB 54
140 #define STRING_GB 55
141 #define STRING_ADDKBLAYOUTS 56