xref: /reactos/base/setup/usetup/usetup.h (revision a7a7e6a0)
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 along
16  *  with this program; if not, write to the Free Software Foundation, Inc.,
17  *  51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
18  */
19 /*
20  * COPYRIGHT:       See COPYING in the top level directory
21  * PROJECT:         ReactOS text-mode setup
22  * FILE:            base/setup/usetup/usetup.h
23  * PURPOSE:         Text-mode setup
24  * PROGRAMMER:
25  */
26 
27 #ifndef _USETUP_PCH_
28 #define _USETUP_PCH_
29 
30 /* C Headers */
31 #include <stdio.h>
32 #include <stdlib.h>
33 
34 /* PSDK/NDK */
35 #define WIN32_NO_STATUS
36 #include <windef.h>
37 #include <winbase.h>
38 #include <winreg.h>
39 #include <winuser.h>
40 #include <wincon.h>
41 
42 #define NTOS_MODE_USER
43 #include <ndk/cmfuncs.h>
44 #include <ndk/exfuncs.h>
45 #include <ndk/iofuncs.h>
46 #include <ndk/kefuncs.h>
47 #include <ndk/mmfuncs.h>
48 #include <ndk/obfuncs.h>
49 #include <ndk/psfuncs.h>
50 #include <ndk/rtlfuncs.h>
51 #include <ndk/setypes.h>
52 
53 #include <ntstrsafe.h>
54 
55 
56 /* Setup library headers */
57 #include <reactos/rosioctl.h>
58 #include <../lib/setuplib.h>
59 
60 /* Internal Headers */
61 #include "consup.h"
62 #include "progress.h"
63 #include "fslist.h"
64 #include "partlist.h"
65 #include "genlist.h"
66 #include "mui.h"
67 
68 #include "spapisup/inffile.h"
69 #include "spapisup/cabinet.h"
70 
71 
72 extern HANDLE ProcessHeap;
73 extern BOOLEAN IsUnattendedSetup;
74 extern PCWSTR SelectedLanguageId;
75 
76 typedef enum _PAGE_NUMBER
77 {
78     SETUP_INIT_PAGE,    /* Virtual page */
79     LANGUAGE_PAGE,
80     WELCOME_PAGE,
81     LICENSE_PAGE,
82     INSTALL_INTRO_PAGE,
83 
84 //    SCSI_CONTROLLER_PAGE,
85 //    OEM_DRIVER_PAGE,
86 
87     REPAIR_INTRO_PAGE,
88     UPGRADE_REPAIR_PAGE,
89 
90     DEVICE_SETTINGS_PAGE,
91     COMPUTER_SETTINGS_PAGE,
92     DISPLAY_SETTINGS_PAGE,
93     KEYBOARD_SETTINGS_PAGE,
94     LAYOUT_SETTINGS_PAGE,
95 
96     SELECT_PARTITION_PAGE,
97     CREATE_PARTITION_PAGE,
98     CHANGE_SYSTEM_PARTITION,
99     CONFIRM_DELETE_SYSTEM_PARTITION_PAGE,
100     DELETE_PARTITION_PAGE,
101 
102     START_PARTITION_OPERATIONS_PAGE,    /* Virtual page */
103     SELECT_FILE_SYSTEM_PAGE,    /* Virtual page */
104     FORMAT_PARTITION_PAGE,      /* Virtual page */
105     CHECK_FILE_SYSTEM_PAGE,
106     BOOTLOADER_SELECT_PAGE,
107 
108     PREPARE_COPY_PAGE,
109     INSTALL_DIRECTORY_PAGE,
110     FILE_COPY_PAGE,
111     REGISTRY_PAGE,
112     BOOTLOADER_INSTALL_PAGE,
113     BOOTLOADER_REMOVABLE_DISK_PAGE,
114 
115     SUCCESS_PAGE,
116     QUIT_PAGE,
117     FLUSH_PAGE,
118     REBOOT_PAGE,    /* Virtual page */
119     RECOVERY_PAGE,  /* Virtual page */
120 } PAGE_NUMBER, *PPAGE_NUMBER;
121 
122 #define POPUP_WAIT_NONE    0
123 #define POPUP_WAIT_ANY_KEY 1
124 #define POPUP_WAIT_ENTER   2
125 
126 VOID
127 PopupError(IN PCCH Text,
128            IN PCCH Status,
129            IN PINPUT_RECORD Ir,
130            IN ULONG WaitEvent);
131 
132 #endif /* _USETUP_PCH_ */
133