[BASESRV]

* Remove one time inclusions from the main header and put them back where they belong.
* Include what we need from the NDK instead of the whole set.
CORE-7716

svn path=/trunk/; revision=61519
This commit is contained in:
Amine Khaldi 2014-01-04 10:29:54 +00:00
parent d6e07f60b4
commit 24964add2b
3 changed files with 13 additions and 9 deletions

View file

@ -9,18 +9,19 @@
#ifndef __BASESRV_H__ #ifndef __BASESRV_H__
#define __BASESRV_H__ #define __BASESRV_H__
#pragma once
/* PSDK/NDK Headers */ /* PSDK/NDK Headers */
#include <stdarg.h> #include <stdio.h>
#define WIN32_NO_STATUS #define WIN32_NO_STATUS
#define _INC_WINDOWS #define _INC_WINDOWS
#define COM_NO_WINDOWS_H #define COM_NO_WINDOWS_H
#include <windef.h> #include <windef.h>
#include <winbase.h> #include <winbase.h>
#include <winreg.h>
#define NTOS_MODE_USER #define NTOS_MODE_USER
#include <ndk/ntndk.h> #include <ndk/rtlfuncs.h>
#include <ndk/obfuncs.h>
#include <ndk/psfuncs.h>
#include <ndk/exfuncs.h>
#include <ndk/umfuncs.h>
/* PSEH for SEH Support */ /* PSEH for SEH Support */
#include <pseh/pseh2.h> #include <pseh/pseh2.h>
@ -63,6 +64,4 @@ extern HANDLE BaseSrvHeap;
extern HANDLE BaseSrvSharedHeap; extern HANDLE BaseSrvSharedHeap;
extern PBASE_STATIC_SERVER_DATA BaseStaticServerData; extern PBASE_STATIC_SERVER_DATA BaseStaticServerData;
#endif // __BASESRV_H__ #endif /* __BASESRV_H__ */
/* EOF */

View file

@ -9,11 +9,14 @@
/* INCLUDES *******************************************************************/ /* INCLUDES *******************************************************************/
#include "basesrv.h" #include "basesrv.h"
#include "api.h"
#include <winreg.h>
#define NDEBUG #define NDEBUG
#include <debug.h> #include <debug.h>
#include "api.h"
/* GLOBALS ********************************************************************/ /* GLOBALS ********************************************************************/
HANDLE BaseSrvDllInstance = NULL; HANDLE BaseSrvDllInstance = NULL;

View file

@ -10,6 +10,8 @@
#include "basesrv.h" #include "basesrv.h"
#include <ndk/mmfuncs.h>
#define NDEBUG #define NDEBUG
#include <debug.h> #include <debug.h>