Build usetup with NDK

svn path=/trunk/; revision=16195
This commit is contained in:
Alex Ionescu 2005-06-20 22:49:45 +00:00
parent 2e4d4d6dfd
commit ce068ea890
22 changed files with 57 additions and 132 deletions

View file

@ -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>

View file

@ -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>

View file

@ -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>

View file

@ -27,8 +27,6 @@
#ifndef __CONSOLE_H__
#define __CONSOLE_H__
#include <ntos/keyboard.h>
#define AllocConsole ConAllocConsole
#define FreeConsole ConFreeConsole
#define ReadConsoleOutputCharacters ConReadConsoleOutputCharacters

View file

@ -26,12 +26,10 @@
/* INCLUDES *****************************************************************/
#include "precomp.h"
#include <ntdll/rtl.h>
#include "usetup.h"
#include "drivesup.h"
#define NDEBUG
#include <debug.h>
/* FUNCTIONS ****************************************************************/

View file

@ -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>

View file

@ -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>

View file

@ -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 ****************************************************************/

View file

@ -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 ****************************************************************/

View file

@ -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

View file

@ -27,9 +27,7 @@
/* INCLUDES *****************************************************************/
#include "precomp.h"
#include "usetup.h"
#include "infcache.h"
#define NDEBUG
#include <debug.h>

View file

@ -27,9 +27,7 @@
/* INCLUDES *****************************************************************/
#include "precomp.h"
#include "usetup.h"
#include "inicache.h"
#define NDEBUG
#include <debug.h>

View file

@ -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,

View file

@ -27,6 +27,8 @@
#ifndef __KEYTRANS_H__
#define __KEYTRANS_H__
#include <ddk/ntddkbd.h>
NTSTATUS
IntTranslateKey(PKEYBOARD_INPUT_DATA InputData, KEY_EVENT_RECORD *Event);

View file

@ -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>

View file

@ -1 +0,0 @@
#include <ntos.h>

View file

@ -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 ****************************************************************/

View file

@ -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

View file

@ -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

View file

@ -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);

View file

@ -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 */

View file

@ -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>