Compile CSRSS and WIN32CSR with NDK headers.

svn path=/trunk/; revision=16144
This commit is contained in:
Filip Navara 2005-06-20 11:56:10 +00:00
parent 59057f2e70
commit e0df17c6fd
12 changed files with 45 additions and 49 deletions

View file

@ -9,9 +9,10 @@
/* INCLUDES ******************************************************************/ /* INCLUDES ******************************************************************/
#include <csrss/csrss.h> #include <windows.h>
#include <ddk/ntddk.h> #define NTOS_MODE_USER
#include <ntdll/rtl.h> #include <ndk/ntndk.h>
#include "api.h" #include "api.h"
#define NDEBUG #define NDEBUG

View file

@ -9,9 +9,10 @@
/* INCLUDES ******************************************************************/ /* INCLUDES ******************************************************************/
#include <csrss/csrss.h> #include <windows.h>
#include <ddk/ntddk.h> #define NTOS_MODE_USER
#include <ntdll/rtl.h> #include <ndk/ntndk.h>
#include "api.h" #include "api.h"
#include "conio.h" #include "conio.h"

View file

@ -9,11 +9,11 @@
/* INCLUDES ******************************************************************/ /* INCLUDES ******************************************************************/
#include <ddk/ntddk.h> #include <windows.h>
#define NTOS_MODE_USER
#include <ndk/ntndk.h>
#include <csrss/csrss.h>
#include "api.h" #include "api.h"
#include <ntdll/rtl.h>
#define NDEBUG #define NDEBUG
#include <debug.h> #include <debug.h>

View file

@ -10,18 +10,16 @@
/* INCLUDES ******************************************************************/ /* INCLUDES ******************************************************************/
#include <windows.h>
#define NTOS_MODE_USER #define NTOS_MODE_USER
#include <ntos.h> #include <ndk/ntndk.h>
#include <csrss/csrss.h> #include <rosrtl/thread.h>
#include <ddk/ntddk.h>
#include "api.h"
#define NDEBUG #define NDEBUG
#include <debug.h> #include <debug.h>
#include "api.h"
/* GLOBALS *******************************************************************/ /* GLOBALS *******************************************************************/
HANDLE CsrssApiHeap = (HANDLE) 0; HANDLE CsrssApiHeap = (HANDLE) 0;

View file

@ -31,8 +31,10 @@
* First standalone run under ReactOS (it * First standalone run under ReactOS (it
* actually does nothing but running). * actually does nothing but running).
*/ */
#include <ddk/ntddk.h>
#include <ntdll/rtl.h> #include <windows.h>
#define NTOS_MODE_USER
#include <ndk/ntndk.h>
#include <csrss/csrss.h> #include <csrss/csrss.h>
#include <rosrtl/string.h> #include <rosrtl/string.h>
#include <reactos/buildno.h> #include <reactos/buildno.h>

View file

@ -9,7 +9,8 @@
#ifndef API_H_INCLUDED #ifndef API_H_INCLUDED
#define API_H_INCLUDED #define API_H_INCLUDED
#include <ntos.h> #define NTOS_MODE_USER
#include <ndk/ntndk.h>
#include <csrss/csrss.h> #include <csrss/csrss.h>

View file

@ -10,12 +10,12 @@
/* INCLUDES ******************************************************************/ /* INCLUDES ******************************************************************/
#include <csrss/csrss.h> #include <windows.h>
#include <ddk/ntddk.h> #define NTOS_MODE_USER
#include <ndk/ntndk.h>
#include <ntdll/csr.h> #include <ntdll/csr.h>
#include <ntdll/rtl.h> #include <ntdll/rtl.h>
#include <ntdll/ldr.h> #include <ntdll/ldr.h>
#include <win32k/win32k.h>
#include <rosrtl/string.h> #include <rosrtl/string.h>
#include <sm/helper.h> #include <sm/helper.h>
@ -423,15 +423,15 @@ CsrpLoadKernelModeDriver (ULONG argc, PWSTR* argv)
if((STATUS_SUCCESS == Status) && (DataLength > sizeof Data[0])) if((STATUS_SUCCESS == Status) && (DataLength > sizeof Data[0]))
{ {
WCHAR ImagePath [MAX_PATH + 1] = {0}; WCHAR ImagePath [MAX_PATH + 1] = {0};
SYSTEM_LOAD_AND_CALL_IMAGE ImageInfo; UNICODE_STRING ModuleName;
wcscpy (ImagePath, L"\\??\\"); wcscpy (ImagePath, L"\\??\\");
wcscat (ImagePath, Data); wcscat (ImagePath, Data);
RtlZeroMemory (& ImageInfo, sizeof ImageInfo); RtlInitUnicodeString (& ModuleName, ImagePath);
RtlInitUnicodeString (& ImageInfo.ModuleName, ImagePath); Status = NtSetSystemInformation(/* FIXME: SystemLoadAndCallImage */
Status = NtSetSystemInformation(SystemLoadAndCallImage, SystemExtendServiceTableInformation,
& ImageInfo, & ModuleName,
sizeof ImageInfo); sizeof ModuleName);
if(!NT_SUCCESS(Status)) if(!NT_SUCCESS(Status))
{ {
DPRINT("WIN: %s: loading Kmode failed (Status=0x%08lx)\n", DPRINT("WIN: %s: loading Kmode failed (Status=0x%08lx)\n",

View file

@ -27,9 +27,10 @@
* Compiled successfully with egcs 1.1.2 * Compiled successfully with egcs 1.1.2
*/ */
#include <windows.h>
#define NTOS_MODE_USER
#include <ndk/ntndk.h>
#include <csrss/csrss.h> #include <csrss/csrss.h>
#include <ddk/ntddk.h>
#include <ntos.h>
VOID STDCALL DisplayString(LPCWSTR lpwString) VOID STDCALL DisplayString(LPCWSTR lpwString)
{ {

View file

@ -4,8 +4,8 @@
*/ */
#include <windows.h> #include <windows.h>
#include <ddk/ntddk.h> #define NTOS_MODE_USER
#include <ddk/ntapi.h> #include <ndk/ntndk.h>
#include <rosrtl/string.h> #include <rosrtl/string.h>
ULONG ULONG

View file

@ -8,15 +8,15 @@
/* INCLUDES ******************************************************************/ /* INCLUDES ******************************************************************/
#include <string.h>
#include <windows.h> #include <windows.h>
#define NTOS_MODE_USER
#include <csrss/csrss.h> #include <ndk/ntndk.h>
#include <ntdll/rtl.h>
#include <ntdll/ldr.h>
#include <ddk/ntddblue.h> #include <ddk/ntddblue.h>
#include <rosrtl/string.h> #include <rosrtl/string.h>
#include <rosrtl/minmax.h> #include <rosrtl/minmax.h>
#include <string.h>
#include "api.h" #include "api.h"
#include "conio.h" #include "conio.h"
#include "desktopbg.h" #include "desktopbg.h"

View file

@ -7,20 +7,9 @@
* ReactOS Operating System * ReactOS Operating System
*/ */
/*
* There is a problem with size of LPC_MESSAGE structure. In the old ReactOS
* headers it doesn't contain the data field and so it has a different size.
* We must use this workaround to get our Data field 0-sized.
*/
#include <windef.h>
#include <winnt.h>
#undef ANYSIZE_ARRAY
#define ANYSIZE_ARRAY 0
#include <ddk/ntapi.h>
#include <windows.h> #include <windows.h>
#include <csrss/csrss.h> #define NTOS_MODE_USER
#include <ndk/ntndk.h>
#include "api.h" #include "api.h"
#include "desktopbg.h" #include "desktopbg.h"

View file

@ -9,7 +9,10 @@
/* INCLUDES ******************************************************************/ /* INCLUDES ******************************************************************/
#include <windows.h> #include <windows.h>
#define NTOS_MODE_USER
#include <ndk/ntndk.h>
#include <reactos/winlogon.h> #include <reactos/winlogon.h>
#include "api.h" #include "api.h"
#include "win32csr.h" #include "win32csr.h"