[SETUPLIB] Improve the bootloader 'validity' checks -- Addendum to f06734e5 (r74512).
[reactos.git] / base / setup / lib / fsutil.h
1 /*
2 * PROJECT: ReactOS Setup Library
3 * LICENSE: GPL-2.0+ (https://spdx.org/licenses/GPL-2.0+)
4 * PURPOSE: Filesystem support functions
5 * COPYRIGHT: Copyright 2003-2018 Casper S. Hornstrup (chorns@users.sourceforge.net)
6 * Copyright 2017-2018 Hermes Belusca-Maito
7 */
8
9 #pragma once
10
11 #include <fmifs/fmifs.h>
12
13 typedef struct _FILE_SYSTEM
14 {
15 PCWSTR FileSystemName;
16 FORMATEX FormatFunc;
17 CHKDSKEX ChkdskFunc;
18 } FILE_SYSTEM, *PFILE_SYSTEM;
19
20 PFILE_SYSTEM
21 GetRegisteredFileSystems(OUT PULONG Count);
22
23 PFILE_SYSTEM
24 GetFileSystemByName(
25 // IN PFILE_SYSTEM_LIST List,
26 IN PCWSTR FileSystemName);
27
28 struct _PARTENTRY; // Defined in partlist.h
29
30 PFILE_SYSTEM
31 GetFileSystem(
32 // IN PFILE_SYSTEM_LIST FileSystemList,
33 IN struct _PARTENTRY* PartEntry);
34
35
36 BOOLEAN
37 PreparePartitionForFormatting(
38 IN struct _PARTENTRY* PartEntry,
39 IN PFILE_SYSTEM FileSystem);
40
41 /* EOF */