Rename SEVERITY_* constants to SYSSETUP_SEVERITY_* to avoid naming conflict
[reactos.git] / reactos / lib / syssetup / install.c
1 /*
2 * ReactOS kernel
3 * Copyright (C) 2003 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 /* $Id: install.c,v 1.5 2004/01/14 22:15:09 gvg Exp $
20 *
21 * COPYRIGHT: See COPYING in the top level directory
22 * PROJECT: ReactOS system libraries
23 * PURPOSE: System setup
24 * FILE: lib/syssetup/install.c
25 * PROGRAMER: Eric Kohl (ekohl@rz-online.de)
26 */
27
28 /* INCLUDES *****************************************************************/
29
30 #include <windows.h>
31
32 #include <syssetup.h>
33
34 #if 0
35 VOID Wizard (VOID);
36 #endif
37
38 /* userenv.dll */
39 BOOL WINAPI InitializeProfiles (VOID);
40
41 /* FUNCTIONS ****************************************************************/
42
43 DWORD STDCALL
44 InstallReactOS (HINSTANCE hInstance)
45 {
46 # if 0
47 OutputDebugStringA ("InstallReactOS() called\n");
48
49 if (!InitializeSetupActionLog (FALSE))
50 {
51 OutputDebugStringA ("InitializeSetupActionLog() failed\n");
52 }
53
54 LogItem (SYSSETUP_SEVERITY_INFORMATION,
55 L"ReactOS Setup starting");
56
57 LogItem (SYSSETUP_SEVERITY_FATAL_ERROR,
58 L"Buuuuuuaaaah!");
59
60 LogItem (SYSSETUP_SEVERITY_INFORMATION,
61 L"ReactOS Setup finished");
62
63 TerminateSetupActionLog ();
64 #endif
65
66
67 if (InitializeProfiles())
68 {
69 MessageBoxA (NULL,
70 "Profiles initialized!\nRebooting now!",
71 "ReactOS Setup",
72 MB_OK);
73 }
74 else
75 {
76 MessageBoxA (NULL,
77 "Profile initialization failed!\nRebooting now!",
78 "ReactOS Setup",
79 MB_OK);
80 }
81
82 #if 0
83 Wizard ();
84 #endif
85
86 return 0;
87 }
88
89 /*
90 * @unimplemented
91 */
92 DWORD STDCALL SetupChangeFontSize(HANDLE HWindow,
93 LPCWSTR lpszFontSize)
94 {
95 return(FALSE);
96 }