28 #define MOVEFILE_REPLACE_EXISTING 1 29 #define MOVEFILE_COPY_ALLOWED 2 30 #define MOVEFILE_WRITE_THROUGH 8 44 IN ULONG NumberOfPathComponents,
51 IN ULONG NumberOfPathComponents,
58 IN ULONG NumberOfPathComponents,
65 IN ULONG NumberOfPathComponents,
74 #define DoesDirExist(RootDirectory, DirName) \ 75 DoesPathExist((RootDirectory), (DirName), TRUE) 77 #define DoesFileExist(RootDirectory, FileName) \ 78 DoesPathExist((RootDirectory), (FileName), FALSE) 108 #define UnMapAndCloseFile(FileHandle, SectionHandle, BaseAddress) \ 110 UnMapFile((SectionHandle), (BaseAddress)); \ 111 NtClose(FileHandle); \
NTSTATUS SetupCopyFile(IN PCWSTR SourceFileName, IN PCWSTR DestinationFileName, IN BOOLEAN FailIfExists)
NTSTATUS ConcatPathsV(IN OUT PWSTR PathBuffer, IN SIZE_T cchPathSize, IN ULONG NumberOfPathComponents, IN va_list PathComponentsList)
NTSTATUS ConcatPaths(IN OUT PWSTR PathBuffer, IN SIZE_T cchPathSize, IN ULONG NumberOfPathComponents, IN ...)
BOOLEAN DoesFileExist_2(IN PCWSTR PathName OPTIONAL, IN PCWSTR FileName)
NTSTATUS SetupDeleteFile(IN PCWSTR FileName, IN BOOLEAN ForceDelete)
BOOLEAN UnMapFile(IN HANDLE SectionHandle, IN PVOID BaseAddress)
NTSTATUS SetupCreateDirectory(IN PCWSTR DirectoryName)
_Must_inspect_result_ _In_ ULONG Flags
BOOLEAN NtPathToDiskPartComponents(IN PCWSTR NtPath, OUT PULONG pDiskNumber, OUT PULONG pPartNumber, OUT PCWSTR *PathComponent OPTIONAL)
NTSTATUS SetupMoveFile(IN PCWSTR ExistingFileName, IN PCWSTR NewFileName, IN ULONG Flags)
_In_ HANDLE _Outptr_result_bytebuffer_ ViewSize PVOID * BaseAddress
_Must_inspect_result_ _In_ PFLT_INSTANCE _Out_ PBOOLEAN IsDirectory
_Must_inspect_result_ _Out_ PLARGE_INTEGER FileSize
NTSTATUS CombinePathsV(OUT PWSTR PathBuffer, IN SIZE_T cchPathSize, IN ULONG NumberOfPathComponents, IN va_list PathComponentsList)
BOOLEAN DoesPathExist(IN HANDLE RootDirectory OPTIONAL, IN PCWSTR PathName, IN BOOLEAN IsDirectory)
NTSTATUS CombinePaths(OUT PWSTR PathBuffer, IN SIZE_T cchPathSize, IN ULONG NumberOfPathComponents, IN ...)
NTSTATUS OpenAndMapFile(IN HANDLE RootDirectory OPTIONAL, IN PCWSTR PathNameToFile, OUT PHANDLE FileHandle, OUT PHANDLE SectionHandle, OUT PVOID *BaseAddress, OUT PULONG FileSize OPTIONAL, IN BOOLEAN ReadWriteAccess)
PULONG MinorVersion OPTIONAL