[SETUPLIB][USETUP] Introduce a 'SetupLib' library. CORE-13544
- Create the beginnings of a "setuplib" library, whose aim is to be shared between the (currently existing) 1st-stage text-mode installer, and the (future) 1st-stage GUI installer.
- Finish to split the GenList and PartList codes into their UI part, which remain in usetup, and their algorithmic part, which go into setuplib.
- Move SetMountedDeviceValue into the PartList module.
- Split the FileSystem list code into its UI and the algorithmic part (which goes into setuplib under the name fsutil.c).
* The algo part is meant to be able to manage the filesystems available on the running system, similarly to what is mostly done (in scattered form) in fmifs, format, chkdsk / autochk codes...
It also manages the partition filesystem recognition, using OS routines.
* The UI part manages the FS list as it appears on screen, showing only the possible FSes that can be used to format the selected partition (a bit similar to what we do in the shell32's drive.c, etc...).
- Adapt the calling code to these changes.
- Remove some "host" code that was dating back from the dark old times.
svn path=/branches/setup_improvements/; revision=74570
svn path=/branches/setup_improvements/; revision=74659
2017-05-17 23:37:41 +00:00
|
|
|
/*
|
|
|
|
* PROJECT: ReactOS Setup Library
|
|
|
|
* LICENSE: GPL-2.0+ (https://spdx.org/licenses/GPL-2.0+)
|
|
|
|
* PURPOSE: Setup error codes
|
|
|
|
* COPYRIGHT: Copyright 2007-2018 Johannes Anderwald <johannes.anderwald@reactos.org>
|
|
|
|
*/
|
|
|
|
|
|
|
|
#pragma once
|
|
|
|
|
2017-06-30 19:07:02 +00:00
|
|
|
/* setupapi.h defines ERROR_NOT_INSTALLED with another meaning */
|
|
|
|
#ifdef ERROR_NOT_INSTALLED
|
|
|
|
#undef ERROR_NOT_INSTALLED
|
|
|
|
#endif
|
|
|
|
|
|
|
|
typedef enum _ERROR_NUMBER
|
[SETUPLIB][USETUP] Introduce a 'SetupLib' library. CORE-13544
- Create the beginnings of a "setuplib" library, whose aim is to be shared between the (currently existing) 1st-stage text-mode installer, and the (future) 1st-stage GUI installer.
- Finish to split the GenList and PartList codes into their UI part, which remain in usetup, and their algorithmic part, which go into setuplib.
- Move SetMountedDeviceValue into the PartList module.
- Split the FileSystem list code into its UI and the algorithmic part (which goes into setuplib under the name fsutil.c).
* The algo part is meant to be able to manage the filesystems available on the running system, similarly to what is mostly done (in scattered form) in fmifs, format, chkdsk / autochk codes...
It also manages the partition filesystem recognition, using OS routines.
* The UI part manages the FS list as it appears on screen, showing only the possible FSes that can be used to format the selected partition (a bit similar to what we do in the shell32's drive.c, etc...).
- Adapt the calling code to these changes.
- Remove some "host" code that was dating back from the dark old times.
svn path=/branches/setup_improvements/; revision=74570
svn path=/branches/setup_improvements/; revision=74659
2017-05-17 23:37:41 +00:00
|
|
|
{
|
|
|
|
NOT_AN_ERROR = 0, // ERROR_SUCCESS,
|
|
|
|
ERROR_NOT_INSTALLED,
|
2019-02-13 16:13:48 +00:00
|
|
|
ERROR_NO_BUILD_PATH,
|
|
|
|
ERROR_SOURCE_PATH,
|
|
|
|
ERROR_SOURCE_DIR,
|
[SETUPLIB][USETUP] Introduce a 'SetupLib' library. CORE-13544
- Create the beginnings of a "setuplib" library, whose aim is to be shared between the (currently existing) 1st-stage text-mode installer, and the (future) 1st-stage GUI installer.
- Finish to split the GenList and PartList codes into their UI part, which remain in usetup, and their algorithmic part, which go into setuplib.
- Move SetMountedDeviceValue into the PartList module.
- Split the FileSystem list code into its UI and the algorithmic part (which goes into setuplib under the name fsutil.c).
* The algo part is meant to be able to manage the filesystems available on the running system, similarly to what is mostly done (in scattered form) in fmifs, format, chkdsk / autochk codes...
It also manages the partition filesystem recognition, using OS routines.
* The UI part manages the FS list as it appears on screen, showing only the possible FSes that can be used to format the selected partition (a bit similar to what we do in the shell32's drive.c, etc...).
- Adapt the calling code to these changes.
- Remove some "host" code that was dating back from the dark old times.
svn path=/branches/setup_improvements/; revision=74570
svn path=/branches/setup_improvements/; revision=74659
2017-05-17 23:37:41 +00:00
|
|
|
ERROR_NO_HDD,
|
|
|
|
ERROR_NO_SOURCE_DRIVE,
|
|
|
|
ERROR_LOAD_TXTSETUPSIF,
|
|
|
|
ERROR_CORRUPT_TXTSETUPSIF,
|
|
|
|
ERROR_SIGNATURE_TXTSETUPSIF,
|
|
|
|
ERROR_DRIVE_INFORMATION,
|
|
|
|
ERROR_WRITE_BOOT,
|
|
|
|
ERROR_LOAD_COMPUTER,
|
|
|
|
ERROR_LOAD_DISPLAY,
|
|
|
|
ERROR_LOAD_KEYBOARD,
|
|
|
|
ERROR_LOAD_KBLAYOUT,
|
|
|
|
ERROR_WARN_PARTITION,
|
|
|
|
ERROR_NEW_PARTITION,
|
|
|
|
ERROR_INSTALL_BOOTCODE,
|
|
|
|
ERROR_NO_FLOPPY,
|
|
|
|
ERROR_UPDATE_KBSETTINGS,
|
|
|
|
ERROR_UPDATE_DISPLAY_SETTINGS,
|
|
|
|
ERROR_IMPORT_HIVE,
|
|
|
|
ERROR_FIND_REGISTRY,
|
|
|
|
ERROR_CREATE_HIVE,
|
|
|
|
ERROR_INITIALIZE_REGISTRY,
|
|
|
|
ERROR_INVALID_CABINET_INF,
|
|
|
|
ERROR_CABINET_MISSING,
|
|
|
|
ERROR_CABINET_SCRIPT,
|
|
|
|
ERROR_COPY_QUEUE,
|
|
|
|
ERROR_CREATE_DIR,
|
|
|
|
ERROR_TXTSETUP_SECTION,
|
|
|
|
ERROR_CABINET_SECTION,
|
|
|
|
ERROR_CREATE_INSTALL_DIR,
|
|
|
|
ERROR_WRITE_PTABLE,
|
|
|
|
ERROR_ADDING_CODEPAGE,
|
|
|
|
ERROR_UPDATE_LOCALESETTINGS,
|
|
|
|
ERROR_ADDING_KBLAYOUTS,
|
|
|
|
ERROR_UPDATE_GEOID,
|
|
|
|
ERROR_DIRECTORY_NAME,
|
|
|
|
ERROR_INSUFFICIENT_PARTITION_SIZE,
|
|
|
|
ERROR_PARTITION_TABLE_FULL,
|
|
|
|
ERROR_ONLY_ONE_EXTENDED,
|
|
|
|
ERROR_FORMATTING_PARTITION,
|
|
|
|
|
|
|
|
ERROR_LAST_ERROR_CODE
|
|
|
|
} ERROR_NUMBER;
|
|
|
|
|
|
|
|
/* EOF */
|