ReactOS 0.4.16-dev-91-g764881a
|
Go to the source code of this file.
Macros | |
#define | NDEBUG |
#define | _SEH2_TRY |
#define | _SEH2_LEAVE goto __SEH2_FINALLY__label; |
#define | _SEH2_FINALLY __SEH2_FINALLY__label: |
#define | _SEH2_END |
NTSTATUS CombinePaths | ( | OUT PWSTR | PathBuffer, |
IN SIZE_T | cchPathSize, | ||
IN ULONG | NumberOfPathComponents, | ||
IN ... | |||
) |
Definition at line 671 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 633 of file filesup.c.
Referenced by CombinePaths().
NTSTATUS ConcatPaths | ( | IN OUT PWSTR | PathBuffer, |
IN SIZE_T | cchPathSize, | ||
IN ULONG | NumberOfPathComponents, | ||
IN ... | |||
) |
Definition at line 649 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 586 of file filesup.c.
Referenced by CombinePathsV(), and ConcatPaths().
Definition at line 747 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 735 of file filesup.c.
BOOLEAN DoesPathExist_UStr | ( | _In_opt_ HANDLE | RootDirectory, |
_In_ PCUNICODE_STRING | PathName, | ||
_In_ BOOLEAN | IsDirectory | ||
) |
Definition at line 695 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 988 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 770 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 886 of file filesup.c.
Referenced by CheckForValidPEAndVendor(), FindBootStore(), and InstallSetupInfFile().
NTSTATUS SetupCopyFile | ( | IN PCWSTR | SourceFileName, |
IN PCWSTR | DestinationFileName, | ||
IN BOOLEAN | FailIfExists | ||
) |
Definition at line 230 of file filesup.c.
Referenced by InstallBtrfsBootcodeToPartition(), InstallFatBootcodeToFloppy(), InstallFatBootcodeToPartition(), InstallNtfsBootcodeToPartition(), 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 79 of file filesup.c.
Referenced by PrepareCopyInfFile().
|
static |
Definition at line 29 of file filesup.c.
Referenced by SetupCreateDirectory().
Definition at line 141 of file filesup.c.
Referenced by SetupCommitFileQueueW(), and SetupMoveFile().
Definition at line 470 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. |