mirror of
https://github.com/reactos/reactos.git
synced 2025-08-02 12:55:43 +00:00
[SMDLL]
* Include NDK headers on-demand. * Introduce a PCH. svn path=/trunk/; revision=53234
This commit is contained in:
parent
b27131c180
commit
0c5dee7f52
4 changed files with 10 additions and 6 deletions
|
@ -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)
|
||||
|
|
|
@ -6,7 +6,7 @@
|
|||
* PURPOSE: SM Helper Library
|
||||
*/
|
||||
|
||||
#include <windows.h>
|
||||
#include <precomp.h>
|
||||
|
||||
BOOL WINAPI DllMainCRTStartup(HANDLE hinstDll, DWORD fdwReason, LPVOID fImpLoad)
|
||||
{
|
||||
|
|
6
reactos/dll/win32/smdll/precomp.h
Normal file
6
reactos/dll/win32/smdll/precomp.h
Normal 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>
|
|
@ -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>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue