xref: /reactos/base/setup/usetup/mui.h (revision 3d4f0010)
1 #pragma once
2 
3 typedef struct
4 {
5     SHORT X;
6     SHORT Y;
7     PCSTR Buffer;
8     DWORD Flags;
9     INT TextID;
10 } MUI_ENTRY, *PMUI_ENTRY;
11 
12 typedef struct
13 {
14     PCSTR ErrorText;
15     PCSTR ErrorStatus;
16 } MUI_ERROR;
17 
18 typedef struct
19 {
20     LONG Number;
21     MUI_ENTRY * MuiEntry;
22 } MUI_PAGE;
23 
24 typedef struct
25 {
26     LONG Number;
27     PCSTR String;
28 } MUI_STRING;
29 
30 typedef struct
31 {
32     PCWSTR LanguageID;
33     PCWSTR LanguageDescriptor;
34     const MUI_PAGE * MuiPages;
35     const MUI_ERROR * MuiErrors;
36     const MUI_STRING * MuiStrings;
37 } MUI_LANGUAGE_RESOURCE;
38 
39 #if 0
40 BOOLEAN
41 IsLanguageAvailable(
42     PWCHAR LanguageId);
43 #endif
44 
45 VOID
46 MUIDisplayPage(
47     ULONG PageNumber);
48 
49 VOID
50 MUIClearPage(
51     ULONG PageNumber);
52 
53 VOID
54 MUIDisplayErrorV(
55     IN ULONG ErrorNum,
56     OUT PINPUT_RECORD Ir,
57     IN ULONG WaitEvent,
58     IN va_list args);
59 
60 VOID
61 __cdecl
62 MUIDisplayError(
63     ULONG ErrorNum,
64     PINPUT_RECORD Ir,
65     ULONG WaitEvent,
66     ...);
67 
68 VOID
69 SetConsoleCodePage(VOID);
70 
71 PCSTR
72 MUIGetString(
73     ULONG Number);
74 
75 const MUI_ENTRY *
76 MUIGetEntry(
77     IN ULONG Page,
78     IN INT TextID);
79 
80 VOID
81 MUIClearText(
82     IN ULONG Page,
83     IN INT TextID);
84 
85 VOID
86 MUIClearStyledText(
87     IN ULONG Page,
88     IN INT TextID,
89     IN INT Flags);
90 
91 VOID
92 MUISetText(
93     IN ULONG Page,
94     IN INT TextID);
95 
96 VOID
97 MUISetStyledText(
98     IN ULONG Page,
99     IN INT TextID,
100     IN INT Flags);
101 
102 /* Special characters */
103 extern CHAR CharBullet;
104 extern CHAR CharBlock;
105 extern CHAR CharHalfBlock;
106 extern CHAR CharUpArrow;
107 extern CHAR CharDownArrow;
108 extern CHAR CharHorizontalLine;
109 extern CHAR CharVerticalLine;
110 extern CHAR CharUpperLeftCorner;
111 extern CHAR CharUpperRightCorner;
112 extern CHAR CharLowerLeftCorner;
113 extern CHAR CharLowerRightCorner;
114 extern CHAR CharVertLineAndRightHorizLine;
115 extern CHAR CharLeftHorizLineAndVertLine;
116 extern CHAR CharDoubleHorizontalLine;
117 extern CHAR CharDoubleVerticalLine;
118 extern CHAR CharDoubleUpperLeftCorner;
119 extern CHAR CharDoubleUpperRightCorner;
120 extern CHAR CharDoubleLowerLeftCorner;
121 extern CHAR CharDoubleLowerRightCorner;
122 
123 /* MUI Text IDs */
124 
125 /* Static MUI Text */
126 #define TEXT_ID_STATIC (-1)
127 
128 /* Dynamic MUI Text IDs */
129 #define TEXT_ID_FORMAT_PROMPT 1
130 
131 /* MUI Strings */
132 #define STRING_PLEASEWAIT                   1
133 #define STRING_INSTALLCREATEPARTITION       2
134 #define STRING_INSTALLCREATELOGICAL         3
135 #define STRING_INSTALLDELETEPARTITION       4
136 #define STRING_DELETEPARTITION              5
137 #define STRING_PARTITIONSIZE                6
138 #define STRING_CHOOSE_NEW_PARTITION           7
139 #define STRING_CHOOSE_NEW_EXTENDED_PARTITION  8
140 #define STRING_CHOOSE_NEW_LOGICAL_PARTITION   9
141 #define STRING_HDPARTSIZE                   10
142 #define STRING_CREATEPARTITION              11
143 #define STRING_NEWPARTITION                 12
144 #define STRING_PARTFORMAT                   13
145 #define STRING_NONFORMATTEDPART             14
146 #define STRING_NONFORMATTEDSYSTEMPART       15
147 #define STRING_NONFORMATTEDOTHERPART        16
148 #define STRING_INSTALLONPART                17
149 #define STRING_CONTINUE                     18
150 #define STRING_QUITCONTINUE                 19
151 #define STRING_REBOOTCOMPUTER               20
152 #define STRING_DELETING                     21
153 #define STRING_MOVING                       22
154 #define STRING_RENAMING                     23
155 #define STRING_COPYING                      24
156 #define STRING_SETUPCOPYINGFILES            25
157 #define STRING_REGHIVEUPDATE                26
158 #define STRING_IMPORTFILE                   27
159 #define STRING_DISPLAYSETTINGSUPDATE        28
160 #define STRING_LOCALESETTINGSUPDATE         29
161 #define STRING_KEYBOARDSETTINGSUPDATE       30
162 #define STRING_CODEPAGEINFOUPDATE           31
163 #define STRING_DONE                         32
164 #define STRING_REBOOTCOMPUTER2              33
165 #define STRING_CONSOLEFAIL1                 34
166 #define STRING_CONSOLEFAIL2                 35
167 #define STRING_CONSOLEFAIL3                 36
168 #define STRING_FORMATTINGPART               37
169 #define STRING_CHECKINGDISK                 38
170 #define STRING_FORMATDISK1                  39
171 #define STRING_FORMATDISK2                  40
172 #define STRING_KEEPFORMAT                   41
173 #define STRING_HDDISK1                      42
174 #define STRING_HDDISK2                      43
175 #define STRING_PARTTYPE                     44
176 #define STRING_HDDINFO1                     45
177 #define STRING_HDDINFO2                     46
178 #define STRING_UNPSPACE                     47
179 #define STRING_MAXSIZE                      48
180 #define STRING_UNFORMATTED                  49
181 #define STRING_EXTENDED_PARTITION           50
182 #define STRING_FORMATUNUSED                 51
183 #define STRING_FORMATUNKNOWN                52
184 #define STRING_KB                           53
185 #define STRING_MB                           54
186 #define STRING_GB                           55
187 #define STRING_ADDKBLAYOUTS                 56
188 #define STRING_REBOOTPROGRESSBAR            57
189