Build kernel32, ntdll, csrss fully with NDK and remove ntdll header usage
authorAlex Ionescu <aionescu@gmail.com>
Tue, 21 Jun 2005 04:52:46 +0000 (04:52 +0000)
committerAlex Ionescu <aionescu@gmail.com>
Tue, 21 Jun 2005 04:52:46 +0000 (04:52 +0000)
svn path=/trunk/; revision=16205

reactos/include/epsapi.h
reactos/include/ndk/ldrtypes.h
reactos/include/ndk/umfuncs.h
reactos/lib/kernel32/k32.h
reactos/lib/ntdll/inc/ntdll.h
reactos/lib/ntdll/inc/ntdllp.h
reactos/subsys/csrss/init.c

index 29bb9dd..e6f5888 100644 (file)
@@ -25,9 +25,6 @@
 #ifndef __EPSAPI_H_INCLUDED__
 #define __EPSAPI_H_INCLUDED__
 
-/* Remove soon */
-#include <ntdll/ldr.h>
-
 /* TYPES */
 typedef NTSTATUS (NTAPI *PPROC_ENUM_ROUTINE)(IN PSYSTEM_PROCESS_INFORMATION CurrentProcess,
                                              IN OUT PVOID CallbackContext);
index 726dd1f..260f83e 100644 (file)
@@ -43,7 +43,6 @@ typedef struct _PEB_LDR_DATA
     PVOID               EntryInProgress;
 } PEB_LDR_DATA, *PPEB_LDR_DATA;
 
-#if 0
 typedef struct _LDR_DATA_TABLE_ENTRY
 {
     LIST_ENTRY InLoadOrderModuleList;
@@ -55,16 +54,20 @@ typedef struct _LDR_DATA_TABLE_ENTRY
     UNICODE_STRING FullDllName;
     UNICODE_STRING BaseDllName;
     ULONG Flags;
-    SHORT LoadCount; /* FIXME: HACK!!! FIX ASAP */
-    SHORT TlsIndex;  /* FIXME: HACK!!! FIX ASAP */
+    USHORT LoadCount; /* FIXME: HACK!!! FIX ASAP */
+    USHORT TlsIndex;  /* FIXME: HACK!!! FIX ASAP */
     LIST_ENTRY HashLinks;
     PVOID SectionPointer;
     ULONG CheckSum;
     ULONG TimeDateStamp;
     PVOID LoadedImports;
     PVOID EntryPointActivationContext;
+    PVOID PatchInformation;
+#if defined(DBG) || defined(KDBG)
+    /* FIXME: THIS _REALLY_ NEEDS TO GO SOMEWHERE ELSE */
+    PVOID RosSymInfo;
+#endif /* KDBG */
 } LDR_DATA_TABLE_ENTRY, *PLDR_DATA_TABLE_ENTRY;
-#endif
 
 typedef struct _LDR_RESOURCE_INFO 
 {
index 35041a2..d712dd5 100644 (file)
@@ -10,6 +10,7 @@
 /* DEPENDENCIES **************************************************************/
 #include "ldrtypes.h"
 #include "lpctypes.h"
+#include "rtltypes.h"
 #include <csrss/csrss.h> /* FIXME: Temporary */
 
 /* PROTOTYPES ****************************************************************/
@@ -193,6 +194,14 @@ LdrQueryImageFileExecutionOptions(
     OUT PULONG RetunedLength OPTIONAL
 );
 
+NTSTATUS 
+STDCALL
+LdrQueryProcessModuleInformation(
+    IN PMODULE_INFORMATION ModuleInformation OPTIONAL,
+    IN ULONG Size OPTIONAL,
+    OUT PULONG ReturnedSize
+);
+
 NTSTATUS 
 STDCALL
 LdrShutdownProcess(VOID);
index 2185e7f..331812f 100755 (executable)
@@ -11,6 +11,7 @@
 /* PSDK/NDK Headers */
 #include <windows.h>
 #define NTOS_MODE_USER
+#define READY_FOR_NEW_NTDLL
 #include <ndk/ntndk.h>
 
 /* C Headers */
 #include <ddk/ntddser.h>
 #include <ddk/ntddtape.h>
 
-/* FIXME: Clean this sh*t up */
-#include <ntdll/base.h>
-#include <ntdll/dbg.h>
-#include <ntdll/csr.h>
-#include <ntdll/ldr.h>
-
 /* Internal Kernel32 Header */
 #include "include/kernel32.h"
 
index 9559282..d463428 100644 (file)
 /* SDK/DDK/NDK Headers. */
 #include <windows.h>
 #define NTOS_MODE_USER
+#define READY_FOR_NEW_NTDLL
 #include <ndk/ntndk.h>
 
-/* NTDLL Headers FIXME: These will be gone imminently */
-#include <ntdll/ntdll.h>
-#include <ntdll/ldr.h>
-#include <ntdll/csr.h>
-
 /* Internal NTDLL */
 #include "ntdllp.h"
 
index 566b1d5..70a645d 100644 (file)
@@ -9,7 +9,7 @@
 /* INCLUDES ******************************************************************/
 
 /* FIXME: Cleanup this mess */
-//typedef NTSTATUS (STDCALL *PEPFUNC)(PPEB);
+typedef NTSTATUS (STDCALL *PEPFUNC)(PPEB);
 NTSTATUS LdrMapSections(HANDLE ProcessHandle,
                        PVOID ImageBase,
                        HANDLE SectionHandle,
@@ -23,12 +23,10 @@ PEPFUNC LdrPEStartup (PVOID  ImageBase,
                      HANDLE SectionHandle,
                      PLDR_DATA_TABLE_ENTRY* Module,
                      PWSTR FullDosName);
-#if 0
 typedef BOOL 
 (STDCALL *PDLLMAIN_FUNC)(HANDLE hInst,
                          ULONG ul_reason_for_call,
                          LPVOID lpReserved);
-#endif 
 VOID
 STDCALL
 RtlpInitDeferedCriticalSection(
index 5adf245..383d212 100644 (file)
@@ -12,9 +12,8 @@
 
 #include <windows.h>
 #define NTOS_MODE_USER
+#define READY_FOR_NEW_NTDLL
 #include <ndk/ntndk.h>
-#include <ntdll/csr.h>
-#include <ntdll/ldr.h>
 #include <rosrtl/string.h>
 #include <sm/helper.h>