mirror of
https://github.com/reactos/reactos.git
synced 2025-01-05 22:12:46 +00:00
[USETUP]
* Include NDK headers on-demand. * Set usetup.h as a PCH. svn path=/trunk/; revision=53282
This commit is contained in:
parent
2d20935ffb
commit
63cc65c2d7
8 changed files with 24 additions and 28 deletions
|
@ -1,5 +1,6 @@
|
|||
|
||||
include_directories(
|
||||
${CMAKE_CURRENT_SOURCE_DIR}
|
||||
${REACTOS_SOURCE_DIR}/lib/newinflib
|
||||
${REACTOS_SOURCE_DIR}/lib/3rdparty/zlib
|
||||
${REACTOS_SOURCE_DIR}/include/reactos/drivers)
|
||||
|
@ -38,4 +39,5 @@ target_link_libraries(usetup
|
|||
|
||||
set_module_type(usetup nativecui)
|
||||
add_importlibs(usetup ntdll)
|
||||
add_pch(usetup usetup.h)
|
||||
add_cd_file(TARGET usetup DESTINATION reactos/system32 NO_CAB NAME_ON_CD smss.exe FOR bootcd regtest)
|
||||
|
|
|
@ -9,7 +9,6 @@
|
|||
*/
|
||||
|
||||
#include "usetup.h"
|
||||
#include <zlib.h>
|
||||
|
||||
#define NDEBUG
|
||||
#include <debug.h>
|
||||
|
|
|
@ -28,10 +28,6 @@
|
|||
|
||||
#include "usetup.h"
|
||||
|
||||
#ifdef __REACTOS__
|
||||
#include <infros.h>
|
||||
#endif
|
||||
|
||||
#define NDEBUG
|
||||
#include <debug.h>
|
||||
|
||||
|
|
|
@ -11,10 +11,6 @@
|
|||
#define NDEBUG
|
||||
#include <debug.h>
|
||||
|
||||
#define INITGUID
|
||||
#include <guiddef.h>
|
||||
#include <libs/umpnpmgr/sysguid.h>
|
||||
|
||||
BOOLEAN
|
||||
ResetDevice(
|
||||
IN LPCWSTR DeviceId)
|
||||
|
|
|
@ -25,9 +25,6 @@
|
|||
*/
|
||||
|
||||
#include "usetup.h"
|
||||
#include "interface/consup.h"
|
||||
#include "errorcode.h"
|
||||
#include "mui.h"
|
||||
#include "muifonts.h"
|
||||
#include "muilanguages.h"
|
||||
|
||||
|
|
|
@ -1,10 +1,5 @@
|
|||
#include "usetup.h"
|
||||
|
||||
/* Filesystem headers */
|
||||
#include <fslib/ext2lib.h>
|
||||
#include <fslib/vfatlib.h>
|
||||
#include <fslib/vfatxlib.h>
|
||||
|
||||
BOOLEAN
|
||||
NATIVE_CreateFileSystemList(
|
||||
IN PFILE_SYSTEM_LIST List)
|
||||
|
|
|
@ -2,12 +2,6 @@
|
|||
|
||||
#include "usetup.h"
|
||||
|
||||
typedef struct
|
||||
{
|
||||
PWCHAR Source;
|
||||
PWCHAR Target;
|
||||
} *PFILEPATHS_W;
|
||||
|
||||
#define SetupInitDefaultQueueCallback(a) NULL
|
||||
#define SetupDefaultQueueCallbackW(a, b, c, d) TRUE
|
||||
#define SetupTermDefaultQueueCallback(a)
|
||||
|
|
|
@ -24,8 +24,6 @@
|
|||
* PROGRAMMER: Eric Kohl
|
||||
*/
|
||||
|
||||
#pragma once
|
||||
|
||||
/* C Headers */
|
||||
#include <ctype.h>
|
||||
#include <stdio.h>
|
||||
|
@ -35,11 +33,21 @@
|
|||
#define WIN32_NO_STATUS
|
||||
#include <windows.h>
|
||||
#define NTOS_MODE_USER
|
||||
#include <ndk/ntndk.h>
|
||||
#include <ndk/cmfuncs.h>
|
||||
#include <ndk/exfuncs.h>
|
||||
#include <ndk/iofuncs.h>
|
||||
#include <ndk/kefuncs.h>
|
||||
#include <ndk/mmtypes.h>
|
||||
#include <ndk/mmfuncs.h>
|
||||
#include <ndk/obfuncs.h>
|
||||
#include <ndk/psfuncs.h>
|
||||
#include <ndk/rtlfuncs.h>
|
||||
#include <fmifs/fmifs.h>
|
||||
|
||||
/* VFAT */
|
||||
/* Filesystem headers */
|
||||
#include <fslib/ext2lib.h>
|
||||
#include <fslib/vfatlib.h>
|
||||
#include <fslib/vfatxlib.h>
|
||||
|
||||
/* DDK Disk Headers */
|
||||
#include <ntddscsi.h>
|
||||
|
@ -50,11 +58,11 @@
|
|||
/* Internal Headers */
|
||||
#include "interface/consup.h"
|
||||
#include "partlist.h"
|
||||
#include "infros.h"
|
||||
#include "inffile.h"
|
||||
#include "inicache.h"
|
||||
#include "progress.h"
|
||||
#ifdef __REACTOS__
|
||||
#include "infros.h"
|
||||
#include "filequeue.h"
|
||||
#endif
|
||||
#include "bootsup.h"
|
||||
|
@ -71,6 +79,12 @@
|
|||
#include "mui.h"
|
||||
#include "errorcode.h"
|
||||
|
||||
#define INITGUID
|
||||
#include <guiddef.h>
|
||||
#include <libs/umpnpmgr/sysguid.h>
|
||||
|
||||
#include <zlib.h>
|
||||
|
||||
extern HANDLE ProcessHeap;
|
||||
extern UNICODE_STRING SourceRootPath;
|
||||
extern UNICODE_STRING SourceRootDir;
|
||||
|
@ -108,6 +122,8 @@ extern BOOLEAN InfGetStringField(PINFCONTEXT Context,
|
|||
|
||||
#endif /* __REACTOS__ */
|
||||
|
||||
#ifndef _PAGE_NUMBER_DEFINED
|
||||
#define _PAGE_NUMBER_DEFINED
|
||||
typedef enum _PAGE_NUMBER
|
||||
{
|
||||
START_PAGE,
|
||||
|
@ -148,6 +164,7 @@ typedef enum _PAGE_NUMBER
|
|||
FLUSH_PAGE,
|
||||
REBOOT_PAGE, /* virtual page */
|
||||
} PAGE_NUMBER, *PPAGE_NUMBER;
|
||||
#endif
|
||||
|
||||
#define POPUP_WAIT_NONE 0
|
||||
#define POPUP_WAIT_ANY_KEY 1
|
||||
|
|
Loading…
Reference in a new issue