* Include NDK headers on-demand.
* Introduce a PCH.

svn path=/trunk/; revision=53234
This commit is contained in:
Amine Khaldi 2011-08-14 17:17:02 +00:00
parent b27131c180
commit 0c5dee7f52
4 changed files with 10 additions and 6 deletions

View file

@ -14,6 +14,7 @@ add_library(smdll SHARED ${SOURCE})
target_link_libraries(smdll smlib)
set_entrypoint(smdll DllMainCRTStartup 12)
add_importlibs(smdll ntdll)
add_pch(smdll precomp.h)
add_dependencies(smdll psdk)
add_cd_file(TARGET smdll DESTINATION reactos/system32 FOR all)
add_importlib_target(smdll.spec)

View file

@ -6,7 +6,7 @@
* PURPOSE: SM Helper Library
*/
#include <windows.h>
#include <precomp.h>
BOOL WINAPI DllMainCRTStartup(HANDLE hinstDll, DWORD fdwReason, LPVOID fImpLoad)
{

View file

@ -0,0 +1,6 @@
#define WIN32_NO_STATUS
#include <windows.h>
#define NTOS_MODE_USER
#include <ndk/lpctypes.h>
#include <ndk/lpcfuncs.h>
#include <sm/helper.h>

View file

@ -5,11 +5,8 @@
* FILE: lib/smdll/query.c
* PURPOSE: Call SM API SM_API_QUERY_INFORMATION (not in NT)
*/
#define WIN32_NO_STATUS
#include <windows.h>
#define NTOS_MODE_USER
#include <ndk/ntndk.h>
#include <sm/helper.h>
#include <precomp.h>
#define NDEBUG
#include <debug.h>