ReactOS 0.4.16-dev-319-g6cf4263
|
Go to the source code of this file.
Macros | |
#define | NDEBUG |
NTSTATUS CombinePaths | ( | OUT PWSTR | PathBuffer, |
IN SIZE_T | cchPathSize, | ||
IN ULONG | NumberOfPathComponents, | ||
IN ... | |||
) |
Definition at line 664 of file filesup.c.
Referenced by AddSectionToCopyQueue(), AddSectionToCopyQueueCab(), BuildFullDirectoryPath(), CheckUnattendedSetup(), ConnectRegistry(), CreateRegistryFile(), DoesFileExist_2(), ImportRegistryFile(), InitDestinationPaths(), InstallBootloaderFiles(), InstallBootManagerAndBootEntriesWorker(), InstallBtrfsBootcodeToPartition(), 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 626 of file filesup.c.
Referenced by CombinePaths().
NTSTATUS ConcatPaths | ( | IN OUT PWSTR | PathBuffer, |
IN SIZE_T | cchPathSize, | ||
IN ULONG | NumberOfPathComponents, | ||
IN ... | |||
) |
Definition at line 642 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 579 of file filesup.c.
Referenced by CombinePathsV(), and ConcatPaths().
Definition at line 740 of file filesup.c.
Referenced by InstallBtrfsBootcodeToPartition(), InstallFatBootcodeToPartition(), and InstallNtfsBootcodeToPartition().
BOOLEAN DoesPathExist | ( | _In_opt_ HANDLE | RootDirectory, |
_In_ PCWSTR | PathName, | ||
_In_ BOOLEAN | IsDirectory | ||
) |
Definition at line 728 of file filesup.c.
BOOLEAN DoesPathExist_UStr | ( | _In_opt_ HANDLE | RootDirectory, |
_In_ PCUNICODE_STRING | PathName, | ||
_In_ BOOLEAN | IsDirectory | ||
) |
Definition at line 688 of file filesup.c.
Referenced by DoesPathExist(), and SetupCreateDirectory().
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 981 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 763 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 879 of file filesup.c.
Referenced by CheckForValidPEAndVendor(), FindBootStore(), and InstallSetupInfFile().
NTSTATUS SetupCopyFile | ( | IN PCWSTR | SourceFileName, |
IN PCWSTR | DestinationFileName, | ||
IN BOOLEAN | FailIfExists | ||
) |
Definition at line 223 of file filesup.c.
Referenced by InstallBootloaderFiles(), RegCleanupRegistry(), SetupCommitFileQueueW(), and SetupMoveFile().
Create a new directory, specified by the given path. Any intermediate non-existing directory is created as well.
[in] | PathName | The path of the directory to be created. |
Definition at line 72 of file filesup.c.
Referenced by PrepareCopyInfFile().
|
static |
Definition at line 22 of file filesup.c.
Referenced by SetupCreateDirectory().
Definition at line 134 of file filesup.c.
Referenced by SetupCommitFileQueueW(), and SetupMoveFile().
Definition at line 463 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. |