reactos/sdk/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
..
3rdparty [CMAKE] Get rid of replace_compile_flags 2020-10-20 21:44:54 +02:00
atl [ATL] Declare pointer as return type for functions returning pointers 2020-11-16 16:58:10 +01:00
cmlib [NTOSKRNL] Add 'DECLSPEC_NORETURN' to a few 'KeBugCheck*()' (#2896) 2020-06-06 17:50:14 +02:00
comsupp [CMAKE] Get rid of the set_cpp macro 2020-10-20 21:44:54 +02:00
conutils [CONUTILS] Use const string pointers for strings that are not modified by the functions. 2020-08-23 19:11:40 +02:00
cportlib [CPORTLIB] Fix MSVC build for PC-98 target 2020-05-16 15:23:00 +03:00
cpprt [CMAKE] Get rid of the set_cpp macro 2020-10-20 21:44:54 +02:00
crt [CRT] Use ASM aliases for CLang builds 2020-11-16 16:58:10 +01:00
cryptlib
debugsup [REACTOS] *.spec: Fix some function/parameter types (#3154) 2020-09-20 19:21:11 +02:00
delayimp
dmilib
dnslib
drivers [WDF] Enable Resource and Interrupt APIs 2020-11-04 19:34:14 +03:00
dxguid
epsapi
evtlib
fast486
fslib [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
gcc_ssp
inflib [CMAKE] Replace custom functions to built-in ones 2020-04-16 15:59:38 +03:00
ioevent
lsalib [CMAKE] Replace custom functions to built-in ones 2020-04-16 15:59:38 +03:00
nt
ppcmmu
pseh
rossym [NTOS] Add a #define __ROS_ROSSYM__ when using rossym 2020-04-09 23:00:57 +02:00
rossym_new
rtl [NTOS:PS] On x64 don't fail in NtSetInformationProcess with ProcessUserModeIOPL information class, instead just don't do anything. 2020-09-20 23:08:17 +02:00
runtmchk
scrnsave
skiplist
smlib
strmiids
tdilib
tzlib [TZLIB] QueryTimeZoneData(): Don't fail if the optional values "Display", "Std", "Dlt" are missing (or too long to be captured). However fail if the timezone information is missing. 2020-04-22 00:58:32 +02:00
udmihelp
uuid
wdmguid
CMakeLists.txt [CMAKE] Introduce the atl_classes interface library 2020-10-20 21:44:54 +02:00