3 * Copyright (C) 2002 ReactOS Team
5 * This program is free software; you can redistribute it and/or modify
6 * it under the terms of the GNU General Public License as published by
7 * the Free Software Foundation; either version 2 of the License, or
8 * (at your option) any later version.
10 * This program is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 * GNU General Public License for more details.
15 * You should have received a copy of the GNU General Public License
16 * along with this program; if not, write to the Free Software
17 * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
20 * COPYRIGHT: See COPYING in the top level directory
21 * PROJECT: ReactOS text-mode setup
22 * FILE: subsys/system/usetup/filequeue.h
23 * PURPOSE: File queue functions
24 * PROGRAMMER: Eric Kohl
27 #ifndef __FILEQUEUE_H__
28 #define __FILEQUEUE_H__
31 #define SPFILENOTIFY_STARTQUEUE 0x1
32 #define SPFILENOTIFY_ENDQUEUE 0x2
33 #define SPFILENOTIFY_STARTSUBQUEUE 0x3
34 #define SPFILENOTIFY_ENDSUBQUEUE 0x4
36 #define SPFILENOTIFY_STARTCOPY 0xb
37 #define SPFILENOTIFY_ENDCOPY 0xc
38 #define SPFILENOTIFY_COPYERROR 0xd
40 #define FILEOP_COPY 0x0
41 #define FILEOP_RENAME 0x1
42 #define FILEOP_DELETE 0x2
43 #define FILEOP_BACKUP 0x3
45 #define FILEOP_ABORT 0x0
46 #define FILEOP_DOIT 0x1
47 #define FILEOP_SKIP 0x2
48 #define FILEOP_RETRY FILEOP_DOIT
49 #define FILEOP_NEWPATH 0x4
52 /* TYPES ********************************************************************/
54 typedef PVOID HSPFILEQ;
56 typedef ULONG (*PSP_FILE_CALLBACK)(PVOID Context,
62 /* FUNCTIONS ****************************************************************/
65 SetupOpenFileQueue(VOID);
68 SetupCloseFileQueue(HSPFILEQ QueueHandle);
71 SetupQueueCopy(HSPFILEQ QueueHandle,
73 PCWSTR SourceRootPath,
75 PCWSTR SourceFilename,
76 PCWSTR TargetDirectory,
77 PCWSTR TargetFilename);
80 SetupCommitFileQueue(HSPFILEQ QueueHandle,
81 PCWSTR TargetRootPath,
83 PSP_FILE_CALLBACK MsgHandler,
86 #endif /* __FILEQUEUE_H__ */