reactos/base/setup/usetup
Hermès Bélusca-Maïto 8d3e80e437
[FSLIB][FMIFS][AUTOCHK][SETUPLIB] Use more Windows-compatible (but not fully compatible yet) Format() and Chkdsk() ULIB functions.
[AUTOCHK] Add also support for scanning FATX volumes.

The Format(), FormatEx(), Chkdsk(), ChkdskEx() functions exposed by the
U*.DLL user-mode FS library dlls are different (and have different
prototypes) than the similarly-named functions exported by FMIFS.DLL .

In particular, what we used to call "xxxChkdskEx()" and "xxxFormatEx()"
in our U*.DLL libraries actually correspond more, from their arguments,
to the "Chkdsk()" and "Format()" functions in Windows' U*.DLL . Their
*Ex() counterparts instead take most of the parameters through a
structure passed by pointer.

On FMIFS.DLL side, while FMIFS!Chkdsk() calls U*.DLL!Chkdsk() and
FMIFS!ChkdskEx() calls U*.DLL!ChkdskEx() (and we do not implement these
*Ex() functions at the moment), both FMIFS!Format() and FMIFS!FormatEx()
call U*.DLL!Format() instead, while FMIFS!FormatEx2() calls
U*.DLL!FormatEx() (that we do not implement yet either) !!

To improve that, refactor the calls to these U*.DLL functions so as to
respect the more compatible prototypes: They contain the correct number
of parameters in a compatible order. However, some of the parameters do
not have the same types yet: the strings are kept here in PUNICODE_STRINGS,
while on Windows they are passed via an undocumented DSTRING struct, and
the FMIFS callback is instead a MESSAGE struct/class on Windows.
Finally, the MEDIA_TYPE parameter in U*.DLL!Format() is equivalent, yet
not fully 100% in 1-to-1 correspondence, with the FMIFS_MEDIA_FLAG used
in the corresponding FMIFS.DLL functions.

One thing to notice is that the U*.DLL!Format() (and the Ex) functions
support a BOOLEAN (a flag resp.) for telling that a backwards-compatible
FS version should be used instead of the (default) latest FS version.
This is used e.g. by the FAT FS, where by default FAT32 is selected
(depending also on other constraints like, the disk and the partition
sizes), unless that bit is set in which case, FAT16 (or 12) is used.
2020-11-22 21:57:07 +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
chkdsk.h
CMakeLists.txt [USETUP] Fix the build for msvc 2020-04-26 17:01:08 +02:00
cmdcons.c
cmdcons.h
console.c [USETUP] Move loading of requested font from blue.sys to usetup 2020-04-26 14:59:04 +02:00
console.h
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
format.c [FSLIB][FMIFS][AUTOCHK][SETUPLIB] Use more Windows-compatible (but not fully compatible yet) Format() and Chkdsk() ULIB functions. 2020-11-22 21:57:07 +01:00
format.h
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
genlist.c
genlist.h
keytrans.c
keytrans.h
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
progress.c
progress.h
usetup.c [USETUP] Introduce two helpers for formatting displayed disk and partition sizes in order to reduce code duplication. 2020-11-04 23:26:54 +01:00
usetup.h
usetup.rc