mirror of
https://github.com/reactos/reactos.git
synced 2024-10-15 05:37:44 +00:00
58 lines
1.1 KiB
C
58 lines
1.1 KiB
C
|
/*
|
||
|
* PROJECT: ReactOS Setup Library
|
||
|
* LICENSE: GPL-2.0+ (https://spdx.org/licenses/GPL-2.0+)
|
||
|
* PURPOSE: File support functions.
|
||
|
* COPYRIGHT: Copyright 2017-2018 Hermes Belusca-Maito
|
||
|
*/
|
||
|
|
||
|
#pragma once
|
||
|
|
||
|
#if 0
|
||
|
|
||
|
BOOLEAN
|
||
|
IsValidPath(
|
||
|
IN PCWSTR InstallDir);
|
||
|
|
||
|
#endif
|
||
|
|
||
|
NTSTATUS
|
||
|
ConcatPaths(
|
||
|
IN OUT PWSTR PathElem1,
|
||
|
IN SIZE_T cchPathSize,
|
||
|
IN PCWSTR PathElem2 OPTIONAL);
|
||
|
|
||
|
BOOLEAN
|
||
|
DoesPathExist(
|
||
|
IN HANDLE RootDirectory OPTIONAL,
|
||
|
IN PCWSTR PathName);
|
||
|
|
||
|
BOOLEAN
|
||
|
DoesFileExist(
|
||
|
IN HANDLE RootDirectory OPTIONAL,
|
||
|
IN PCWSTR PathName OPTIONAL,
|
||
|
IN PCWSTR FileName);
|
||
|
|
||
|
BOOLEAN
|
||
|
NtPathToDiskPartComponents(
|
||
|
IN PCWSTR NtPath,
|
||
|
OUT PULONG pDiskNumber,
|
||
|
OUT PULONG pPartNumber,
|
||
|
OUT PCWSTR* PathComponent OPTIONAL);
|
||
|
|
||
|
NTSTATUS
|
||
|
OpenAndMapFile(
|
||
|
IN HANDLE RootDirectory OPTIONAL,
|
||
|
IN PCWSTR PathName OPTIONAL,
|
||
|
IN PCWSTR FileName, // OPTIONAL
|
||
|
OUT PHANDLE FileHandle, // IN OUT PHANDLE OPTIONAL
|
||
|
OUT PHANDLE SectionHandle,
|
||
|
OUT PVOID* BaseAddress,
|
||
|
OUT PULONG FileSize OPTIONAL);
|
||
|
|
||
|
BOOLEAN
|
||
|
UnMapFile(
|
||
|
IN HANDLE SectionHandle,
|
||
|
IN PVOID BaseAddress);
|
||
|
|
||
|
/* EOF */
|