ReactOS  0.4.13-dev-99-g7e18b6d
mui.h File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  MUI_ENTRY
 
struct  MUI_ERROR
 
struct  MUI_PAGE
 
struct  MUI_STRING
 
struct  MUI_LANGUAGE_RESOURCE
 

Macros

#define STRING_PLEASEWAIT   1
 
#define STRING_INSTALLCREATEPARTITION   2
 
#define STRING_INSTALLCREATELOGICAL   60
 
#define STRING_INSTALLDELETEPARTITION   3
 
#define STRING_DELETEPARTITION   59
 
#define STRING_PARTITIONSIZE   4
 
#define STRING_CHOOSENEWPARTITION   5
 
#define STRING_CHOOSE_NEW_EXTENDED_PARTITION   57
 
#define STRING_CHOOSE_NEW_LOGICAL_PARTITION   61
 
#define STRING_HDDSIZE   6
 
#define STRING_CREATEPARTITION   7
 
#define STRING_PARTFORMAT   8
 
#define STRING_NONFORMATTEDPART   9
 
#define STRING_NONFORMATTEDSYSTEMPART   62
 
#define STRING_NONFORMATTEDOTHERPART   63
 
#define STRING_INSTALLONPART   10
 
#define STRING_CHECKINGPART   11
 
#define STRING_CONTINUE   12
 
#define STRING_QUITCONTINUE   13
 
#define STRING_REBOOTCOMPUTER   14
 
#define STRING_DELETING   15
 
#define STRING_MOVING   16
 
#define STRING_RENAMING   17
 
#define STRING_COPYING   18
 
#define STRING_SETUPCOPYINGFILES   19
 
#define STRING_REGHIVEUPDATE   20
 
#define STRING_IMPORTFILE   21
 
#define STRING_DISPLAYSETTINGSUPDATE   22
 
#define STRING_LOCALESETTINGSUPDATE   23
 
#define STRING_KEYBOARDSETTINGSUPDATE   24
 
#define STRING_CODEPAGEINFOUPDATE   25
 
#define STRING_DONE   26
 
#define STRING_REBOOTCOMPUTER2   27
 
#define STRING_CONSOLEFAIL1   28
 
#define STRING_CONSOLEFAIL2   29
 
#define STRING_CONSOLEFAIL3   30
 
#define STRING_FORMATTINGDISK   31
 
#define STRING_CHECKINGDISK   32
 
#define STRING_FORMATDISK1   33
 
#define STRING_FORMATDISK2   34
 
#define STRING_KEEPFORMAT   35
 
#define STRING_HDINFOPARTCREATE_1   36
 
#define STRING_HDINFOPARTCREATE_2   37
 
#define STRING_HDDINFOUNK2   38
 
#define STRING_HDINFOPARTDELETE_1   39
 
#define STRING_HDINFOPARTDELETE_2   40
 
#define STRING_HDINFOPARTZEROED_1   41
 
#define STRING_HDDINFOUNK4   42
 
#define STRING_HDINFOPARTEXISTS_1   43
 
#define STRING_HDDINFOUNK5   44
 
#define STRING_HDINFOPARTSELECT_1   45
 
#define STRING_HDINFOPARTSELECT_2   46
 
#define STRING_NEWPARTITION   47
 
#define STRING_UNPSPACE   48
 
#define STRING_MAXSIZE   49
 
#define STRING_UNFORMATTED   50
 
#define STRING_EXTENDED_PARTITION   58
 
#define STRING_FORMATUNUSED   51
 
#define STRING_FORMATUNKNOWN   52
 
#define STRING_KB   53
 
#define STRING_MB   54
 
#define STRING_GB   55
 
#define STRING_ADDKBLAYOUTS   56
 
#define STRING_REBOOTPROGRESSBAR   64
 

Typedefs

typedef struct MUI_ENTRYPMUI_ENTRY
 

Functions

VOID MUIDisplayPage (ULONG PageNumber)
 
VOID MUIClearPage (ULONG PageNumber)
 
VOID MUIDisplayErrorV (IN ULONG ErrorNum, OUT PINPUT_RECORD Ir, IN ULONG WaitEvent, IN va_list args)
 
VOID __cdecl MUIDisplayError (ULONG ErrorNum, PINPUT_RECORD Ir, ULONG WaitEvent,...)
 
VOID SetConsoleCodePage (VOID)
 
LPSTR MUIGetString (ULONG Number)
 

Macro Definition Documentation

◆ STRING_ADDKBLAYOUTS

#define STRING_ADDKBLAYOUTS   56

Definition at line 136 of file mui.h.

◆ STRING_CHECKINGDISK

#define STRING_CHECKINGDISK   32

Definition at line 111 of file mui.h.

◆ STRING_CHECKINGPART

#define STRING_CHECKINGPART   11

Definition at line 90 of file mui.h.

◆ STRING_CHOOSE_NEW_EXTENDED_PARTITION

#define STRING_CHOOSE_NEW_EXTENDED_PARTITION   57

Definition at line 81 of file mui.h.

◆ STRING_CHOOSE_NEW_LOGICAL_PARTITION

#define STRING_CHOOSE_NEW_LOGICAL_PARTITION   61

Definition at line 82 of file mui.h.

◆ STRING_CHOOSENEWPARTITION

#define STRING_CHOOSENEWPARTITION   5

Definition at line 80 of file mui.h.

◆ STRING_CODEPAGEINFOUPDATE

#define STRING_CODEPAGEINFOUPDATE   25

Definition at line 104 of file mui.h.

◆ STRING_CONSOLEFAIL1

#define STRING_CONSOLEFAIL1   28

Definition at line 107 of file mui.h.

◆ STRING_CONSOLEFAIL2

#define STRING_CONSOLEFAIL2   29

Definition at line 108 of file mui.h.

◆ STRING_CONSOLEFAIL3

#define STRING_CONSOLEFAIL3   30

Definition at line 109 of file mui.h.

◆ STRING_CONTINUE

#define STRING_CONTINUE   12

Definition at line 91 of file mui.h.

◆ STRING_COPYING

#define STRING_COPYING   18

Definition at line 97 of file mui.h.

◆ STRING_CREATEPARTITION

#define STRING_CREATEPARTITION   7

Definition at line 84 of file mui.h.

◆ STRING_DELETEPARTITION

#define STRING_DELETEPARTITION   59

Definition at line 78 of file mui.h.

◆ STRING_DELETING

#define STRING_DELETING   15

Definition at line 94 of file mui.h.

◆ STRING_DISPLAYSETTINGSUPDATE

#define STRING_DISPLAYSETTINGSUPDATE   22

Definition at line 101 of file mui.h.

◆ STRING_DONE

#define STRING_DONE   26

Definition at line 105 of file mui.h.

◆ STRING_EXTENDED_PARTITION

#define STRING_EXTENDED_PARTITION   58

Definition at line 130 of file mui.h.

◆ STRING_FORMATDISK1

#define STRING_FORMATDISK1   33

Definition at line 112 of file mui.h.

◆ STRING_FORMATDISK2

#define STRING_FORMATDISK2   34

Definition at line 113 of file mui.h.

◆ STRING_FORMATTINGDISK

#define STRING_FORMATTINGDISK   31

Definition at line 110 of file mui.h.

◆ STRING_FORMATUNKNOWN

#define STRING_FORMATUNKNOWN   52

Definition at line 132 of file mui.h.

◆ STRING_FORMATUNUSED

#define STRING_FORMATUNUSED   51

Definition at line 131 of file mui.h.

◆ STRING_GB

#define STRING_GB   55

Definition at line 135 of file mui.h.

◆ STRING_HDDINFOUNK2

#define STRING_HDDINFOUNK2   38

Definition at line 117 of file mui.h.

◆ STRING_HDDINFOUNK4

#define STRING_HDDINFOUNK4   42

Definition at line 121 of file mui.h.

◆ STRING_HDDINFOUNK5

#define STRING_HDDINFOUNK5   44

Definition at line 123 of file mui.h.

◆ STRING_HDDSIZE

#define STRING_HDDSIZE   6

Definition at line 83 of file mui.h.

◆ STRING_HDINFOPARTCREATE_1

#define STRING_HDINFOPARTCREATE_1   36

Definition at line 115 of file mui.h.

◆ STRING_HDINFOPARTCREATE_2

#define STRING_HDINFOPARTCREATE_2   37

Definition at line 116 of file mui.h.

◆ STRING_HDINFOPARTDELETE_1

#define STRING_HDINFOPARTDELETE_1   39

Definition at line 118 of file mui.h.

◆ STRING_HDINFOPARTDELETE_2

#define STRING_HDINFOPARTDELETE_2   40

Definition at line 119 of file mui.h.

◆ STRING_HDINFOPARTEXISTS_1

#define STRING_HDINFOPARTEXISTS_1   43

Definition at line 122 of file mui.h.

◆ STRING_HDINFOPARTSELECT_1

#define STRING_HDINFOPARTSELECT_1   45

Definition at line 124 of file mui.h.

◆ STRING_HDINFOPARTSELECT_2

#define STRING_HDINFOPARTSELECT_2   46

Definition at line 125 of file mui.h.

◆ STRING_HDINFOPARTZEROED_1

#define STRING_HDINFOPARTZEROED_1   41

Definition at line 120 of file mui.h.

◆ STRING_IMPORTFILE

#define STRING_IMPORTFILE   21

Definition at line 100 of file mui.h.

◆ STRING_INSTALLCREATELOGICAL

#define STRING_INSTALLCREATELOGICAL   60

Definition at line 76 of file mui.h.

◆ STRING_INSTALLCREATEPARTITION

#define STRING_INSTALLCREATEPARTITION   2

Definition at line 75 of file mui.h.

◆ STRING_INSTALLDELETEPARTITION

#define STRING_INSTALLDELETEPARTITION   3

Definition at line 77 of file mui.h.

◆ STRING_INSTALLONPART

#define STRING_INSTALLONPART   10

Definition at line 89 of file mui.h.

◆ STRING_KB

#define STRING_KB   53

Definition at line 133 of file mui.h.

◆ STRING_KEEPFORMAT

#define STRING_KEEPFORMAT   35

Definition at line 114 of file mui.h.

◆ STRING_KEYBOARDSETTINGSUPDATE

#define STRING_KEYBOARDSETTINGSUPDATE   24

Definition at line 103 of file mui.h.

◆ STRING_LOCALESETTINGSUPDATE

#define STRING_LOCALESETTINGSUPDATE   23

Definition at line 102 of file mui.h.

◆ STRING_MAXSIZE

#define STRING_MAXSIZE   49

Definition at line 128 of file mui.h.

◆ STRING_MB

#define STRING_MB   54

Definition at line 134 of file mui.h.

◆ STRING_MOVING

#define STRING_MOVING   16

Definition at line 95 of file mui.h.

◆ STRING_NEWPARTITION

#define STRING_NEWPARTITION   47

Definition at line 126 of file mui.h.

◆ STRING_NONFORMATTEDOTHERPART

#define STRING_NONFORMATTEDOTHERPART   63

Definition at line 88 of file mui.h.

◆ STRING_NONFORMATTEDPART

#define STRING_NONFORMATTEDPART   9

Definition at line 86 of file mui.h.

◆ STRING_NONFORMATTEDSYSTEMPART

#define STRING_NONFORMATTEDSYSTEMPART   62

Definition at line 87 of file mui.h.

◆ STRING_PARTFORMAT

#define STRING_PARTFORMAT   8

Definition at line 85 of file mui.h.

◆ STRING_PARTITIONSIZE

#define STRING_PARTITIONSIZE   4

Definition at line 79 of file mui.h.

◆ STRING_PLEASEWAIT

#define STRING_PLEASEWAIT   1

Definition at line 74 of file mui.h.

◆ STRING_QUITCONTINUE

#define STRING_QUITCONTINUE   13

Definition at line 92 of file mui.h.

◆ STRING_REBOOTCOMPUTER

#define STRING_REBOOTCOMPUTER   14

Definition at line 93 of file mui.h.

◆ STRING_REBOOTCOMPUTER2

#define STRING_REBOOTCOMPUTER2   27

Definition at line 106 of file mui.h.

◆ STRING_REBOOTPROGRESSBAR

#define STRING_REBOOTPROGRESSBAR   64

Definition at line 137 of file mui.h.

◆ STRING_REGHIVEUPDATE

#define STRING_REGHIVEUPDATE   20

Definition at line 99 of file mui.h.

◆ STRING_RENAMING

#define STRING_RENAMING   17

Definition at line 96 of file mui.h.

◆ STRING_SETUPCOPYINGFILES

#define STRING_SETUPCOPYINGFILES   19

Definition at line 98 of file mui.h.

◆ STRING_UNFORMATTED

#define STRING_UNFORMATTED   50

Definition at line 129 of file mui.h.

◆ STRING_UNPSPACE

#define STRING_UNPSPACE   48

Definition at line 127 of file mui.h.

Typedef Documentation

◆ PMUI_ENTRY

Function Documentation

◆ MUIClearPage()

VOID MUIClearPage ( ULONG  PageNumber)

◆ MUIDisplayError()

VOID __cdecl MUIDisplayError ( ULONG  ErrorNum,
PINPUT_RECORD  Ir,
ULONG  WaitEvent,
  ... 
)

◆ MUIDisplayErrorV()

VOID MUIDisplayErrorV ( IN ULONG  ErrorNum,
OUT PINPUT_RECORD  Ir,
IN ULONG  WaitEvent,
IN va_list  args 
)

Definition at line 178 of file mui.c.

183 {
184  const MUI_ERROR* entry;
185  CHAR Buffer[2048];
186 
187  if (ErrorNum >= ERROR_LAST_ERROR_CODE)
188  {
189  PopupError("Invalid error number provided",
190  "Press ENTER to continue",
191  Ir,
193  return;
194  }
195 
197  if (!entry)
198  {
199  PopupError("Error: Failed to find translated error message",
200  NULL,
201  NULL,
203  return;
204  }
205 
206  vsprintf(Buffer, entry[ErrorNum].ErrorText, args);
207 
209  entry[ErrorNum].ErrorStatus,
210  Ir,
211  WaitEvent);
212 }
#define POPUP_WAIT_NONE
Definition: usetup.h:123
char CHAR
Definition: xmlstorage.h:175
uint8_t entry
Definition: isohybrid.c:63
VOID PopupError(PCCH Text, PCCH Status, PINPUT_RECORD Ir, ULONG WaitEvent)
Definition: usetup.c:195
Definition: match.c:390
smooth NULL
Definition: ftsmooth.c:416
Definition: bufpool.h:45
static const MUI_ERROR * FindMUIErrorEntries(VOID)
Definition: mui.c:105
#define POPUP_WAIT_ENTER
Definition: usetup.h:125
Definition: mui.h:11
int __cdecl vsprintf(char *_Dest, const char *_Format, va_list _Args)
Definition: sprintf.c:733

Referenced by MUIDisplayError(), and USetupErrorRoutine().

◆ MUIDisplayPage()

VOID MUIDisplayPage ( ULONG  PageNumber)

◆ MUIGetString()

LPSTR MUIGetString ( ULONG  Number)

Definition at line 230 of file mui.c.

232 {
233  ULONG i;
234  const MUI_STRING * entry;
235  CHAR szErr[128];
236 
238  if (entry)
239  {
240  for (i = 0; entry[i].Number != 0; i++)
241  {
242  if (entry[i].Number == Number)
243  {
244  return entry[i].String;
245  }
246  }
247  }
248 
249  sprintf(szErr, "Error: failed find string id %lu for language index %lu\n", Number, FindLanguageIndex());
250 
252  NULL,
253  NULL,
255 
256  return "<nostring>";
257 }
#define POPUP_WAIT_NONE
Definition: usetup.h:123
char CHAR
Definition: xmlstorage.h:175
uint8_t entry
Definition: isohybrid.c:63
VOID PopupError(PCCH Text, PCCH Status, PINPUT_RECORD Ir, ULONG WaitEvent)
Definition: usetup.c:195
static const MUI_STRING * FindMUIStringEntries(VOID)
Definition: mui.c:113
#define sprintf(buf, format,...)
Definition: sprintf.c:55
GLsizei GLenum const GLvoid GLsizei GLenum GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLint GLint GLint GLshort GLshort GLshort GLubyte GLubyte GLubyte GLuint GLuint GLuint GLushort GLushort GLushort GLbyte GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLfloat GLint GLint GLint GLint GLshort GLshort GLshort GLshort GLubyte GLubyte GLubyte GLubyte GLuint GLuint GLuint GLuint GLushort GLushort GLushort GLushort GLboolean const GLdouble const GLfloat const GLint const GLshort const GLbyte const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLdouble const GLfloat const GLfloat const GLint const GLint const GLshort const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort GLenum GLenum GLenum GLfloat GLenum GLint GLenum GLenum GLenum GLfloat GLenum GLenum GLint GLenum GLfloat GLenum GLint GLint GLushort GLenum GLenum GLfloat GLenum GLenum GLint GLfloat const GLubyte GLenum GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLint GLint GLsizei GLsizei GLint GLenum GLenum const GLvoid GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLenum const GLdouble GLenum GLenum const GLfloat GLenum GLenum const GLint GLsizei GLuint GLfloat GLuint GLbitfield GLfloat GLint GLuint GLboolean GLenum GLfloat GLenum GLbitfield GLenum GLfloat GLfloat GLint GLint const GLfloat GLenum GLfloat GLfloat GLint GLint GLfloat GLfloat GLint GLint const GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat const GLdouble const GLfloat const GLdouble const GLfloat GLint i
Definition: glfuncs.h:248
smooth NULL
Definition: ftsmooth.c:416
Definition: mui.h:23
_In_opt_ PENTER_STATE_SYSTEM_HANDLER _In_opt_ PVOID _In_ LONG _In_opt_ LONG volatile * Number
Definition: ntpoapi.h:204
static ULONG FindLanguageIndex(VOID)
Definition: mui.c:35
TCHAR szErr[256]
Definition: service.c:38
unsigned int ULONG
Definition: retypes.h:1

Referenced by BootLoaderPage(), CheckFileSystemPage(), ChkdskPartition(), CreateExtendedPartitionPage(), CreateLogicalPartitionPage(), CreatePrimaryPartitionPage(), DeletePartitionPage(), DrawFileSystemList(), FileCopyCallback(), FileCopyPage(), FormatPartition(), FormatPartitionPage(), GetPartTypeStringFromPartitionType(), InstallDirectoryPage(), PrintDiskData(), PrintPartitionData(), ProgressCountdown(), QuitPage(), RegistryPage(), RegistryStatus(), RunUSetup(), SelectFileSystemPage(), SelectPartitionPage(), and ShowPartitionSizeInputBox().

◆ SetConsoleCodePage()

VOID SetConsoleCodePage ( VOID  )

Definition at line 260 of file mui.c.

261 {
262  UINT wCodePage;
263 
264 #if 0
265  ULONG lngIndex = 0;
266 
267  while (ResourceList[lngIndex].MuiPages != NULL)
268  {
269  if (_wcsicmp(ResourceList[lngIndex].LanguageID, SelectedLanguageId) == 0)
270  {
271  wCodePage = (UINT) wcstoul(ResourceList[lngIndex].OEMCPage, NULL, 10);
272  SetConsoleOutputCP(wCodePage);
273  return;
274  }
275 
276  lngIndex++;
277  }
278 #else
280  SetConsoleOutputCP(wCodePage);
281 #endif
282 }
BOOL WINAPI SetConsoleOutputCP(IN UINT wCodepage)
Definition: console.c:644
_Check_return_ unsigned long __cdecl wcstoul(_In_z_ const wchar_t *_Str, _Out_opt_ _Deref_post_z_ wchar_t **_EndPtr, _In_ int _Radix)
const MUI_LANGUAGE_RESOURCE ResourceList[]
Definition: muilanguages.h:414
PCWSTR MUIGetOEMCodePage(IN PCWSTR LanguageId)
Definition: mui.c:95
smooth NULL
Definition: ftsmooth.c:416
PCWSTR SelectedLanguageId
Definition: usetup.c:58
unsigned int UINT
Definition: ndis.h:50
unsigned int ULONG
Definition: retypes.h:1
_Check_return_ _CRTIMP int __cdecl _wcsicmp(_In_z_ const wchar_t *_Str1, _In_z_ const wchar_t *_Str2)

Referenced by LanguagePage(), and SetupStartPage().