mirror of
https://github.com/reactos/reactos.git
synced 2026-05-25 00:30:10 +08:00
125 lines
3.3 KiB
C
125 lines
3.3 KiB
C
/*
|
|
* ReactOS applications
|
|
* Copyright (C) 2004-2008 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.,
|
|
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
|
*/
|
|
/*
|
|
* COPYRIGHT: See COPYING in the top level directory
|
|
* PROJECT: ReactOS GUI first stage setup application
|
|
* FILE: base/setup/reactos/reactos.c
|
|
* PROGRAMMERS: Eric Kohl
|
|
* Matthias Kupfer
|
|
* Dmitry Chapyshev (dmitry@reactos.org)
|
|
*/
|
|
|
|
#ifndef _REACTOS_PCH_
|
|
#define _REACTOS_PCH_
|
|
|
|
#include <stdarg.h>
|
|
#include <windef.h>
|
|
#include <winbase.h>
|
|
#include <winreg.h>
|
|
#include <wingdi.h>
|
|
#include <winuser.h>
|
|
#include <tchar.h>
|
|
#include <setupapi.h>
|
|
#include <devguid.h>
|
|
#include <wine/unicode.h>
|
|
|
|
|
|
typedef struct _LANG
|
|
{
|
|
TCHAR LangId[9];
|
|
TCHAR LangName[128];
|
|
} LANG, *PLANG;
|
|
|
|
typedef struct _KBLAYOUT
|
|
{
|
|
TCHAR LayoutId[9];
|
|
TCHAR LayoutName[128];
|
|
TCHAR DllName[128];
|
|
} KBLAYOUT, *PKBLAYOUT;
|
|
|
|
|
|
// generic entries with simple 1:1 mapping
|
|
typedef struct _GENENTRY
|
|
{
|
|
TCHAR Id[24];
|
|
TCHAR Value[128];
|
|
} GENENTRY, *PGENENTRY;
|
|
|
|
typedef struct _SETUPDATA
|
|
{
|
|
/* General */
|
|
HINSTANCE hInstance;
|
|
BOOL bUnattend;
|
|
|
|
HFONT hTitleFont;
|
|
|
|
TCHAR szAbortMessage[512];
|
|
TCHAR szAbortTitle[64];
|
|
|
|
// Settings
|
|
LONG DestDiskNumber; // physical disk
|
|
LONG DestPartNumber; // partition on disk
|
|
LONG DestPartSize; // if partition doesn't exist, size of partition
|
|
LONG FSType; // file system type on partition
|
|
LONG MBRInstallType; // install bootloader
|
|
LONG FormatPart; // type of format the partition
|
|
LONG SelectedLangId; // selected language (table index)
|
|
LONG SelectedKBLayout; // selected keyboard layout (table index)
|
|
TCHAR InstallDir[MAX_PATH]; // installation directory on hdd
|
|
LONG SelectedComputer; // selected computer type (table index)
|
|
LONG SelectedDisplay; // selected display type (table index)
|
|
LONG SelectedKeyboard; // selected keyboard type (table index)
|
|
BOOLEAN RepairUpdateFlag; // flag for update/repair an installed reactos
|
|
// txtsetup.sif data
|
|
LONG DefaultLang; // default language (table index)
|
|
PLANG pLanguages;
|
|
LONG LangCount;
|
|
LONG DefaultKBLayout; // default keyboard layout (table index)
|
|
PKBLAYOUT pKbLayouts;
|
|
LONG KbLayoutCount;
|
|
PGENENTRY pComputers;
|
|
LONG CompCount;
|
|
PGENENTRY pDisplays;
|
|
LONG DispCount;
|
|
PGENENTRY pKeyboards;
|
|
LONG KeybCount;
|
|
} SETUPDATA, *PSETUPDATA;
|
|
|
|
typedef struct _IMGINFO
|
|
{
|
|
HBITMAP hBitmap;
|
|
INT cxSource;
|
|
INT cySource;
|
|
} IMGINFO, *PIMGINFO;
|
|
|
|
|
|
|
|
/* drivepage.c */
|
|
INT_PTR
|
|
CALLBACK
|
|
DriveDlgProc(
|
|
HWND hwndDlg,
|
|
UINT uMsg,
|
|
WPARAM wParam,
|
|
LPARAM lParam);
|
|
|
|
#endif /* _REACTOS_PCH_ */
|
|
|
|
/* EOP */
|