mirror of
https://github.com/reactos/reactos.git
synced 2024-07-31 08:39:05 +00:00
Create a place for some R&D work about booting Windows from inside of FreeLdr
svn path=/trunk/; revision=24046
This commit is contained in:
parent
faa5f58b84
commit
5e7a9fc74e
|
@ -124,6 +124,22 @@ NoGui:
|
||||||
{
|
{
|
||||||
LoadAndBootReactOS(OperatingSystemSectionNames[SelectedOperatingSystem]);
|
LoadAndBootReactOS(OperatingSystemSectionNames[SelectedOperatingSystem]);
|
||||||
}
|
}
|
||||||
|
else if (_stricmp(SettingValue, "WindowsNT40") == 0)
|
||||||
|
{
|
||||||
|
LoadAndBootWindows(OperatingSystemSectionNames[SelectedOperatingSystem], _WIN32_WINNT_NT4);
|
||||||
|
}
|
||||||
|
else if (_stricmp(SettingValue, "Windows2000") == 0)
|
||||||
|
{
|
||||||
|
LoadAndBootWindows(OperatingSystemSectionNames[SelectedOperatingSystem], _WIN32_WINNT_WIN2K);
|
||||||
|
}
|
||||||
|
else if (_stricmp(SettingValue, "WindowsXP") == 0)
|
||||||
|
{
|
||||||
|
LoadAndBootWindows(OperatingSystemSectionNames[SelectedOperatingSystem], _WIN32_WINNT_WINXP);
|
||||||
|
}
|
||||||
|
else if (_stricmp(SettingValue, "Windows2003") == 0)
|
||||||
|
{
|
||||||
|
LoadAndBootWindows(OperatingSystemSectionNames[SelectedOperatingSystem], _WIN32_WINNT_WS03);
|
||||||
|
}
|
||||||
else if (_stricmp(SettingValue, "Linux") == 0)
|
else if (_stricmp(SettingValue, "Linux") == 0)
|
||||||
{
|
{
|
||||||
LoadAndBootLinux(OperatingSystemSectionNames[SelectedOperatingSystem], OperatingSystemDisplayNames[SelectedOperatingSystem]);
|
LoadAndBootLinux(OperatingSystemSectionNames[SelectedOperatingSystem], OperatingSystemDisplayNames[SelectedOperatingSystem]);
|
||||||
|
|
|
@ -66,6 +66,9 @@
|
||||||
<file>pixel.c</file>
|
<file>pixel.c</file>
|
||||||
<file>video.c</file>
|
<file>video.c</file>
|
||||||
</directory>
|
</directory>
|
||||||
|
<directory name="windows">
|
||||||
|
<file>winldr.c</file>
|
||||||
|
</directory>
|
||||||
<file>freeldr.c</file>
|
<file>freeldr.c</file>
|
||||||
<file>debug.c</file>
|
<file>debug.c</file>
|
||||||
<file>version.c</file>
|
<file>version.c</file>
|
||||||
|
|
|
@ -45,6 +45,7 @@
|
||||||
#include <portio.h>
|
#include <portio.h>
|
||||||
#include <reactos.h>
|
#include <reactos.h>
|
||||||
#include <registry.h>
|
#include <registry.h>
|
||||||
|
#include <winldr.h>
|
||||||
#include <fsrec.h>
|
#include <fsrec.h>
|
||||||
/* file system headers */
|
/* file system headers */
|
||||||
#include <fs/ext2.h>
|
#include <fs/ext2.h>
|
||||||
|
|
36
reactos/boot/freeldr/freeldr/windows/winldr.c
Normal file
36
reactos/boot/freeldr/freeldr/windows/winldr.c
Normal file
|
@ -0,0 +1,36 @@
|
||||||
|
/*
|
||||||
|
* FreeLoader
|
||||||
|
*
|
||||||
|
* Copyright (C) 1998-2003 Brian Palmer <brianp@sginet.com>
|
||||||
|
* Copyright (C) 2006 Aleksey Bragin <aleksey@reactos.org>
|
||||||
|
*
|
||||||
|
* 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.
|
||||||
|
*/
|
||||||
|
|
||||||
|
#include <freeldr.h>
|
||||||
|
|
||||||
|
#define NDEBUG
|
||||||
|
#include <debug.h>
|
||||||
|
|
||||||
|
VOID
|
||||||
|
LoadAndBootWindows(PCSTR OperatingSystemName, WORD OperatingSystemVersion)
|
||||||
|
{
|
||||||
|
CHAR MsgBuffer[256];
|
||||||
|
|
||||||
|
sprintf(MsgBuffer,"Booting Microsoft(R) Windows(R) OS version '%04x' is not implemented yet", OperatingSystemVersion);
|
||||||
|
UiMessageBox(MsgBuffer);
|
||||||
|
|
||||||
|
return;
|
||||||
|
}
|
Loading…
Reference in a new issue