Main Page | Class Hierarchy | Class List | File List | Class Members | File Members

arcinst.c File Reference

#include "precomp.h"

Go to the source code of this file.

Defines

#define CSZMENUITEMS   2
#define CONFIG_SYS_PARTITION   0
#define EXIT   1
#define MENU_START_ROW   4
#define ERROR_ROW_TOP   13
#define ERROR_ROW_BOTTOM   16
#define MAX_PATH   256
#define CBMAXLINE   120
#define ARCINST_STACK_PAGES   (2*1024*1024 / PAGE_SIZE)
#define ARCINST_HEAP_PAGES   (2*1024*1024 / PAGE_SIZE)

Functions

ARC_STATUS GetTitlesAndPaths (PCHAR, PCHAR, ULONG, ULONG, PCHAR **, PULONG, PCHAR **, PULONG)
ARC_STATUS GetSectionElementList (PCHAR, PCHAR, ULONG, PCHAR **, PULONG)
ARC_STATUS CopySection (PCHAR, PCHAR, PCHAR, PCHAR)
ARC_STATUS UpdateOSFiles (PCHAR, PCHAR, PCHAR)
VOID PrintError (PCHAR,...)
ARC_STATUS __cdecl main (IN ULONG argc, IN PCHAR argv[], IN PCHAR envp[])
VOID PrintError (IN PCHAR szFormat,...)
VOID JzShowTime (BOOLEAN First)

Variables

PCHAR Banner1 = " Arc Installation Program Version 4.00"
PCHAR Banner2 = " Copyright (c) 1991-1996 Microsoft Corporation"
PCHAR rgszMainMenu []
int errno


Define Documentation

#define ARCINST_HEAP_PAGES   (2*1024*1024 / PAGE_SIZE)
 

Definition at line 77 of file arcinst.c.

Referenced by main().

#define ARCINST_STACK_PAGES   (2*1024*1024 / PAGE_SIZE)
 

Definition at line 76 of file arcinst.c.

Referenced by main().

#define CBMAXLINE   120
 

Definition at line 71 of file arcinst.c.

#define CONFIG_SYS_PARTITION   0
 

Definition at line 54 of file arcinst.c.

Referenced by main().

#define CSZMENUITEMS   2
 

Definition at line 42 of file arcinst.c.

Referenced by main().

#define ERROR_ROW_BOTTOM   16
 

Definition at line 59 of file arcinst.c.

Referenced by PrintError().

#define ERROR_ROW_TOP   13
 

Definition at line 58 of file arcinst.c.

Referenced by PrintError().

#define EXIT   1
 

Definition at line 55 of file arcinst.c.

Referenced by IoepCatMsgArg(), IoepExtractErrData(), IoepFindErrHandler(), IoepFindErrModule(), IoepFindErrThread(), IoepFireWMIEvent(), IoepFreeErrStack(), IoepGetErrCaseDB(), IoepGetErrMessage(), IoepHandleErrCase(), IoepInitErrLog(), IoepLogErr(), IoepMatchErrIDPath(), IoepNewErrThread(), IoepUnicodeStringCatN(), IoErrFindErrCaseByID(), IoErrFreeSavedData(), IoErrGetErrData(), IoErrGetLongErrMessage(), IoErrGetSavedData(), IoErrGetShortErrMessage(), IoErrHandleErrCase(), IoErrInitErrLogByIrp(), IoErrInitErrLogByThreadID(), IoErrInitSystem(), IoErrLogErrByIrp(), IoErrLogErrByThreadID(), IoErrMatchErrCase(), IoErrPropagateErrLog(), IoErrRegisterErrHandlers(), IoErrRetrieveSavedData(), IoErrSaveErrData(), IoErrTerminateErrLog(), main(), RtlpDebugPageHeapAllocate(), RtlpDebugPageHeapAllocateNode(), RtlpDebugPageHeapFree(), RtlpDebugPageHeapGetUserInfo(), RtlpDebugPageHeapReAllocate(), RtlpDebugPageHeapSetUserFlags(), RtlpDebugPageHeapSetUserValue(), and RtlpDebugPageHeapSize().

#define MAX_PATH   256
 

Definition at line 65 of file arcinst.c.

Referenced by _InitializeImmEntryTable(), AllocConsole(), bCheckAndDeleteTTF(), bCheckIfDualBootingWithWin31(), bEnumerateRegistryFonts(), CAddProfileDialog::CAddProfileDialog(), CheckBadApp(), CProfile::ColorDirectory(), CColorMatchDialog::CompleteInitialization(), ConvertDIBIcon(), CopyIcoCur(), CopyImeFile(), CreateColorTransformW(), DllInit(), DoDrop(), ExamineKey(), GetColorMatchingModule(), GetImmFileName(), GetMonitorData(), GlobalCollect(), ImeRunHelp(), ImeSystemHandler(), ImmInstallIMEW(), ImmLoadLayout(), InstallProfiles(), InternalAssociateColorProfileWithDevice(), InternalCreateColorTransform(), InternalDisassociateColorProfileFromDevice(), InternalEnumColorProfiles(), InternalEnumObjects(), InternalGetColorDirectory(), InternalInstallColorProfile(), InternalOpenColorProfile(), InternalUninstallColorProfile(), InternalUpgradeICM(), IopStartNetworkForRemoteBoot(), LaunchHelp(), CString::Load(), LoadIcoCur(), LoadIME(), LoadKeyboardLayoutA(), LoadLinkInfo(), LoadVersionInfo(), MigrateSystem9x(), MigrateSystemNT(), MyMoveDir(), NtUserSystemParametersInfo(), CProfileInformationPage::OnInit(), CPrinterProfileManagement::OnInit(), OpenKeyboardLayoutFile(), OpenMonitor(), OpenMultiplePortDevice(), PrivateExtractIconsW(), RtlLoadObjectFromDIBFile(), SetWindowsHookExAW(), SetWinEventHook(), SoftModalMessageBox(), SpoolerCopyFileEvent(), SystemParametersInfo(), UpgradeClass(), User32InitializeImmEntryTable(), UserClientDllInitialize(), vCheckMMInstance(), vMoveFileFromSystemToFontsDir(), vProcessFontEntry(), WinMain(), xxxDlgDirListHelper(), xxxLoadHmodIndex(), xxxSetDeskPattern(), xxxSystemParametersInfo(), xxxUpdateSystemCursorsFromRegistry(), and xxxUpdateSystemIconsFromRegistry().

#define MENU_START_ROW   4
 

Definition at line 57 of file arcinst.c.

Referenced by main().


Function Documentation

ARC_STATUS CopySection PCHAR  ,
PCHAR  ,
PCHAR  ,
PCHAR 
 

ARC_STATUS GetSectionElementList PCHAR  ,
PCHAR  ,
ULONG  ,
PCHAR **  ,
PULONG 
 

ARC_STATUS GetTitlesAndPaths PCHAR  ,
PCHAR  ,
ULONG  ,
ULONG  ,
PCHAR **  ,
PULONG  ,
PCHAR **  ,
PULONG 
 

VOID JzShowTime BOOLEAN  First  ) 
 

Definition at line 229 of file arcinst.c.

00232 { 00233 return; 00234 }

ARC_STATUS __cdecl main IN ULONG  argc,
IN PCHAR  argv[],
IN PCHAR  envp[]
 

Definition at line 90 of file arcinst.c.

References AlAddMenuItems(), AlClearScreen, AlDisplayMenu(), AlInitializeMenuPackage(), AlMemoryInitialize(), AlNewMenu(), AlPrint(), AlSetPosition, ARCINST_HEAP_PAGES, ARCINST_STACK_PAGES, Banner1, Banner2, CONFIG_SYS_PARTITION, ConfigureSystemPartitions(), CSZMENUITEMS, ESUCCESS, EXIT, FALSE, FdiskInitialize(), MENU_START_ROW, NULL, PrintError(), rgszMainMenu, and TRUE.

00095 { 00096 PCHAR szSysPartition = NULL; 00097 PCHAR szInfPath = NULL; 00098 PVOID hdMenuId; 00099 ULONG MenuChoice; 00100 00101 DBG_UNREFERENCED_PARAMETER( argc ); 00102 DBG_UNREFERENCED_PARAMETER( argv ); 00103 DBG_UNREFERENCED_PARAMETER( envp ); 00104 00105 if (AlMemoryInitialize (ARCINST_STACK_PAGES, ARCINST_HEAP_PAGES) != ESUCCESS) { 00106 00107 PrintError(NULL, "Failed to initialize the heap"); 00108 return( ESUCCESS ); 00109 } 00110 00111 if (!AlInitializeMenuPackage()) { 00112 00113 PrintError(NULL, "Could not initialize menu package"); 00114 return( ESUCCESS ); 00115 00116 } 00117 00118 if (FdiskInitialize() != ESUCCESS) { 00119 00120 PrintError(NULL, "Failed to initialize the FDISK package"); 00121 return( ESUCCESS ); 00122 00123 } 00124 00125 if (!AlNewMenu(&hdMenuId)) { 00126 00127 PrintError(NULL, "Could not create main menu"); 00128 return( ESUCCESS ); 00129 00130 } 00131 00132 // 00133 // Initialize the main ArcInst menu. 00134 // 00135 // Not that when you add items in this way the associated data becomes 00136 // the index in the array of strings. Make sure the values used for 00137 // associated data the predefined values CHANGE_ENV etc. 00138 // 00139 00140 if (!AlAddMenuItems(hdMenuId, rgszMainMenu, CSZMENUITEMS)) { 00141 00142 PrintError(NULL, "Failed to Initialize Main Menu"); 00143 return( ESUCCESS ); 00144 } 00145 00146 // 00147 // Loop till Exit or an ESC key is it. 00148 // 00149 while (TRUE) { 00150 00151 // 00152 // Print Banner 00153 // 00154 AlClearScreen(); 00155 AlSetPosition(1, 0); 00156 AlPrint(Banner1); 00157 AlPrint("\r\n"); 00158 AlPrint(Banner2); 00159 00160 if (!AlDisplayMenu(hdMenuId, 00161 FALSE, 00162 CONFIG_SYS_PARTITION, 00163 &MenuChoice, 00164 MENU_START_ROW, 00165 0)) { 00166 00167 // 00168 // User hit ESC key 00169 // 00170 return( ESUCCESS ); 00171 00172 } 00173 00174 switch (MenuChoice) { 00175 00176 case CONFIG_SYS_PARTITION: 00177 00178 ConfigureSystemPartitions(); 00179 break; 00180 00181 case EXIT: 00182 00183 return(ESUCCESS); 00184 break; 00185 00186 } 00187 } 00188 }

VOID PrintError IN PCHAR  szFormat,
  ...
 

Definition at line 191 of file arcinst.c.

References AlClearStatusArea(), AlWaitKey(), ERROR_ROW_BOTTOM, ERROR_ROW_TOP, NULL, TRUE, and vAlStatusMsg().

Referenced by main().

00198 : 00199 00200 This routine prints a error or information message at a specific 00201 location the screen (ERROR_ROW_TOP) and waits for the user to hit 00202 any key. 00203 00204 Arguments: 00205 00206 szFormat - Format string, if NULL then "%s" is used. 00207 szErrorMessage - Text of string to print 00208 00209 Return Value: 00210 00211 none 00212 00213 --*/ 00214 00215 { 00216 va_list ArgList; 00217 00218 va_start(ArgList,szFormat); 00219 if (szFormat == NULL ) { 00220 szFormat = "%s"; 00221 } 00222 vAlStatusMsg(ERROR_ROW_TOP, TRUE, szFormat, ArgList); 00223 00224 AlWaitKey(NULL); 00225 AlClearStatusArea(ERROR_ROW_TOP, ERROR_ROW_BOTTOM); 00226 }

VOID PrintError PCHAR  ,
  ...
 

ARC_STATUS UpdateOSFiles PCHAR  ,
PCHAR  ,
PCHAR 
 


Variable Documentation

PCHAR Banner1 = " Arc Installation Program Version 4.00"
 

Definition at line 23 of file arcinst.c.

Referenced by main().

PCHAR Banner2 = " Copyright (c) 1991-1996 Microsoft Corporation"
 

Definition at line 24 of file arcinst.c.

Referenced by main().

int errno
 

Definition at line 87 of file arcinst.c.

PCHAR rgszMainMenu[]
 

Initial value:

{ "Configure Partitions", "Exit" }

Definition at line 30 of file arcinst.c.

Referenced by main().


Generated on Sat May 15 19:42:54 2004 for test by doxygen 1.3.7