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 60 135 #define STRING_INSTALLDELETEPARTITION 3 136 #define STRING_DELETEPARTITION 59 137 #define STRING_PARTITIONSIZE 4 138 #define STRING_CHOOSENEWPARTITION 5 139 #define STRING_CHOOSE_NEW_EXTENDED_PARTITION 57 140 #define STRING_CHOOSE_NEW_LOGICAL_PARTITION 61 141 #define STRING_HDDSIZE 6 142 #define STRING_CREATEPARTITION 7 143 #define STRING_PARTFORMAT 8 144 #define STRING_NONFORMATTEDPART 9 145 #define STRING_NONFORMATTEDSYSTEMPART 62 146 #define STRING_NONFORMATTEDOTHERPART 63 147 #define STRING_INSTALLONPART 10 148 #define STRING_CONTINUE 12 149 #define STRING_QUITCONTINUE 13 150 #define STRING_REBOOTCOMPUTER 14 151 #define STRING_DELETING 15 152 #define STRING_MOVING 16 153 #define STRING_RENAMING 17 154 #define STRING_COPYING 18 155 #define STRING_SETUPCOPYINGFILES 19 156 #define STRING_REGHIVEUPDATE 20 157 #define STRING_IMPORTFILE 21 158 #define STRING_DISPLAYSETTINGSUPDATE 22 159 #define STRING_LOCALESETTINGSUPDATE 23 160 #define STRING_KEYBOARDSETTINGSUPDATE 24 161 #define STRING_CODEPAGEINFOUPDATE 25 162 #define STRING_DONE 26 163 #define STRING_REBOOTCOMPUTER2 27 164 #define STRING_CONSOLEFAIL1 28 165 #define STRING_CONSOLEFAIL2 29 166 #define STRING_CONSOLEFAIL3 30 167 #define STRING_FORMATTINGDISK 31 168 #define STRING_CHECKINGDISK 32 169 #define STRING_FORMATDISK1 33 170 #define STRING_FORMATDISK2 34 171 #define STRING_KEEPFORMAT 35 172 #define STRING_HDINFOPARTCREATE_1 36 173 #define STRING_HDINFOPARTDELETE_1 39 174 #define STRING_PARTTYPE 42 175 #define STRING_HDDINFO_1 45 176 #define STRING_HDDINFO_2 46 177 #define STRING_NEWPARTITION 47 178 #define STRING_UNPSPACE 48 179 #define STRING_MAXSIZE 49 180 #define STRING_UNFORMATTED 50 181 #define STRING_EXTENDED_PARTITION 58 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 64 189