reactos/base/setup/usetup
Hermès Bélusca-Maïto 05cd77028c
[SETUPLIB][USETUP] Cleanup some code in USETUP. Redefine FormatPartition() and ChkdskPartition() helpers
so that they wrap the needed init steps for formatting/chkdsk'ing.

These helpers now accept a PPARTENTRY, together with the usual
formatting/chkdsk parameters. The helpers now determine the actual
NT path to use, and can perform the init steps on the partition
before performing the actual operation.

In particular, FormatPartition() is now made GPT-compliant. The
partition type retrieved by FileSystemToMBRPartitionType() is now
used as a hint for choosing FAT32 over FAT12/16, and only in the
case of a MBR partition that is *NOT* a recognized OEM partition,
it is used for updating the corresponding partition type. (OEM
partitions must retain their original type.)

The OEM partition types we (and NT) can recognize are specified
e.g. in the Microsoft Open-Specification [MS-DMRP] Appendix B
https://docs.microsoft.com/en-us/openspecs/windows_protocols/ms-dmrp/5f5043a3-9e6d-40cc-a05b-1a4a3617df32

Introduce an IsOEMPartition() macro to help checking for these types
(its name is based on the Is***Partition() macros from ntdddisk.h,
and from a dmdskmgr.dll export of similar name).
2020-11-24 03:24:41 +01:00
..
lang [SETUP] French translation of missing elements (#3111) 2020-09-03 21:20:54 +02:00
spapisup [USETUP] Support a custom way to extract files for cabinet files 2020-04-26 14:57:40 +02:00
chkdsk.c [SETUPLIB][USETUP] Cleanup some code in USETUP. Redefine FormatPartition() and ChkdskPartition() helpers 2020-11-24 03:24:41 +01:00
chkdsk.h [SETUPLIB][USETUP] Cleanup some code in USETUP. Redefine FormatPartition() and ChkdskPartition() helpers 2020-11-24 03:24:41 +01:00
CMakeLists.txt [USETUP] Fix the build for msvc 2020-04-26 17:01:08 +02:00
cmdcons.c [SETUP] Remove myself from the 1st stage setup code 2018-05-27 21:33:07 +02:00
cmdcons.h [SETUP] Remove myself from the 1st stage setup code 2018-05-27 21:33:07 +02:00
console.c [USETUP] Move loading of requested font from blue.sys to usetup 2020-04-26 14:59:04 +02:00
console.h [SETUP] Remove myself from the 1st stage setup code 2018-05-27 21:33:07 +02:00
consup.c [USETUP] Do a trick to avoid visual "blinking" during screen clearing. (#3255) 2020-10-02 00:20:21 +02:00
consup.h [USETUP] Minor formatting only. 2020-10-02 00:04:11 +02:00
devinst.c [UMPNPMGR][USETUP] Fix the way device-install events are queued and dequeued. Fixes CORE-16103. 2020-10-01 01:52:09 +02:00
devinst.h [USETUP] Modify the integrated user-mode PnP manager along the lines of UMPNPMGR, so that we can wait until all the queued device installations finish before continuing the installation further. 2018-12-23 20:37:14 +01:00
format.c [SETUPLIB][USETUP] Cleanup some code in USETUP. Redefine FormatPartition() and ChkdskPartition() helpers 2020-11-24 03:24:41 +01:00
format.h [SETUPLIB][USETUP] Cleanup some code in USETUP. Redefine FormatPartition() and ChkdskPartition() helpers 2020-11-24 03:24:41 +01:00
fslist.c [USETUP][SETUPLIB] Continue hiding the FAT32 format in the format list, but take it into account anyway later on. 2020-10-20 01:19:58 +02:00
fslist.h [SETUPLIB][USETUP] Factor out the usage of FS provider structures. 2019-03-10 15:41:05 +01:00
genlist.c [SETUPLIB][USETUP] Remove the deprecated GenericListHasSingleEntry() function and use instead GetNumberOfListEntries(). 2018-10-28 15:04:33 +01:00
genlist.h [SETUPLIB][USETUP] Don't store UI-related display strings in GENERIC_LIST_ENTRY-ies, + other code adaptations. 2018-10-28 01:32:15 +02:00
keytrans.c [USETUP] Remove the WIN32 support because usetup is a native-only application 2018-05-15 23:35:17 +02:00
keytrans.h [USETUP] Remove the WIN32 support because usetup is a native-only application 2018-05-15 23:35:17 +02:00
mui.c [USETUP] Use pointers to const strings where meaningful. 2020-11-04 23:26:53 +01:00
mui.h [USETUP] Use pointers to const strings where meaningful. 2020-11-04 23:26:53 +01:00
muilanguages.h [TRANSLATION] Update Spanish, and add Basque translation (#2667) 2020-05-17 18:46:36 +02:00
partlist.c [USETUP] Use pointers to const strings where meaningful. 2020-11-04 23:26:53 +01:00
partlist.h [SETUPLIB][USETUP] Remove CurrentDisk/Partition from the partlist lib code, and move these into the UI code. 2019-03-11 00:05:37 +01:00
progress.c [USETUP] Progress-bar: minor improvements. 2018-08-27 23:55:58 +02:00
progress.h [USETUP] Progress-bar: minor improvements. 2018-08-27 23:55:58 +02:00
usetup.c [SETUPLIB][USETUP] Cleanup some code in USETUP. Redefine FormatPartition() and ChkdskPartition() helpers 2020-11-24 03:24:41 +01:00
usetup.h [SETUPLIB][USETUP] Slightly modify how and when the HW system partition is detected and used. 2019-08-25 02:38:53 +02:00
usetup.rc [SETUPLIB][USETUP] Diverse additions. 2018-06-03 22:12:45 +02:00