Sync to trunk head(r38096)
[reactos.git] / reactos / base / setup / usetup / usetup.h
1 /*
2 * ReactOS kernel
3 * Copyright (C) 2002 ReactOS Team
4 *
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.
9 *
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.
14 *
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.
18 */
19 /*
20 * COPYRIGHT: See COPYING in the top level directory
21 * PROJECT: ReactOS text-mode setup
22 * FILE: subsys/system/usetup/usetup.h
23 * PURPOSE: Text-mode setup
24 * PROGRAMMER: Eric Kohl
25 */
26
27 #ifndef __USETUP_H__
28 #define __USETUP_H__
29
30 /* C Headers */
31 #include <ctype.h>
32 #include <stdio.h>
33 #include <stddef.h>
34
35 /* PSDK/NDK */
36 #define WIN32_NO_STATUS
37 #include <windows.h>
38 #define NTOS_MODE_USER
39 #include <ndk/ntndk.h>
40 #include <fmifs/fmifs.h>
41
42 /* VFAT */
43 #include <fslib/vfatlib.h>
44
45 /* DDK Disk Headers */
46 #include <ntddscsi.h>
47
48 /* Helper Header */
49 #include <reactos/helper.h>
50
51 /* ReactOS Version */
52 #include <reactos/buildno.h>
53
54 /* Internal Headers */
55 #include "interface/consup.h"
56 #include "partlist.h"
57 #include "infros.h"
58 #include "inffile.h"
59 #include "inicache.h"
60 #include "progress.h"
61 #ifdef __REACTOS__
62 #include "filequeue.h"
63 #endif
64 #include "bootsup.h"
65 #include "registry.h"
66 #include "fslist.h"
67 #include "chkdsk.h"
68 #include "format.h"
69 #include "cabinet.h"
70 #include "filesup.h"
71 #include "drivesup.h"
72 #include "genlist.h"
73 #include "settings.h"
74 #include "host.h"
75 #include "mui.h"
76 #include "errorcode.h"
77
78 extern HANDLE ProcessHeap;
79 extern UNICODE_STRING SourceRootPath;
80 extern UNICODE_STRING SourceRootDir;
81 extern UNICODE_STRING SourcePath;
82 extern BOOLEAN IsUnattendedSetup;
83 extern PWCHAR SelectedLanguageId;
84
85 typedef enum _PAGE_NUMBER
86 {
87 START_PAGE,
88 LANGUAGE_PAGE,
89 INTRO_PAGE,
90 LICENSE_PAGE,
91 INSTALL_INTRO_PAGE,
92
93 // SCSI_CONTROLLER_PAGE,
94
95 DEVICE_SETTINGS_PAGE,
96 COMPUTER_SETTINGS_PAGE,
97 DISPLAY_SETTINGS_PAGE,
98 KEYBOARD_SETTINGS_PAGE,
99 LAYOUT_SETTINGS_PAGE,
100
101 SELECT_PARTITION_PAGE,
102 CREATE_PARTITION_PAGE,
103 DELETE_PARTITION_PAGE,
104
105 SELECT_FILE_SYSTEM_PAGE,
106 FORMAT_PARTITION_PAGE,
107 CHECK_FILE_SYSTEM_PAGE,
108
109 PREPARE_COPY_PAGE,
110 INSTALL_DIRECTORY_PAGE,
111 FILE_COPY_PAGE,
112 REGISTRY_PAGE,
113 BOOT_LOADER_PAGE,
114 BOOT_LOADER_FLOPPY_PAGE,
115 BOOT_LOADER_HARDDISK_PAGE,
116
117 REPAIR_INTRO_PAGE,
118
119 SUCCESS_PAGE,
120 QUIT_PAGE,
121 FLUSH_PAGE,
122 REBOOT_PAGE, /* virtual page */
123 } PAGE_NUMBER, *PPAGE_NUMBER;
124
125 #define POPUP_WAIT_NONE 0
126 #define POPUP_WAIT_ANY_KEY 1
127 #define POPUP_WAIT_ENTER 2
128
129
130 #endif /* __USETUP_H__*/
131
132 /* EOF */