* Add a PCH.

svn path=/trunk/; revision=52985
This commit is contained in:
Amine Khaldi 2011-07-28 16:21:48 +00:00
parent 2525881109
commit 3e20601b21
6 changed files with 12 additions and 18 deletions

View file

@ -4,5 +4,5 @@ add_library(epsapi
enum/modules.c enum/modules.c
enum/processes.c) enum/processes.c)
add_pch(epsapi enum/precomp.h)
add_dependencies(epsapi psdk) add_dependencies(epsapi psdk)

View file

@ -14,16 +14,11 @@
* and improve reusability * and improve reusability
*/ */
#define WIN32_NO_STATUS #include "precomp.h"
#include <windows.h>
#define NTOS_MODE_USER
#include <ndk/ntndk.h>
#define NDEBUG #define NDEBUG
#include <debug.h> #include <debug.h>
#include <epsapi/epsapi.h>
NTSTATUS NTAPI NTSTATUS NTAPI
PsaEnumerateSystemModules(IN PSYSMOD_ENUM_ROUTINE Callback, PsaEnumerateSystemModules(IN PSYSMOD_ENUM_ROUTINE Callback,
IN OUT PVOID CallbackContext) IN OUT PVOID CallbackContext)

View file

@ -18,16 +18,12 @@
* isolated in its own library to clear the confusion * isolated in its own library to clear the confusion
* and improve reusability * and improve reusability
*/ */
#define WIN32_NO_STATUS
#include <windows.h> #include "precomp.h"
#define NTOS_MODE_USER
#include <ndk/ntndk.h>
#define NDEBUG #define NDEBUG
#include <debug.h> #include <debug.h>
#include <epsapi/epsapi.h>
NTSTATUS NTAPI NTSTATUS NTAPI
PsaEnumerateProcessModules(IN HANDLE ProcessHandle, PsaEnumerateProcessModules(IN HANDLE ProcessHandle,
IN PPROCMOD_ENUM_ROUTINE Callback, IN PPROCMOD_ENUM_ROUTINE Callback,

View file

@ -0,0 +1,6 @@
#define WIN32_NO_STATUS
#include <windows.h>
#define NTOS_MODE_USER
#include <ndk/ntndk.h>
#include <epsapi/epsapi.h>

View file

@ -30,12 +30,8 @@
* isolated in its own library to clear the confusion * isolated in its own library to clear the confusion
* and improve reusability * and improve reusability
*/ */
#define WIN32_NO_STATUS
#include <windows.h>
#define NTOS_MODE_USER
#include <ndk/ntndk.h>
#include <epsapi/epsapi.h> #include "precomp.h"
#define NDEBUG #define NDEBUG
#include <debug.h> #include <debug.h>

View file

@ -5,5 +5,6 @@
<file>drivers.c</file> <file>drivers.c</file>
<file>modules.c</file> <file>modules.c</file>
<file>processes.c</file> <file>processes.c</file>
<pch>precomp.h</pch>
</directory> </directory>
</module> </module>