reactos/base/setup/lib
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 [BOOTDATA][SETUPLIB] Setup the Romanian Stdandard Keyboard layout. (#861) 2018-12-08 18:53:18 +01:00
spapisup [SETUPLIB][REACTOS][USETUP] Further improve the interfacing with INF and File-Queue APIs. 2018-11-01 18:55:43 +01:00
utils [SETUPLIB] Move the filesystem recognition helpers to their own file. 2020-10-18 20:56:16 +02:00
bootcode.c [SETUPLIB] Code re-organization in bootsup.c and fsutil.c. 2020-10-18 20:56:16 +02:00
bootcode.h [SETUPLIB] Code re-organization in bootsup.c and fsutil.c. 2020-10-18 20:56:16 +02:00
bootsup.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
bootsup.h [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
CMakeLists.txt [SETUPLIB] Code re-organization in bootsup.c and fsutil.c. 2020-10-18 20:56:16 +02:00
errorcode.h [USETUP] Localize the rest of the hardcoded error message strings 2019-08-17 21:34:39 +02:00
fsutil.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
fsutil.h [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
install.c [BOOTDATA][SETUPLIB][REACTOS] INF support fixes. 2018-11-06 00:04:19 +01:00
install.h [SETUPLIB][USETUP] Move all the code that performs file copying into the SETUPLIB. 2018-11-05 23:18:47 +01:00
mui.c [USETUP][BOOTDATA] Include optional CJK standard fonts (#2336) 2020-02-14 10:47:20 +09:00
mui.h [SETUPLIB][USETUP][INPUT.CPL] MUI integration with setuplib. 2018-10-28 00:13:07 +02:00
muifonts.h Revert "[FONTS] Add Selawik as a substitution for Segoe UI" CORE-17122 (#2921) 2020-06-14 19:09:41 +09:00
muilanguages.h [SETUPLIB][USETUP][INPUT.CPL] MUI integration with setuplib. 2018-10-28 00:13:07 +02:00
precomp.h [SETUPLIB] Move the files that implement utility functions into their own subdirectory. The files remaining in the main directory implement setup procedures that use the utility functions. 2018-10-27 22:09:34 +02:00
registry.c [SETUP] Silence some noisy DPRINT1 2019-01-01 10:08:02 +01:00
registry.h [SETUPLIB][USETUP] Move the registry-update procedure into setuplib. 2018-10-28 14:42:00 +01:00
settings.c [SETUP] Add support for archtitcure specific inf sections and use it for x64 computer type 2019-09-08 10:42:16 +02:00
settings.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
setuplib.c [USETUP][BOOTDATA] Include optional CJK standard fonts (#2336) 2020-02-14 10:47:20 +09:00
setuplib.h [SETUPLIB] Code re-organization in bootsup.c and fsutil.c. 2020-10-18 20:56:16 +02:00
substset.h [USETUP][BOOTDATA] Include optional CJK standard fonts (#2336) 2020-02-14 10:47:20 +09:00