mirror of
https://github.com/reactos/reactos.git
synced 2025-02-24 17:34:57 +00:00
Add simple first stage GUI setup application.
svn path=/trunk/; revision=12315
This commit is contained in:
parent
f4e0630b1d
commit
102860f1bd
8 changed files with 151 additions and 0 deletions
7
reactos/subsys/system/reactos/.cvsignore
Normal file
7
reactos/subsys/system/reactos/.cvsignore
Normal file
|
@ -0,0 +1,7 @@
|
|||
*.a
|
||||
*.o
|
||||
*.d
|
||||
*.exe
|
||||
*.coff
|
||||
*.sym
|
||||
*.map
|
14
reactos/subsys/system/reactos/De.rc
Normal file
14
reactos/subsys/system/reactos/De.rc
Normal file
|
@ -0,0 +1,14 @@
|
|||
/* $Id: De.rc,v 1.1 2004/12/24 17:16:43 ekohl Exp $ */
|
||||
|
||||
LANGUAGE LANG_GERMAN, SUBLANG_GERMAN
|
||||
|
||||
/* String Tables */
|
||||
|
||||
STRINGTABLE DISCARDABLE
|
||||
BEGIN
|
||||
IDS_CAPTION "ReactOS Setup"
|
||||
IDS_TEXT "ReactOS kann nicht direct von dieser CD installiert werden!\n\n"\
|
||||
"Bitte starten Sie Ihren Computer mit dieser CD um ReactOS zu installieren."
|
||||
END
|
||||
|
||||
/* EOF */
|
13
reactos/subsys/system/reactos/En.rc
Normal file
13
reactos/subsys/system/reactos/En.rc
Normal file
|
@ -0,0 +1,13 @@
|
|||
/* $Id: En.rc,v 1.1 2004/12/24 17:16:43 ekohl Exp $ */
|
||||
|
||||
LANGUAGE LANG_ENGLISH, SUBLANG_ENGLISH_US
|
||||
|
||||
/* String Tables */
|
||||
STRINGTABLE DISCARDABLE
|
||||
BEGIN
|
||||
IDS_CAPTION "ReactOS Setup"
|
||||
IDS_TEXT "You cannot install ReactOS directly from this CD!\n\n"\
|
||||
"Please restart your computer from this CD in order to install ReactOS."
|
||||
END
|
||||
|
||||
/* EOF */
|
19
reactos/subsys/system/reactos/Makefile
Normal file
19
reactos/subsys/system/reactos/Makefile
Normal file
|
@ -0,0 +1,19 @@
|
|||
# $Id: Makefile,v 1.1 2004/12/24 17:16:43 ekohl Exp $
|
||||
|
||||
PATH_TO_TOP = ../../..
|
||||
|
||||
TARGET_TYPE = program
|
||||
|
||||
TARGET_APPTYPE = windows
|
||||
|
||||
TARGET_NAME = reactos
|
||||
|
||||
TARGET_CFLAGS = -Wall -Werror -D_WIN32_IE=0x0501 -D_WIN32_WINNT=0x0501 -D__USE_W32API
|
||||
|
||||
TARGET_SDKLIBS = kernel32.a gdi32.a user32.a
|
||||
|
||||
TARGET_OBJECTS = reactos.o
|
||||
|
||||
include $(PATH_TO_TOP)/rules.mak
|
||||
|
||||
include $(TOOLS_PATH)/helper.mk
|
71
reactos/subsys/system/reactos/reactos.c
Normal file
71
reactos/subsys/system/reactos/reactos.c
Normal file
|
@ -0,0 +1,71 @@
|
|||
/*
|
||||
* ReactOS applications
|
||||
* Copyright (C) 2004 ReactOS Team
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
* the Free Software Foundation; either version 2 of the License, or
|
||||
* (at your option) any later version.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this program; if not, write to the Free Software
|
||||
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||
*/
|
||||
/* $Id: reactos.c,v 1.1 2004/12/24 17:16:43 ekohl Exp $
|
||||
*
|
||||
* COPYRIGHT: See COPYING in the top level directory
|
||||
* PROJECT: ReactOS GUI first stage setup application
|
||||
* FILE: subsys/system/reactos/reactos.c
|
||||
* PROGRAMMERS: Eric Kohl
|
||||
*/
|
||||
|
||||
#include <windows.h>
|
||||
#include <tchar.h>
|
||||
|
||||
#include "resource.h"
|
||||
|
||||
|
||||
/* GLOBALS ******************************************************************/
|
||||
|
||||
TCHAR szCaption[256];
|
||||
TCHAR szText[256];
|
||||
|
||||
HINSTANCE hInstance;
|
||||
|
||||
|
||||
/* FUNCTIONS ****************************************************************/
|
||||
|
||||
int WINAPI
|
||||
WinMain(HINSTANCE hInst,
|
||||
HINSTANCE hPrevInstance,
|
||||
LPSTR lpszCmdLine,
|
||||
int nCmdShow)
|
||||
{
|
||||
hInstance = hInst;
|
||||
|
||||
if (!LoadString(hInstance,
|
||||
IDS_CAPTION,
|
||||
szCaption,
|
||||
256))
|
||||
return 0;
|
||||
|
||||
if (!LoadString(hInstance,
|
||||
IDS_TEXT,
|
||||
szText,
|
||||
256))
|
||||
return 0;
|
||||
|
||||
MessageBox(NULL,
|
||||
szText,
|
||||
szCaption,
|
||||
MB_OK | MB_ICONINFORMATION);
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
/* EOF */
|
22
reactos/subsys/system/reactos/reactos.rc
Normal file
22
reactos/subsys/system/reactos/reactos.rc
Normal file
|
@ -0,0 +1,22 @@
|
|||
/* $Id: reactos.rc,v 1.1 2004/12/24 17:16:43 ekohl Exp $ */
|
||||
|
||||
#include <defines.h>
|
||||
#include "resource.h"
|
||||
|
||||
#define REACTOS_STR_FILE_DESCRIPTION "ReactOS Setup\0"
|
||||
#define REACTOS_STR_INTERNAL_NAME "reactos\0"
|
||||
#define REACTOS_STR_ORIGINAL_FILENAME "reactos.exe\0"
|
||||
#include <reactos/version.rc>
|
||||
|
||||
|
||||
LANGUAGE LANG_NEUTRAL, SUBLANG_NEUTRAL
|
||||
|
||||
/* Icons */
|
||||
IDI_MAIN ICON "res/reactos.ico"
|
||||
|
||||
|
||||
/* Language-specific resources */
|
||||
#include "De.rc"
|
||||
#include "En.rc"
|
||||
|
||||
/* EOF */
|
BIN
reactos/subsys/system/reactos/res/reactos.ico
Normal file
BIN
reactos/subsys/system/reactos/res/reactos.ico
Normal file
Binary file not shown.
After Width: | Height: | Size: 25 KiB |
5
reactos/subsys/system/reactos/resource.h
Normal file
5
reactos/subsys/system/reactos/resource.h
Normal file
|
@ -0,0 +1,5 @@
|
|||
|
||||
#define IDS_CAPTION 1000
|
||||
#define IDS_TEXT 1001
|
||||
|
||||
#define IDI_MAIN 3000
|
Loading…
Reference in a new issue