3 * Copyright (C) 2004-2008 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 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.
20 * COPYRIGHT: See COPYING in the top level directory
21 * PROJECT: ReactOS GUI first stage setup application
22 * FILE: base/setup/reactos/reactos.c
23 * PROGRAMMERS: Matthias Kupfer
24 * Dmitry Chapyshev (dmitry@reactos.org)
36 #define WIN32_NO_STATUS
44 /**/#include <setupapi.h>/**/
46 // #include <wine/unicode.h>
48 #define NTOS_MODE_USER
49 #include <ndk/cmtypes.h> // For CM_DISK stuff
50 #include <ndk/iofuncs.h> // For NtCreate/OpenFile
51 #include <ndk/rtlfuncs.h>
54 /* Setup library headers */
55 // #include <reactos/rosioctl.h>
56 #include <../lib/setuplib.h>
57 // #include "errorcode.h"
66 typedef struct _KBLAYOUT
69 TCHAR LayoutName
[128];
71 } KBLAYOUT
, *PKBLAYOUT
;
74 // generic entries with simple 1:1 mapping
75 typedef struct _GENENTRY
79 } GENENTRY
, *PGENENTRY
;
81 typedef struct _SETUPDATA
89 TCHAR szAbortMessage
[512];
90 TCHAR szAbortTitle
[64];
92 USETUP_DATA USetupData
;
96 LONG DestPartSize
; // if partition doesn't exist, size of partition
97 LONG FSType
; // file system type on partition
98 LONG FormatPart
; // type of format the partition
100 LONG SelectedLangId
; // selected language (table index)
101 LONG SelectedKBLayout
; // selected keyboard layout (table index)
102 LONG SelectedComputer
; // selected computer type (table index)
103 LONG SelectedDisplay
; // selected display type (table index)
104 LONG SelectedKeyboard
; // selected keyboard type (table index)
105 BOOLEAN RepairUpdateFlag
; // flag for update/repair an installed reactos
109 LONG DefaultLang
; // default language (table index)
112 LONG DefaultKBLayout
; // default keyboard layout (table index)
113 PKBLAYOUT pKbLayouts
;
115 PGENENTRY pComputers
;
119 PGENENTRY pKeyboards
;
121 } SETUPDATA
, *PSETUPDATA
;
123 extern HANDLE ProcessHeap
;
124 extern BOOLEAN IsUnattendedSetup
;
126 typedef struct _IMGINFO
131 } IMGINFO
, *PIMGINFO
;
136 * Attempts to convert a pure NT file path into a corresponding Win32 path.
137 * Adapted from GetInstallSourceWin32() in dll/win32/syssetup/wizard.c
140 ConvertNtPathToWin32Path(
143 IN PCWSTR pwszNTPath
);
155 #endif /* _REACTOS_PCH_ */