mirror of
https://github.com/reactos/reactos.git
synced 2025-08-03 19:05:52 +00:00
[SETUPLIB] Move the filesystem recognition helpers to their own file.
This commit is contained in:
parent
8a4273b6ee
commit
b51b8ee2d5
7 changed files with 361 additions and 332 deletions
49
base/setup/lib/utils/fsrec.h
Normal file
49
base/setup/lib/utils/fsrec.h
Normal file
|
@ -0,0 +1,49 @@
|
|||
/*
|
||||
* PROJECT: ReactOS Setup Library
|
||||
* LICENSE: GPL-2.0+ (https://spdx.org/licenses/GPL-2.0+)
|
||||
* PURPOSE: Filesystem Recognition support functions,
|
||||
* using NT OS functionality.
|
||||
* COPYRIGHT: Copyright 2017-2020 Hermes Belusca-Maito
|
||||
*/
|
||||
|
||||
#pragma once
|
||||
|
||||
NTSTATUS
|
||||
GetFileSystemNameByHandle(
|
||||
IN HANDLE PartitionHandle,
|
||||
IN OUT PWSTR FileSystemName,
|
||||
IN SIZE_T FileSystemNameSize);
|
||||
|
||||
NTSTATUS
|
||||
GetFileSystemName_UStr(
|
||||
IN PUNICODE_STRING PartitionPath,
|
||||
IN OUT PWSTR FileSystemName,
|
||||
IN SIZE_T FileSystemNameSize);
|
||||
|
||||
NTSTATUS
|
||||
GetFileSystemName(
|
||||
IN PCWSTR Partition,
|
||||
IN OUT PWSTR FileSystemName,
|
||||
IN SIZE_T FileSystemNameSize);
|
||||
|
||||
NTSTATUS
|
||||
InferFileSystemByHandle(
|
||||
IN HANDLE PartitionHandle,
|
||||
IN UCHAR PartitionType,
|
||||
IN OUT PWSTR FileSystemName,
|
||||
IN SIZE_T FileSystemNameSize);
|
||||
|
||||
NTSTATUS
|
||||
InferFileSystem(
|
||||
IN PCWSTR Partition,
|
||||
IN UCHAR PartitionType,
|
||||
IN OUT PWSTR FileSystemName,
|
||||
IN SIZE_T FileSystemNameSize);
|
||||
|
||||
UCHAR
|
||||
FileSystemToPartitionType(
|
||||
IN PCWSTR FileSystem,
|
||||
IN PULARGE_INTEGER StartSector,
|
||||
IN PULARGE_INTEGER SectorCount);
|
||||
|
||||
/* EOF */
|
Loading…
Add table
Add a link
Reference in a new issue