mirror of
https://github.com/reactos/reactos.git
synced 2024-12-28 18:15:11 +00:00
Build usetup with NDK
svn path=/trunk/; revision=16195
This commit is contained in:
parent
2e4d4d6dfd
commit
ce068ea890
22 changed files with 57 additions and 132 deletions
|
@ -24,14 +24,7 @@
|
|||
* PROGRAMMER: Eric Kohl
|
||||
*/
|
||||
|
||||
#include "precomp.h"
|
||||
#include <ntdll/rtl.h>
|
||||
#include <ddk/ntdddisk.h> /* FIXME: NDK */
|
||||
|
||||
#include "usetup.h"
|
||||
#include "inicache.h"
|
||||
#include "filesup.h"
|
||||
#include "bootsup.h"
|
||||
|
||||
#define NDEBUG
|
||||
#include <debug.h>
|
||||
|
|
|
@ -8,12 +8,8 @@
|
|||
* CSH 15/08-2003 Created
|
||||
*/
|
||||
|
||||
#include <ntos.h>
|
||||
#include <stdio.h>
|
||||
#include <string.h>
|
||||
#include <zlib.h>
|
||||
#include "cabinet.h"
|
||||
#include "usetup.h"
|
||||
#include <zlib.h>
|
||||
|
||||
#define NDEBUG
|
||||
#include <debug.h>
|
||||
|
|
|
@ -26,13 +26,7 @@
|
|||
|
||||
/* INCLUDES ******************************************************************/
|
||||
|
||||
#include "precomp.h"
|
||||
#include <ddk/ntddblue.h>
|
||||
#include <ddk/ntddkbd.h>
|
||||
|
||||
#include "usetup.h"
|
||||
#include "console.h"
|
||||
#include "keytrans.h"
|
||||
|
||||
#define NDEBUG
|
||||
#include <debug.h>
|
||||
|
|
|
@ -27,8 +27,6 @@
|
|||
#ifndef __CONSOLE_H__
|
||||
#define __CONSOLE_H__
|
||||
|
||||
#include <ntos/keyboard.h>
|
||||
|
||||
#define AllocConsole ConAllocConsole
|
||||
#define FreeConsole ConFreeConsole
|
||||
#define ReadConsoleOutputCharacters ConReadConsoleOutputCharacters
|
||||
|
|
|
@ -26,12 +26,10 @@
|
|||
|
||||
/* INCLUDES *****************************************************************/
|
||||
|
||||
#include "precomp.h"
|
||||
#include <ntdll/rtl.h>
|
||||
|
||||
#include "usetup.h"
|
||||
#include "drivesup.h"
|
||||
|
||||
#define NDEBUG
|
||||
#include <debug.h>
|
||||
|
||||
/* FUNCTIONS ****************************************************************/
|
||||
|
||||
|
|
|
@ -27,12 +27,7 @@
|
|||
|
||||
/* INCLUDES *****************************************************************/
|
||||
|
||||
#include "precomp.h"
|
||||
#include <ntdll/rtl.h>
|
||||
|
||||
#include "usetup.h"
|
||||
#include "filesup.h"
|
||||
#include "filequeue.h"
|
||||
|
||||
#define NDEBUG
|
||||
#include <debug.h>
|
||||
|
|
|
@ -27,12 +27,7 @@
|
|||
|
||||
/* INCLUDES *****************************************************************/
|
||||
|
||||
#include "precomp.h"
|
||||
#include <ntdll/rtl.h>
|
||||
|
||||
#include "usetup.h"
|
||||
#include "filesup.h"
|
||||
#include "cabinet.h"
|
||||
|
||||
#define NDEBUG
|
||||
#include <debug.h>
|
||||
|
|
|
@ -26,18 +26,11 @@
|
|||
|
||||
/* INCLUDES *****************************************************************/
|
||||
|
||||
#include "precomp.h"
|
||||
#include <ntdll/rtl.h>
|
||||
#include <fslib/vfatlib.h>
|
||||
|
||||
#include "usetup.h"
|
||||
#include "console.h"
|
||||
#include "progress.h"
|
||||
|
||||
#define NDEBUG
|
||||
#include <debug.h>
|
||||
|
||||
|
||||
PPROGRESSBAR ProgressBar = NULL;
|
||||
|
||||
/* FUNCTIONS ****************************************************************/
|
||||
|
|
|
@ -25,14 +25,10 @@
|
|||
* Casper S. Hornstrup (chorns@users.sourceforge.net)
|
||||
*/
|
||||
|
||||
#include "precomp.h"
|
||||
#include <ddk/ntddscsi.h>
|
||||
#include <ntdll/rtl.h>
|
||||
|
||||
#include "usetup.h"
|
||||
#include "console.h"
|
||||
#include "fslist.h"
|
||||
|
||||
#define NDEBUG
|
||||
#include <debug.h>
|
||||
|
||||
/* FUNCTIONS ****************************************************************/
|
||||
|
||||
|
|
|
@ -26,18 +26,11 @@
|
|||
|
||||
/* INCLUDES *****************************************************************/
|
||||
|
||||
#include "precomp.h"
|
||||
#include <ntdll/rtl.h>
|
||||
#include <ntos/minmax.h>
|
||||
|
||||
#include "usetup.h"
|
||||
#include "console.h"
|
||||
#include "genlist.h"
|
||||
|
||||
#define NDEBUG
|
||||
#include <debug.h>
|
||||
|
||||
|
||||
/* FUNCTIONS ****************************************************************/
|
||||
|
||||
PGENERIC_LIST
|
||||
|
|
|
@ -27,9 +27,7 @@
|
|||
|
||||
/* INCLUDES *****************************************************************/
|
||||
|
||||
#include "precomp.h"
|
||||
#include "usetup.h"
|
||||
#include "infcache.h"
|
||||
|
||||
#define NDEBUG
|
||||
#include <debug.h>
|
||||
|
|
|
@ -27,9 +27,7 @@
|
|||
|
||||
/* INCLUDES *****************************************************************/
|
||||
|
||||
#include "precomp.h"
|
||||
#include "usetup.h"
|
||||
#include "inicache.h"
|
||||
|
||||
#define NDEBUG
|
||||
#include <debug.h>
|
||||
|
|
|
@ -25,14 +25,11 @@
|
|||
*
|
||||
* NB: Hardcoded to US keyboard
|
||||
*/
|
||||
#include "usetup.h"
|
||||
|
||||
#define NDEBUG
|
||||
#include <debug.h>
|
||||
|
||||
#include "precomp.h"
|
||||
#include <ddk/ntddblue.h>
|
||||
#include <ddk/ntddkbd.h>
|
||||
#include <windows.h>
|
||||
|
||||
static WORD KeyTable[] = {
|
||||
/* 0x00 */
|
||||
0x00, VK_ESCAPE, 0x31, 0x32,
|
||||
|
|
|
@ -27,6 +27,8 @@
|
|||
#ifndef __KEYTRANS_H__
|
||||
#define __KEYTRANS_H__
|
||||
|
||||
#include <ddk/ntddkbd.h>
|
||||
|
||||
NTSTATUS
|
||||
IntTranslateKey(PKEYBOARD_INPUT_DATA InputData, KEY_EVENT_RECORD *Event);
|
||||
|
||||
|
|
|
@ -25,19 +25,7 @@
|
|||
* Casper S. Hornstrup (chorns@users.sourceforge.net)
|
||||
*/
|
||||
|
||||
#include "precomp.h"
|
||||
#include <ddk/ntddscsi.h> /* FIXME: NDK */
|
||||
#include <ddk/ntdddisk.h> /* FIXME: NDK */
|
||||
|
||||
#include <ntdll/rtl.h>
|
||||
|
||||
#include <ntos/minmax.h>
|
||||
|
||||
#include "usetup.h"
|
||||
#include "console.h"
|
||||
#include "partlist.h"
|
||||
#include "drivesup.h"
|
||||
#include "bootsup.h"
|
||||
|
||||
#define NDEBUG
|
||||
#include <debug.h>
|
||||
|
|
|
@ -1 +0,0 @@
|
|||
#include <ntos.h>
|
|
@ -1,12 +1,10 @@
|
|||
|
||||
/* INCLUDES *****************************************************************/
|
||||
|
||||
#include "precomp.h"
|
||||
#include <ntdll/rtl.h>
|
||||
|
||||
#include "usetup.h"
|
||||
#include "progress.h"
|
||||
#include "console.h"
|
||||
|
||||
#define NDEBUG
|
||||
#include <debug.h>
|
||||
|
||||
/* FUNCTIONS ****************************************************************/
|
||||
|
||||
|
|
|
@ -26,18 +26,11 @@
|
|||
|
||||
/* INCLUDES *****************************************************************/
|
||||
|
||||
#include "precomp.h"
|
||||
#include <ntdll/rtl.h>
|
||||
#include <rosrtl/string.h>
|
||||
|
||||
#include "usetup.h"
|
||||
#include "registry.h"
|
||||
#include "infcache.h"
|
||||
|
||||
#define NDEBUG
|
||||
#include <debug.h>
|
||||
|
||||
|
||||
#define FLG_ADDREG_BINVALUETYPE 0x00000001
|
||||
#define FLG_ADDREG_NOCLOBBER 0x00000002
|
||||
#define FLG_ADDREG_DELVAL 0x00000004
|
||||
|
|
|
@ -26,20 +26,11 @@
|
|||
|
||||
/* INCLUDES *****************************************************************/
|
||||
|
||||
#include "precomp.h"
|
||||
#include <ntdll/rtl.h>
|
||||
#include <ntos/minmax.h>
|
||||
#include <rosrtl/string.h>
|
||||
|
||||
#include "usetup.h"
|
||||
#include "infcache.h"
|
||||
#include "genlist.h"
|
||||
#include "settings.h"
|
||||
|
||||
#define NDEBUG
|
||||
#include <debug.h>
|
||||
|
||||
|
||||
/* FUNCTIONS ****************************************************************/
|
||||
|
||||
PGENERIC_LIST
|
||||
|
|
|
@ -25,36 +25,11 @@
|
|||
* Casper S. Hornstrup (chorns@users.sourceforge.net)
|
||||
*/
|
||||
|
||||
|
||||
#include "precomp.h"
|
||||
#include <ntdll/rtl.h>
|
||||
#include <ddk/ntdddisk.h> /* FIXME: NDK */
|
||||
|
||||
#include <ntos/minmax.h>
|
||||
#include <reactos/resource.h>
|
||||
#include <rosrtl/string.h>
|
||||
|
||||
#include "usetup.h"
|
||||
#include "console.h"
|
||||
#include "partlist.h"
|
||||
#include "inicache.h"
|
||||
#include "infcache.h"
|
||||
#include "filequeue.h"
|
||||
#include "progress.h"
|
||||
#include "bootsup.h"
|
||||
#include "registry.h"
|
||||
#include "format.h"
|
||||
#include "fslist.h"
|
||||
#include "cabinet.h"
|
||||
#include "filesup.h"
|
||||
#include "drivesup.h"
|
||||
#include "genlist.h"
|
||||
#include "settings.h"
|
||||
|
||||
#define NDEBUG
|
||||
#include <debug.h>
|
||||
|
||||
|
||||
typedef enum _PAGE_NUMBER
|
||||
{
|
||||
START_PAGE,
|
||||
|
@ -1549,7 +1524,7 @@ SelectPartitionPage(PINPUT_RECORD Ir)
|
|||
|
||||
return SELECT_FILE_SYSTEM_PAGE;
|
||||
}
|
||||
else if (Ir->Event.KeyEvent.wVirtualKeyCode == VK_C) /* C */
|
||||
else if (Ir->Event.KeyEvent.wVirtualKeyCode == 'c') /* C */
|
||||
{
|
||||
if (PartitionList->CurrentPartition->Unpartitioned == FALSE)
|
||||
{
|
||||
|
@ -1565,7 +1540,7 @@ SelectPartitionPage(PINPUT_RECORD Ir)
|
|||
|
||||
return CREATE_PARTITION_PAGE;
|
||||
}
|
||||
else if (Ir->Event.KeyEvent.wVirtualKeyCode == VK_D) /* D */
|
||||
else if (Ir->Event.KeyEvent.wVirtualKeyCode == 'd') /* D */
|
||||
{
|
||||
if (PartitionList->CurrentPartition->Unpartitioned == TRUE)
|
||||
{
|
||||
|
@ -2075,7 +2050,7 @@ DeletePartitionPage (PINPUT_RECORD Ir)
|
|||
{
|
||||
return SELECT_PARTITION_PAGE;
|
||||
}
|
||||
else if (Ir->Event.KeyEvent.wVirtualKeyCode == VK_D) /* D */
|
||||
else if (Ir->Event.KeyEvent.wVirtualKeyCode == 'd') /* D */
|
||||
{
|
||||
DeleteCurrentPartition (PartitionList);
|
||||
|
||||
|
|
|
@ -27,16 +27,51 @@
|
|||
#ifndef __USETUP_H__
|
||||
#define __USETUP_H__
|
||||
|
||||
#ifdef assert
|
||||
#undef assert
|
||||
#endif
|
||||
#define assert(x)
|
||||
/* PSDK/NDK */
|
||||
#include <windows.h>
|
||||
#include <fmifs.h>
|
||||
#define NTOS_MODE_USER
|
||||
#include <ndk/ntndk.h>
|
||||
|
||||
/* VFAT */
|
||||
#include <fslib/vfatlib.h>
|
||||
|
||||
/* DDK Disk Headers */
|
||||
#include <ddk/ntddscsi.h>
|
||||
|
||||
/* FIXME: Put outside of DDK */
|
||||
#include <ddk/ntddblue.h>
|
||||
|
||||
/* FIXME: KILL ROSRTL */
|
||||
#include <rosrtl/string.h>
|
||||
|
||||
/* Helper Header */
|
||||
#include <reactos/helper.h>
|
||||
|
||||
/* ReactOS Version */
|
||||
#include <reactos/buildno.h>
|
||||
|
||||
/* Internal Headers */
|
||||
#include "console.h"
|
||||
#include "partlist.h"
|
||||
#include "inicache.h"
|
||||
#include "infcache.h"
|
||||
#include "filequeue.h"
|
||||
#include "progress.h"
|
||||
#include "bootsup.h"
|
||||
#include "keytrans.h"
|
||||
#include "registry.h"
|
||||
#include "format.h"
|
||||
#include "fslist.h"
|
||||
#include "cabinet.h"
|
||||
#include "filesup.h"
|
||||
#include "drivesup.h"
|
||||
#include "genlist.h"
|
||||
#include "settings.h"
|
||||
|
||||
extern HANDLE ProcessHeap;
|
||||
|
||||
extern UNICODE_STRING SourceRootPath;
|
||||
|
||||
|
||||
#endif /* __USETUP_H__*/
|
||||
|
||||
/* EOF */
|
||||
|
|
|
@ -9,7 +9,7 @@
|
|||
<library>zlib</library>
|
||||
<library>vfatlib</library>
|
||||
<library>ntdll</library>
|
||||
<pch>precomp.h</pch>
|
||||
<pch>usetup.h</pch>
|
||||
<file>bootsup.c</file>
|
||||
<file>cabinet.c</file>
|
||||
<file>console.c</file>
|
||||
|
|
Loading…
Reference in a new issue