[USETUP] Moving around some code.
[reactos.git] / base / setup / usetup / filesup.h
1 /*
2 * COPYRIGHT: See COPYING in the top level directory
3 * PROJECT: ReactOS text-mode setup
4 * FILE: base/setup/usetup/filesup.h
5 * PURPOSE: File support functions
6 * PROGRAMMER:
7 */
8
9 #pragma once
10
11 NTSTATUS
12 SetupCreateDirectory(
13 PWCHAR DirectoryName);
14
15 NTSTATUS
16 SetupDeleteFile(
17 IN PCWSTR FileName,
18 IN BOOLEAN ForceDelete); // ForceDelete can be used to delete read-only files
19
20 NTSTATUS
21 SetupCopyFile(
22 IN PCWSTR SourceFileName,
23 IN PCWSTR DestinationFileName,
24 IN BOOLEAN FailIfExists);
25
26 #ifndef _WINBASE_
27
28 #define MOVEFILE_REPLACE_EXISTING 1
29 #define MOVEFILE_COPY_ALLOWED 2
30 #define MOVEFILE_WRITE_THROUGH 8
31
32 #endif
33
34 // ACHTUNG! HAXX FIXME!!
35 #define _SEH2_TRY
36 #define _SEH2_LEAVE goto __SEH2_FINALLY__label;
37 #define _SEH2_FINALLY __SEH2_FINALLY__label:
38 #define _SEH2_END
39
40
41 NTSTATUS
42 SetupMoveFile(
43 IN PCWSTR ExistingFileName,
44 IN PCWSTR NewFileName,
45 IN ULONG Flags);
46
47 NTSTATUS
48 SetupExtractFile(
49 PWCHAR CabinetFileName,
50 PWCHAR SourceFileName,
51 PWCHAR DestinationFileName);
52
53
54 BOOLEAN
55 IsValidPath(
56 IN PCWSTR InstallDir);
57
58 /* EOF */