projects
/
reactos.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
[USETUP] Move Setup[Delete|Copy|Move]File() from usetup code into the setuplib's...
[reactos.git]
/
base
/
setup
/
lib
/
filesup.h
diff --git
a/base/setup/lib/filesup.h
b/base/setup/lib/filesup.h
index
abc1b1c
..
0b82069
100644
(file)
--- a/
base/setup/lib/filesup.h
+++ b/
base/setup/lib/filesup.h
@@
-7,14
+7,31
@@
#pragma once
#pragma once
-#if 0
+NTSTATUS
+SetupDeleteFile(
+ IN PCWSTR FileName,
+ IN BOOLEAN ForceDelete); // ForceDelete can be used to delete read-only files
-BOOLEAN
-IsValidPath(
- IN PCWSTR InstallDir);
+NTSTATUS
+SetupCopyFile(
+ IN PCWSTR SourceFileName,
+ IN PCWSTR DestinationFileName,
+ IN BOOLEAN FailIfExists);
+
+#ifndef _WINBASE_
+
+#define MOVEFILE_REPLACE_EXISTING 1
+#define MOVEFILE_COPY_ALLOWED 2
+#define MOVEFILE_WRITE_THROUGH 8
#endif
#endif
+NTSTATUS
+SetupMoveFile(
+ IN PCWSTR ExistingFileName,
+ IN PCWSTR NewFileName,
+ IN ULONG Flags);
+
NTSTATUS
ConcatPathsV(
IN OUT PWSTR PathBuffer,
NTSTATUS
ConcatPathsV(
IN OUT PWSTR PathBuffer,