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 ******************************************************************/
#include <csrss/csrss.h>
#include <ddk/ntddk.h>
#include <ntdll/rtl.h>
#include <windows.h>
#define NTOS_MODE_USER
#include <ndk/ntndk.h>
#include "api.h"
#define NDEBUG

View file

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

View file

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

View file

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

View file

@ -31,8 +31,10 @@
* First standalone run under ReactOS (it
* 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 <rosrtl/string.h>
#include <reactos/buildno.h>

View file

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

View file

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

View file

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

View file

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

View file

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

View file

@ -7,20 +7,9 @@
* 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 <csrss/csrss.h>
#define NTOS_MODE_USER
#include <ndk/ntndk.h>
#include "api.h"
#include "desktopbg.h"

View file

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