ReactOS 0.4.15-dev-8058-ga7cbb60
|
Go to the source code of this file.
Macros | |
#define | MOVEFILE_REPLACE_EXISTING 1 |
#define | MOVEFILE_COPY_ALLOWED 2 |
#define | MOVEFILE_WRITE_THROUGH 8 |
#define | DoesDirExist(RootDirectory, DirName) DoesPathExist((RootDirectory), (DirName), TRUE) |
#define | DoesFileExist(RootDirectory, FileName) DoesPathExist((RootDirectory), (FileName), FALSE) |
#define | UnMapAndCloseFile(FileHandle, SectionHandle, BaseAddress) |
#define DoesDirExist | ( | RootDirectory, | |
DirName | |||
) | DoesPathExist((RootDirectory), (DirName), TRUE) |
#define DoesFileExist | ( | RootDirectory, | |
FileName | |||
) | DoesPathExist((RootDirectory), (FileName), FALSE) |
#define UnMapAndCloseFile | ( | FileHandle, | |
SectionHandle, | |||
BaseAddress | |||
) |
NTSTATUS CombinePaths | ( | OUT PWSTR | PathBuffer, |
IN SIZE_T | cchPathSize, | ||
IN ULONG | NumberOfPathComponents, | ||
IN ... | |||
) |
Definition at line 681 of file filesup.c.
Referenced by AddSectionToCopyQueue(), AddSectionToCopyQueueCab(), BuildFullDirectoryPath(), CheckUnattendedSetup(), ConnectRegistry(), CreateRegistryFile(), DoesFileExist_2(), ImportRegistryFile(), InitDestinationPaths(), InstallBtrfsBootcodeToPartition(), InstallFatBootcodeToFloppy(), InstallFatBootcodeToPartition(), InstallMbrBootCodeToDisk(), InstallNtfsBootcodeToPartition(), InstallSetupInfFile(), LoadSetupInf(), PrepareFileCopy(), RegCleanupRegistry(), and SetupCommitFileQueueW().
NTSTATUS CombinePathsV | ( | OUT PWSTR | PathBuffer, |
IN SIZE_T | cchPathSize, | ||
IN ULONG | NumberOfPathComponents, | ||
IN va_list | PathComponentsList | ||
) |
Definition at line 643 of file filesup.c.
Referenced by CombinePaths().
NTSTATUS ConcatPaths | ( | IN OUT PWSTR | PathBuffer, |
IN SIZE_T | cchPathSize, | ||
IN ULONG | NumberOfPathComponents, | ||
IN ... | |||
) |
Definition at line 659 of file filesup.c.
Referenced by ArcPathToNtPath(), InitDestinationPaths(), and SetupCommitFileQueueW().
NTSTATUS ConcatPathsV | ( | IN OUT PWSTR | PathBuffer, |
IN SIZE_T | cchPathSize, | ||
IN ULONG | NumberOfPathComponents, | ||
IN va_list | PathComponentsList | ||
) |
Definition at line 596 of file filesup.c.
Referenced by CombinePathsV(), and ConcatPaths().
Definition at line 748 of file filesup.c.
Referenced by InstallBtrfsBootcodeToPartition(), InstallFatBootcodeToPartition(), and InstallNtfsBootcodeToPartition().
BOOLEAN DoesPathExist | ( | IN HANDLE RootDirectory | OPTIONAL, |
IN PCWSTR | PathName, | ||
IN BOOLEAN | IsDirectory | ||
) |
Definition at line 705 of file filesup.c.
NTSTATUS MapFile | ( | _In_ HANDLE | FileHandle, |
_Out_ PHANDLE | SectionHandle, | ||
_Out_ PVOID * | BaseAddress, | ||
_In_ BOOLEAN | ReadWriteAccess | ||
) |
Maps an opened file in memory.
[in] | FileHandle | A handle to an opened file to map. |
[out] | SectionHandle | A pointer to a variable receiving a handle to a section mapping the file. |
[out] | BaseAddress | A pointer to a variable receiving the address where the file is mapped. |
[in] | ReadWriteAccess | A boolean variable specifying whether to map the file for read and write access (TRUE), or read-only access (FALSE). |
Definition at line 989 of file filesup.c.
Referenced by OpenAndMapFile(), and OpenIniBootLoaderStore().
BOOLEAN NtPathToDiskPartComponents | ( | IN PCWSTR | NtPath, |
OUT PULONG | pDiskNumber, | ||
OUT PULONG | pPartNumber, | ||
OUT PCWSTR *PathComponent | OPTIONAL | ||
) |
Definition at line 771 of file filesup.c.
Referenced by CreateFreeLoaderIniForReactOSAndBootSector(), and EnumerateInstallations().
NTSTATUS OpenAndMapFile | ( | _In_opt_ HANDLE | RootDirectory, |
_In_ PCWSTR | PathNameToFile, | ||
_Out_opt_ PHANDLE | FileHandle, | ||
_Out_opt_ PULONG | FileSize, | ||
_Out_ PHANDLE | SectionHandle, | ||
_Out_ PVOID * | BaseAddress, | ||
_In_ BOOLEAN | ReadWriteAccess | ||
) |
Opens and maps a file in memory.
[in] | RootDirectory | |
[in] | PathNameToFile | Path to the file, either in absolute form, or relative to the opened root directory given by the RootDirectory handle. |
[out] | FileHandle | An optional pointer to a variable receiving a handle to the opened file. If NULL, the underlying file handle is closed. |
[out] | FileSize | An optional pointer to a variable receiving the size of the opened file. |
[out] | SectionHandle | A pointer to a variable receiving a handle to a section mapping the file. |
[out] | BaseAddress | A pointer to a variable receiving the address where the file is mapped. |
[in] | ReadWriteAccess | A boolean variable specifying whether to map the file for read and write access (TRUE), or read-only access (FALSE). |
Definition at line 887 of file filesup.c.
Referenced by CheckForValidPEAndVendor(), FindBootStore(), and InstallSetupInfFile().
NTSTATUS SetupCopyFile | ( | IN PCWSTR | SourceFileName, |
IN PCWSTR | DestinationFileName, | ||
IN BOOLEAN | FailIfExists | ||
) |
Definition at line 240 of file filesup.c.
Referenced by InstallBtrfsBootcodeToPartition(), InstallFatBootcodeToFloppy(), InstallFatBootcodeToPartition(), InstallNtfsBootcodeToPartition(), RegCleanupRegistry(), SetupCommitFileQueueW(), and SetupMoveFile().
Definition at line 84 of file filesup.c.
Referenced by PrepareCopyInfFile().
Definition at line 151 of file filesup.c.
Referenced by SetupCommitFileQueueW(), and SetupMoveFile().
Definition at line 480 of file filesup.c.
Referenced by CreateRegistryFile(), and SetupCommitFileQueueW().
Unmaps a mapped file by section.
[in] | SectionHandle | The handle to the section mapping the file. |
[in] | BaseAddress | The base address where the file is mapped. |