1 #pragma once 2 3 typedef struct 4 { 5 SHORT X; 6 SHORT Y; 7 LPCSTR Buffer; 8 DWORD Flags; 9 INT TextID; 10 } MUI_ENTRY, *PMUI_ENTRY; 11 12 typedef struct 13 { 14 LPCSTR ErrorText; 15 LPCSTR 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 LPSTR 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 LPSTR 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 /* MUI Text IDs */ 103 104 /* Static MUI Text */ 105 #define TEXT_ID_STATIC (-1) 106 107 /* Dynamic MUI Text IDs */ 108 #define TEXT_ID_FORMAT_PROMPT 1 109 110 /* MUI Strings */ 111 #define STRING_PLEASEWAIT 1 112 #define STRING_INSTALLCREATEPARTITION 2 113 #define STRING_INSTALLCREATELOGICAL 60 114 #define STRING_INSTALLDELETEPARTITION 3 115 #define STRING_DELETEPARTITION 59 116 #define STRING_PARTITIONSIZE 4 117 #define STRING_CHOOSENEWPARTITION 5 118 #define STRING_CHOOSE_NEW_EXTENDED_PARTITION 57 119 #define STRING_CHOOSE_NEW_LOGICAL_PARTITION 61 120 #define STRING_HDDSIZE 6 121 #define STRING_CREATEPARTITION 7 122 #define STRING_PARTFORMAT 8 123 #define STRING_NONFORMATTEDPART 9 124 #define STRING_NONFORMATTEDSYSTEMPART 62 125 #define STRING_NONFORMATTEDOTHERPART 63 126 #define STRING_INSTALLONPART 10 127 #define STRING_CHECKINGPART 11 128 #define STRING_CONTINUE 12 129 #define STRING_QUITCONTINUE 13 130 #define STRING_REBOOTCOMPUTER 14 131 #define STRING_DELETING 15 132 #define STRING_MOVING 16 133 #define STRING_RENAMING 17 134 #define STRING_COPYING 18 135 #define STRING_SETUPCOPYINGFILES 19 136 #define STRING_REGHIVEUPDATE 20 137 #define STRING_IMPORTFILE 21 138 #define STRING_DISPLAYSETTINGSUPDATE 22 139 #define STRING_LOCALESETTINGSUPDATE 23 140 #define STRING_KEYBOARDSETTINGSUPDATE 24 141 #define STRING_CODEPAGEINFOUPDATE 25 142 #define STRING_DONE 26 143 #define STRING_REBOOTCOMPUTER2 27 144 #define STRING_CONSOLEFAIL1 28 145 #define STRING_CONSOLEFAIL2 29 146 #define STRING_CONSOLEFAIL3 30 147 #define STRING_FORMATTINGDISK 31 148 #define STRING_CHECKINGDISK 32 149 #define STRING_FORMATDISK1 33 150 #define STRING_FORMATDISK2 34 151 #define STRING_KEEPFORMAT 35 152 #define STRING_HDINFOPARTCREATE_1 36 153 #define STRING_HDINFOPARTCREATE_2 37 154 #define STRING_HDDINFOUNK2 38 155 #define STRING_HDINFOPARTDELETE_1 39 156 #define STRING_HDINFOPARTDELETE_2 40 157 #define STRING_HDINFOPARTZEROED_1 41 158 #define STRING_HDDINFOUNK4 42 159 #define STRING_HDINFOPARTEXISTS_1 43 160 #define STRING_HDDINFOUNK5 44 161 #define STRING_HDINFOPARTSELECT_1 45 162 #define STRING_HDINFOPARTSELECT_2 46 163 #define STRING_NEWPARTITION 47 164 #define STRING_UNPSPACE 48 165 #define STRING_MAXSIZE 49 166 #define STRING_UNFORMATTED 50 167 #define STRING_EXTENDED_PARTITION 58 168 #define STRING_FORMATUNUSED 51 169 #define STRING_FORMATUNKNOWN 52 170 #define STRING_KB 53 171 #define STRING_MB 54 172 #define STRING_GB 55 173 #define STRING_ADDKBLAYOUTS 56 174 #define STRING_REBOOTPROGRESSBAR 64 175