Finally, add NDK. Still needs lot of work
Added: branches/new_headers/reactos/include/ndk/
Added: branches/new_headers/reactos/include/ndk/cctypes.h
Added: branches/new_headers/reactos/include/ndk/extypes.h
Added: branches/new_headers/reactos/include/ndk/halfuncs.h
Added: branches/new_headers/reactos/include/ndk/haltypes.h
Added: branches/new_headers/reactos/include/ndk/i386/
Added: branches/new_headers/reactos/include/ndk/i386/floatsave.h
Added: branches/new_headers/reactos/include/ndk/i386/segment.h
Added: branches/new_headers/reactos/include/ndk/inbvfuncs.h
Added: branches/new_headers/reactos/include/ndk/iofuncs.h
Added: branches/new_headers/reactos/include/ndk/iotypes.h
Added: branches/new_headers/reactos/include/ndk/kdfuncs.h
Added: branches/new_headers/reactos/include/ndk/kdtypes.h
Added: branches/new_headers/reactos/include/ndk/kefuncs.h
Added: branches/new_headers/reactos/include/ndk/ketypes.h
Added: branches/new_headers/reactos/include/ndk/ldrfuncs.h
Added: branches/new_headers/reactos/include/ndk/ldrtypes.h
Added: branches/new_headers/reactos/include/ndk/lpctypes.h
Added: branches/new_headers/reactos/include/ndk/mmtypes.h
Added: branches/new_headers/reactos/include/ndk/ntndk.h
Added: branches/new_headers/reactos/include/ndk/obfuncs.h
Added: branches/new_headers/reactos/include/ndk/obtypes.h
Added: branches/new_headers/reactos/include/ndk/potypes.h
Added: branches/new_headers/reactos/include/ndk/psfuncs.h
Added: branches/new_headers/reactos/include/ndk/pstypes.h
Added: branches/new_headers/reactos/include/ndk/rosfuncs.h
Added: branches/new_headers/reactos/include/ndk/rostypes.h
Added: branches/new_headers/reactos/include/ndk/rtlfuncs.h
Added: branches/new_headers/reactos/include/ndk/rtltypes.h
Added: branches/new_headers/reactos/include/ndk/sefuncs.h
Added: branches/new_headers/reactos/include/ndk/setypes.h
Added: branches/new_headers/reactos/include/ndk/umtypes.h
Added: branches/new_headers/reactos/include/ndk/zwfuncs.h
Added: branches/new_headers/reactos/include/ndk/zwtypes.h

Added: branches/new_headers/reactos/include/ndk/cctypes.h
--- branches/new_headers/reactos/include/ndk/cctypes.h	2005-05-08 01:40:13 UTC (rev 15101)
+++ branches/new_headers/reactos/include/ndk/cctypes.h	2005-05-08 01:41:18 UTC (rev 15102)
@@ -0,0 +1,45 @@
+/* $Id: cctypes.h,v 1.1.2.1 2004/10/25 01:24:07 ion Exp $
+ *
+ *  ReactOS Headers
+ *  Copyright (C) 1998-2004 ReactOS Team
+ *
+ *  This program is free software; you can redistribute it and/or modify
+ *  it under the terms of the GNU General Public License as published by
+ *  the Free Software Foundation; either version 2 of the License, or
+ *  (at your option) any later version.
+ *
+ *  This program is distributed in the hope that it will be useful,
+ *  but WITHOUT ANY WARRANTY; without even the implied warranty of
+ *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ *  GNU General Public License for more details.
+ *
+ *  You should have received a copy of the GNU General Public License
+ *  along with this program; if not, write to the Free Software
+ *  Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
+ */
+/*
+ * PROJECT:         ReactOS Native Headers
+ * FILE:            include/ndk/cctypes.h
+ * PURPOSE:         Definitions for exported Cache Manager Types not defined in DDK/IFS
+ * PROGRAMMER:      Alex Ionescu (alex@relsoft.net)
+ * UPDATE HISTORY:
+ *                  Created 06/10/04
+ */
+
+#ifndef _CCTYPES_H
+#define _CCTYPES_H
+
+#include <reactos/helper.h>
+
+#ifdef __NTOSKRNL__
+extern ULONG EXPORTED CcFastMdlReadWait;
+extern ULONG EXPORTED CcFastReadNotPossible;
+extern ULONG EXPORTED CcFastReadWait;
+#else
+extern ULONG IMPORTED CcFastMdlReadWait;
+extern ULONG IMPORTED CcFastReadNotPossible;
+extern ULONG IMPORTED CcFastReadWait;
+#endif
+
+#endif
+

Added: branches/new_headers/reactos/include/ndk/extypes.h
--- branches/new_headers/reactos/include/ndk/extypes.h	2005-05-08 01:40:13 UTC (rev 15101)
+++ branches/new_headers/reactos/include/ndk/extypes.h	2005-05-08 01:41:18 UTC (rev 15102)
@@ -0,0 +1,63 @@
+/* $Id: extypes.h,v 1.1.2.1 2004/10/25 01:24:07 ion Exp $
+ *
+ *  ReactOS Headers
+ *  Copyright (C) 1998-2004 ReactOS Team
+ *
+ *  This program is free software; you can redistribute it and/or modify
+ *  it under the terms of the GNU General Public License as published by
+ *  the Free Software Foundation; either version 2 of the License, or
+ *  (at your option) any later version.
+ *
+ *  This program is distributed in the hope that it will be useful,
+ *  but WITHOUT ANY WARRANTY; without even the implied warranty of
+ *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ *  GNU General Public License for more details.
+ *
+ *  You should have received a copy of the GNU General Public License
+ *  along with this program; if not, write to the Free Software
+ *  Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
+ */
+/*
+ * PROJECT:         ReactOS Native Headers
+ * FILE:            include/ndk/extypes.h
+ * PURPOSE:         Definitions for exported Executive Kernel Functions not defined in DDK/IFS
+ * PROGRAMMER:      Alex Ionescu (alex@relsoft.net)
+ * UPDATE HISTORY:
+ *                  Created 06/10/04
+ */
+
+#ifndef _EXTYPES_H
+#define _EXTYPES_H
+
+#include <reactos/helper.h>
+
+#ifdef __NTOSKRNL__
+extern POBJECT_TYPE EXPORTED ExIoCompletionType;
+#else
+extern POBJECT_TYPE IMPORTED ExIoCompletionType;
+#endif
+
+typedef enum _HARDERROR_RESPONSE_OPTION {
+	OptionAbortRetryIgnore,
+	OptionOk,
+	OptionOkCancel,
+	OptionRetryCancel,
+	OptionYesNo,
+	OptionYesNoCancel,
+	OptionShutdownSystem
+} HARDERROR_RESPONSE_OPTION, *PHARDERROR_RESPONSE_OPTION;
+
+typedef enum _HARDERROR_RESPONSE {
+	ResponseReturnToCaller,
+	ResponseNotHandled,
+	ResponseAbort,
+	ResponseCancel,
+	ResponseIgnore,
+	ResponseNo,
+	ResponseOk,
+	ResponseRetry,
+	ResponseYes
+} HARDERROR_RESPONSE, *PHARDERROR_RESPONSE;
+
+#endif
+

Added: branches/new_headers/reactos/include/ndk/halfuncs.h
--- branches/new_headers/reactos/include/ndk/halfuncs.h	2005-05-08 01:40:13 UTC (rev 15101)
+++ branches/new_headers/reactos/include/ndk/halfuncs.h	2005-05-08 01:41:18 UTC (rev 15102)
@@ -0,0 +1,181 @@
+/* $Id: halfuncs.h,v 1.1.2.2 2004/10/25 02:57:20 ion Exp $
+ *
+ *  ReactOS Headers
+ *  Copyright (C) 1998-2004 ReactOS Team
+ *
+ *  This program is free software; you can redistribute it and/or modify
+ *  it under the terms of the GNU General Public License as published by
+ *  the Free Software Foundation; either version 2 of the License, or
+ *  (at your option) any later version.
+ *
+ *  This program is distributed in the hope that it will be useful,
+ *  but WITHOUT ANY WARRANTY; without even the implied warranty of
+ *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ *  GNU General Public License for more details.
+ *
+ *  You should have received a copy of the GNU General Public License
+ *  along with this program; if not, write to the Free Software
+ *  Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
+ */
+/*
+ * PROJECT:         ReactOS Native Headers
+ * FILE:            include/ndk/halfuncs.h
+ * PURPOSE:         Prototypes for exported Hardware Abstraction Layer Functions not defined in DDK/IFS
+ * PROGRAMMER:      Alex Ionescu (alex@relsoft.net)
+ * UPDATE HISTORY:
+ *                  Created 06/10/04
+ */
+#ifndef _HALFUNCS_H
+#define _HALFUNCS_H
+
+#include "haltypes.h"
+
+BOOLEAN
+STDCALL
+HalAllProcessorsStarted(VOID);
+
+VOID
+STDCALL
+HalAcquireDisplayOwnership(
+    IN PHAL_RESET_DISPLAY_PARAMETERS ResetDisplayParameters
+);
+
+NTSTATUS
+STDCALL
+HalAllocateAdapterChannel(
+	IN PADAPTER_OBJECT AdapterObject,
+	IN PWAIT_CONTEXT_BLOCK WaitContextBlock,
+	IN ULONG NumberOfMapRegisters,
+	IN PDRIVER_CONTROL ExecutionRoutine
+);
+
+BOOLEAN 
+STDCALL
+HalBeginSystemInterrupt(
+	ULONG Vector,
+	KIRQL Irql,
+	PKIRQL OldIrql
+);
+
+BOOLEAN
+STDCALL
+HalDisableSystemInterrupt(
+	ULONG Vector,
+	KIRQL Irql
+);
+
+VOID
+STDCALL
+HalDisplayString (
+	IN PCHAR String
+);
+
+BOOLEAN
+STDCALL
+HalEnableSystemInterrupt(
+	ULONG Vector,
+	KIRQL Irql,
+	KINTERRUPT_MODE InterruptMode
+);
+
+VOID
+STDCALL
+HalEndSystemInterrupt(
+	KIRQL Irql,
+	ULONG Unknown2
+);
+
+BOOLEAN
+STDCALL
+HalGetEnvironmentVariable(
+	PCH Name,
+	PCH Value,
+	USHORT ValueLength
+);
+
+VOID
+STDCALL
+HalInitializeProcessor(
+	ULONG ProcessorNumber,
+	PVOID ProcessorStack
+);
+
+BOOLEAN
+STDCALL
+HalInitSystem(
+	ULONG BootPhase,
+	PLOADER_PARAMETER_BLOCK LoaderBlock
+);
+
+BOOLEAN
+STDCALL
+HalQueryDisplayOwnership(VOID);
+
+VOID
+STDCALL
+HalReportResourceUsage(VOID);
+
+VOID
+FASTCALL
+HalRequestSoftwareInterrupt(
+	KIRQL SoftwareInterruptRequested
+);
+
+VOID
+STDCALL
+HalReleaseDisplayOwnership(VOID);
+
+VOID
+STDCALL
+HalReturnToFirmware(
+	ULONG Action
+);
+
+VOID
+STDCALL
+HalRequestIpi(
+	ULONG Unknown
+);
+
+BOOLEAN
+STDCALL
+HalSetEnvironmentVariable(
+	IN PCH Name,
+	IN PCH Value
+);
+
+BOOLEAN
+STDCALL
+HalStartNextProcessor(
+    ULONG Unknown1,
+    ULONG Unknown2
+);
+              
+VOID
+STDCALL
+IoAssignDriveLetters(
+	PLOADER_PARAMETER_BLOCK LoaderBlock,
+	PSTRING NtDeviceName,
+	PUCHAR NtSystemPath,
+	PSTRING NtSystemPathString
+);
+  
+/* FIXME FIXME FIXME */
+
+#define HAL_PRIVATE_DISPATCH_VERSION 1
+#define HAL_DISPATCH_VERSION 3
+
+typedef struct _HAL_PRIVATE_DISPATCH {
+  ULONG Version;
+} HAL_PRIVATE_DISPATCH, *PHAL_PRIVATE_DISPATCH;
+
+extern  HAL_PRIVATE_DISPATCH   HalPrivateDispatchTable;
+#define HALPRIVATEDISPATCH     HalPrivateDispatchTable
+
+/* The Following Functions are called through the Dispatch Table */
+#define HalQuerySystemInformation	HALDISPATCH.HalQuerySystemInformation
+#define HalIoAssignDriveLetters		HALDISPATCH.HalIoAssignDriveLetters
+#define HalIoReadPartitionTable    	HALDISPATCH.HalIoReadPartitionTable
+#define HalIoWritePartitionTable    	HALDISPATCH.HalIoWritePartitionTable
+#define HalIoSetPartitionInformation    HALDISPATCH.HalIoSetPartitionInformation
+#endif

Added: branches/new_headers/reactos/include/ndk/haltypes.h
--- branches/new_headers/reactos/include/ndk/haltypes.h	2005-05-08 01:40:13 UTC (rev 15101)
+++ branches/new_headers/reactos/include/ndk/haltypes.h	2005-05-08 01:41:18 UTC (rev 15102)
@@ -0,0 +1,89 @@
+/* $Id: haltypes.h,v 1.1.2.1 2004/10/25 01:24:07 ion Exp $
+ *
+ *  ReactOS Headers
+ *  Copyright (C) 1998-2004 ReactOS Team
+ *
+ *  This program is free software; you can redistribute it and/or modify
+ *  it under the terms of the GNU General Public License as published by
+ *  the Free Software Foundation; either version 2 of the License, or
+ *  (at your option) any later version.
+ *
+ *  This program is distributed in the hope that it will be useful,
+ *  but WITHOUT ANY WARRANTY; without even the implied warranty of
+ *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ *  GNU General Public License for more details.
+ *
+ *  You should have received a copy of the GNU General Public License
+ *  along with this program; if not, write to the Free Software
+ *  Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
+ */
+/*
+ * PROJECT:         ReactOS Native Headers
+ * FILE:            include/ndk/haltypes.h
+ * PURPOSE:         Definitions for Hardware Abstraction Layer types not defined in DDK/IFS
+ * PROGRAMMER:      Alex Ionescu (alex@relsoft.net)
+ * UPDATE HISTORY:
+ *                  Created 06/10/04
+ */
+#ifndef _HALTYPES_H
+#define _HALTYPES_H
+
+#include <reactos/helper.h>
+#include <ddk/ntdddisk.h>
+
+/* HalReturnToFirmware */
+#define FIRMWARE_HALT        1
+#define FIRMWARE_POWERDOWN   2
+#define FIRMWARE_REBOOT      3
+
+/* Boot Flags */
+#define MB_FLAGS_MEM_INFO         (0x1)
+#define MB_FLAGS_BOOT_DEVICE      (0x2)
+#define MB_FLAGS_COMMAND_LINE     (0x4)
+#define MB_FLAGS_MODULE_INFO      (0x8)
+#define MB_FLAGS_AOUT_SYMS        (0x10)
+#define MB_FLAGS_ELF_SYMS         (0x20)
+#define MB_FLAGS_MMAP_INFO        (0x40)
+#define MB_FLAGS_DRIVES_INFO      (0x80)
+#define MB_FLAGS_CONFIG_TABLE     (0x100)
+#define MB_FLAGS_BOOT_LOADER_NAME (0x200)
+#define MB_FLAGS_APM_TABLE        (0x400)
+#define MB_FLAGS_GRAPHICS_TABLE   (0x800)
+
+typedef struct _LOADER_MODULE {
+   ULONG ModStart;
+   ULONG ModEnd;
+   ULONG String;
+   ULONG Reserved;
+} LOADER_MODULE, *PLOADER_MODULE;
+
+typedef struct _LOADER_PARAMETER_BLOCK {
+   ULONG Flags;
+   ULONG MemLower;
+   ULONG MemHigher;
+   ULONG BootDevice;
+   ULONG CommandLine;
+   ULONG ModsCount;
+   ULONG ModsAddr;
+   UCHAR Syms[12];
+   ULONG MmapLength;
+   ULONG MmapAddr;
+   ULONG DrivesCount;
+   ULONG DrivesAddr;
+   ULONG ConfigTable;
+   ULONG BootLoaderName;
+} LOADER_PARAMETER_BLOCK, *PLOADER_PARAMETER_BLOCK;
+
+#ifdef __NTOSKRNL__
+extern ULONG EXPORTED KdComPortInUse;
+#else
+extern ULONG IMPORTED KdComPortInUse;
+#endif
+
+typedef struct _DRIVE_LAYOUT_INFORMATION {
+  DWORD PartitionCount;
+  DWORD Signature;
+  PARTITION_INFORMATION PartitionEntry[1];
+} DRIVE_LAYOUT_INFORMATION;
+#endif
+

Added: branches/new_headers/reactos/include/ndk/i386/floatsave.h
--- branches/new_headers/reactos/include/ndk/i386/floatsave.h	2005-05-08 01:40:13 UTC (rev 15101)
+++ branches/new_headers/reactos/include/ndk/i386/floatsave.h	2005-05-08 01:41:18 UTC (rev 15102)
@@ -0,0 +1,11 @@
+#ifndef __NAPI_I386_FLOATSAVE_H__
+#define __NAPI_I386_FLOATSAVE_H__
+
+#define FLOAT_SAVE_CONTROL (0xFFFF037F)
+#define FLOAT_SAVE_STATUS  (0xFFFF0000)
+#define FLOAT_SAVE_TAG     (0xFFFFFFFF)
+#define FLOAT_SAVE_DATA    (0xFFFF0000)
+
+#endif /* __NAPI_I386_FLOATSAVE_H__ */
+
+/* EOF */

Added: branches/new_headers/reactos/include/ndk/i386/segment.h
--- branches/new_headers/reactos/include/ndk/i386/segment.h	2005-05-08 01:40:13 UTC (rev 15101)
+++ branches/new_headers/reactos/include/ndk/i386/segment.h	2005-05-08 01:41:18 UTC (rev 15102)
@@ -0,0 +1,12 @@
+#ifndef _ASM_SEGMENT_H
+#define _ASM_SEGMENT_H
+
+#define KERNEL_CS            (0x8)
+#define KERNEL_DS            (0x10)
+#define USER_CS              (0x18 + 0x3)
+#define USER_DS              (0x20 + 0x3)
+#define RESERVED_FOR_TSS     (0x28)
+#define PCR_SELECTOR         (0x30)
+#define TEB_SELECTOR         (0x38 + 0x3)
+
+#endif /* _ASM_SEGMENT_H */

Added: branches/new_headers/reactos/include/ndk/inbvfuncs.h
--- branches/new_headers/reactos/include/ndk/inbvfuncs.h	2005-05-08 01:40:13 UTC (rev 15101)
+++ branches/new_headers/reactos/include/ndk/inbvfuncs.h	2005-05-08 01:41:18 UTC (rev 15102)
@@ -0,0 +1,118 @@
+/* $Id: inbvfuncs.h,v 1.1.2.1 2004/10/25 01:24:07 ion Exp $
+ *
+ *  ReactOS Headers
+ *  Copyright (C) 1998-2004 ReactOS Team
+ *
+ *  This program is free software; you can redistribute it and/or modify
+ *  it under the terms of the GNU General Public License as published by
+ *  the Free Software Foundation; either version 2 of the License, or
+ *  (at your option) any later version.
+ *
+ *  This program is distributed in the hope that it will be useful,
+ *  but WITHOUT ANY WARRANTY; without even the implied warranty of
+ *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ *  GNU General Public License for more details.
+ *
+ *  You should have received a copy of the GNU General Public License
+ *  along with this program; if not, write to the Free Software
+ *  Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
+ */
+/*
+ * PROJECT:         ReactOS Native Headers
+ * FILE:            include/ndk/haltypes.h
+ * PURPOSE:         Prototypes for Boot Video Driver not defined in DDK/IFS
+ * PROGRAMMER:      Alex Ionescu (alex@relsoft.net)
+ * UPDATE HISTORY:
+ *                  Created 06/10/04
+ */
+#ifndef _INBVFUNCS_H
+#define _INBVFUNCS_H
+
+VOID
+STDCALL
+InbvAcquireDisplayOwnership(VOID);
+
+BOOLEAN
+STDCALL
+InbvCheckDisplayOwnership(VOID);
+
+BOOLEAN
+STDCALL
+InbvDisplayString(
+	IN PCHAR String
+);
+
+VOID
+STDCALL
+InbvEnableBootDriver(
+	IN BOOLEAN Enable
+);
+
+BOOLEAN
+STDCALL
+InbvEnableDisplayString(
+	IN BOOLEAN Enable
+);
+
+VOID
+STDCALL
+InbvInstallDisplayStringFilter(
+	IN PVOID Unknown
+);
+
+BOOLEAN
+STDCALL
+InbvIsBootDriverInstalled(VOID);
+
+VOID
+STDCALL
+InbvNotifyDisplayOwnershipLost(
+	IN PVOID Callback
+);
+
+BOOLEAN
+STDCALL
+InbvResetDisplay(VOID);
+
+VOID
+STDCALL
+InbvSetScrollRegion(
+	IN ULONG Left,
+	IN ULONG Top,
+	IN ULONG Width,
+	IN ULONG Height
+);
+
+VOID
+STDCALL
+InbvSetTextColor(
+	IN ULONG Color
+);
+
+VOID
+STDCALL
+InbvSolidColorFill(
+	IN ULONG Left,
+	IN ULONG Top,
+	IN ULONG Width,
+	IN ULONG Height,
+	IN ULONG Color
+);
+
+VOID
+STDCALL
+VidCleanUp(VOID);
+
+BOOLEAN
+STDCALL
+VidInitialize(VOID);
+
+BOOLEAN
+STDCALL
+VidResetDisplay(VOID);
+
+BOOLEAN
+STDCALL
+VidIsBootDriverInstalled(VOID);
+
+#endif

Added: branches/new_headers/reactos/include/ndk/iofuncs.h
--- branches/new_headers/reactos/include/ndk/iofuncs.h	2005-05-08 01:40:13 UTC (rev 15101)
+++ branches/new_headers/reactos/include/ndk/iofuncs.h	2005-05-08 01:41:18 UTC (rev 15102)
@@ -0,0 +1,42 @@
+/*
+ *  ReactOS Headers
+ *  Copyright (C) 1998-2004 ReactOS Team
+ *
+ *  This program is free software; you can redistribute it and/or modify
+ *  it under the terms of the GNU General Public License as published by
+ *  the Free Software Foundation; either version 2 of the License, or
+ *  (at your option) any later version.
+ *
+ *  This program is distributed in the hope that it will be useful,
+ *  but WITHOUT ANY WARRANTY; without even the implied warranty of
+ *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ *  GNU General Public License for more details.
+ *
+ *  You should have received a copy of the GNU General Public License
+ *  along with this program; if not, write to the Free Software
+ *  Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
+ */
+/*
+ * PROJECT:         ReactOS Native Headers
+ * FILE:            include/ndk/iofuncs.h
+ * PURPOSE:         Definitions for exported I/O Manager Functions not defined in DDK/IFS
+ * PROGRAMMER:      Alex Ionescu (alex@relsoft.net)
+ * UPDATE HISTORY:
+ *                  Created 06/10/04
+ */
+
+#ifndef _IOFUNCS_H
+#define _IOFUNCS_H
+
+NTSTATUS
+STDCALL
+IoSetIoCompletion (
+    IN PVOID IoCompletion,
+    IN PVOID KeyContext,
+    IN PVOID ApcContext,
+    IN NTSTATUS IoStatus,
+    IN ULONG_PTR IoStatusInformation,
+    IN BOOLEAN Quota
+    );
+#endif
+

Added: branches/new_headers/reactos/include/ndk/iotypes.h
--- branches/new_headers/reactos/include/ndk/iotypes.h	2005-05-08 01:40:13 UTC (rev 15101)
+++ branches/new_headers/reactos/include/ndk/iotypes.h	2005-05-08 01:41:18 UTC (rev 15102)
@@ -0,0 +1,89 @@
+/*
+ *  ReactOS Headers
+ *  Copyright (C) 1998-2004 ReactOS Team
+ *
+ *  This program is free software; you can redistribute it and/or modify
+ *  it under the terms of the GNU General Public License as published by
+ *  the Free Software Foundation; either version 2 of the License, or
+ *  (at your option) any later version.
+ *
+ *  This program is distributed in the hope that it will be useful,
+ *  but WITHOUT ANY WARRANTY; without even the implied warranty of
+ *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ *  GNU General Public License for more details.
+ *
+ *  You should have received a copy of the GNU General Public License
+ *  along with this program; if not, write to the Free Software
+ *  Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
+ */
+/*
+ * PROJECT:         ReactOS Native Headers
+ * FILE:            include/ndk/iotypes.h
+ * PURPOSE:         Definitions for exported I/O Manager Types not defined in DDK/IFS
+ * PROGRAMMER:      Alex Ionescu (alex@relsoft.net)
+ * UPDATE HISTORY:
+ *                  Created 06/10/04
+ */
+
+#ifndef _IOTYPES_H
+#define _IOTYPES_H
+
+#include <reactos/helper.h>
+
+#ifdef __NTOSKRNL__
+extern POBJECT_TYPE EXPORTED IoAdapterObjectType;
+extern POBJECT_TYPE EXPORTED IoDeviceHandlerObjectType;
+extern POBJECT_TYPE EXPORTED IoDeviceObjectType;
+extern POBJECT_TYPE EXPORTED IoDriverObjectType;
+extern POBJECT_TYPE EXPORTED IoFileObjectType;
+extern ULONG EXPORTED IoReadOperationCount;
+extern ULONGLONG EXPORTED IoReadTransferCount;
+extern ULONG EXPORTED IoWriteOperationCount;
+extern ULONGLONG EXPORTED IoWriteTransferCount;
+extern KSPIN_LOCK EXPORTED IoStatisticsLock;
+#else
+extern POBJECT_TYPE IMPORTED IoAdapterObjectType;
+extern POBJECT_TYPE IMPORTED IoDeviceHandlerObjectType;
+extern POBJECT_TYPE IMPORTED IoDeviceObjectType;
+extern POBJECT_TYPE IMPORTED IoDriverObjectType;
+extern POBJECT_TYPE IMPORTED IoFileObjectType;
+extern ULONG IMPORTED IoReadOperationCount;
+extern ULONGLONG IMPORTED IoReadTransferCount;
+extern ULONG IMPORTED IoWriteOperationCount;
+extern ULONGLONG IMPORTED IoWriteTransferCount;
+extern KSPIN_LOCK IMPORTED IoStatisticsLock;
+#endif
+
+typedef struct _MAILSLOT_CREATE_PARAMETERS {
+    ULONG           MailslotQuota;
+    ULONG           MaximumMessageSize;
+    LARGE_INTEGER   ReadTimeout;
+    BOOLEAN         TimeoutSpecified;
+} MAILSLOT_CREATE_PARAMETERS, *PMAILSLOT_CREATE_PARAMETERS;
+
+typedef struct _NAMED_PIPE_CREATE_PARAMETERS {
+    ULONG           NamedPipeType;
+    ULONG           ReadMode;
+    ULONG           CompletionMode;
+    ULONG           MaximumInstances;
+    ULONG           InboundQuota;
+    ULONG           OutboundQuota;
+    LARGE_INTEGER   DefaultTimeout;
+    BOOLEAN         TimeoutSpecified;
+} NAMED_PIPE_CREATE_PARAMETERS, *PNAMED_PIPE_CREATE_PARAMETERS;
+
+/*
+ * PURPOSE: Special timer associated with each device
+ */
+#define IO_TYPE_DRIVER 4L
+#define IO_TYPE_TIMER 9L
+typedef struct _IO_TIMER {
+   USHORT Type;				/* Every IO Object has a Type */
+   USHORT TimerEnabled;			/* Tells us if the Timer is enabled or not */
+   LIST_ENTRY IoTimerList;		/* List of other Timers on the system */
+   PIO_TIMER_ROUTINE TimerRoutine;	/* The associated timer routine */
+   PVOID Context;			/* Context */
+   PDEVICE_OBJECT DeviceObject;		/* Driver that owns this IO Timer */
+} IO_TIMER, *PIO_TIMER;
+#endif
+

Added: branches/new_headers/reactos/include/ndk/kdfuncs.h
--- branches/new_headers/reactos/include/ndk/kdfuncs.h	2005-05-08 01:40:13 UTC (rev 15101)
+++ branches/new_headers/reactos/include/ndk/kdfuncs.h	2005-05-08 01:41:18 UTC (rev 15102)
@@ -0,0 +1,108 @@
+/* $Id: kdfuncs.h,v 1.1.2.1 2004/10/25 01:24:07 ion Exp $
+ *
+ *  ReactOS Headers
+ *  Copyright (C) 1998-2004 ReactOS Team
+ *
+ *  This program is free software; you can redistribute it and/or modify
+ *  it under the terms of the GNU General Public License as published by
+ *  the Free Software Foundation; either version 2 of the License, or
+ *  (at your option) any later version.
+ *
+ *  This program is distributed in the hope that it will be useful,
+ *  but WITHOUT ANY WARRANTY; without even the implied warranty of
+ *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ *  GNU General Public License for more details.
+ *
+ *  You should have received a copy of the GNU General Public License
+ *  along with this program; if not, write to the Free Software
+ *  Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
+ */
+/*
+ * PROJECT:         ReactOS Native Headers
+ * FILE:            include/ndk/kdfuncs.h
+ * PURPOSE:         Prototypes for Kernel Debugger Functions not defined in DDK/IFS
+ * PROGRAMMER:      Alex Ionescu (alex@relsoft.net)
+ * UPDATE HISTORY:
+ *                  Created 06/10/04
+ */
+#ifndef _KDFUNCS_H
+#define _KDFUNCS_H
+
+#include "kdtypes.h"
+
+BYTE
+STDCALL
+KdPollBreakIn(VOID);
+
+BOOLEAN
+STDCALL
+KdPortInitialize(
+	PKD_PORT_INFORMATION PortInformation,
+	DWORD Unknown1,
+	DWORD Unknown2
+);
+
+BOOLEAN
+STDCALL
+KdPortInitializeEx(
+	PKD_PORT_INFORMATION PortInformation,
+	DWORD Unknown1,
+	DWORD Unknown2
+);
+
+BOOLEAN
+STDCALL
+KdPortGetByte(
+	PUCHAR ByteRecieved
+);
+
+BOOLEAN
+STDCALL
+KdPortGetByteEx(
+	PKD_PORT_INFORMATION PortInformation,
+	PUCHAR ByteRecieved
+);
+
+BOOLEAN
+STDCALL
+KdPortPollByte(
+	PUCHAR ByteRecieved
+);
+
+BOOLEAN
+STDCALL
+KdPortPollByteEx(
+	PKD_PORT_INFORMATION PortInformation,
+	PUCHAR ByteRecieved
+);
+
+VOID
+STDCALL
+KdPortPutByte(
+	UCHAR ByteToSend
+);
+
+VOID
+STDCALL
+KdPortPutByteEx(
+	PKD_PORT_INFORMATION PortInformation,
+	UCHAR ByteToSend
+);
+
+VOID
+STDCALL
+KdPortRestore(VOID);
+
+VOID
+STDCALL
+KdPortSave (VOID);
+
+BOOLEAN
+STDCALL
+KdPortDisableInterrupts(VOID);
+
+BOOLEAN
+STDCALL
+KdPortEnableInterrupts(VOID);
+
+#endif

Added: branches/new_headers/reactos/include/ndk/kdtypes.h
--- branches/new_headers/reactos/include/ndk/kdtypes.h	2005-05-08 01:40:13 UTC (rev 15101)
+++ branches/new_headers/reactos/include/ndk/kdtypes.h	2005-05-08 01:41:18 UTC (rev 15102)
@@ -0,0 +1,37 @@
+/* $Id: kdtypes.h,v 1.1.2.1 2004/10/25 01:24:07 ion Exp $
+ *
+ *  ReactOS Headers
+ *  Copyright (C) 1998-2004 ReactOS Team
+ *
+ *  This program is free software; you can redistribute it and/or modify
+ *  it under the terms of the GNU General Public License as published by
+ *  the Free Software Foundation; either version 2 of the License, or
+ *  (at your option) any later version.
+ *
+ *  This program is distributed in the hope that it will be useful,
+ *  but WITHOUT ANY WARRANTY; without even the implied warranty of
+ *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ *  GNU General Public License for more details.
+ *
+ *  You should have received a copy of the GNU General Public License
+ *  along with this program; if not, write to the Free Software
+ *  Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
+ */
+/*
+ * PROJECT:         ReactOS Native Headers
+ * FILE:            include/ndk/kdtypes.h
+ * PURPOSE:         Definitions for Kernel Debugger Types not defined in DDK/IFS
+ * PROGRAMMER:      Alex Ionescu (alex@relsoft.net)
+ * UPDATE HISTORY:
+ *                  Created 06/10/04
+ */
+#ifndef _KDTYPES_H
+#define _KDTYPES_H
+
+typedef struct _KD_PORT_INFORMATION {
+	ULONG ComPort;
+	ULONG BaudRate;
+	ULONG BaseAddress;
+} KD_PORT_INFORMATION, *PKD_PORT_INFORMATION;
+
+#endif

Added: branches/new_headers/reactos/include/ndk/kefuncs.h
--- branches/new_headers/reactos/include/ndk/kefuncs.h	2005-05-08 01:40:13 UTC (rev 15101)
+++ branches/new_headers/reactos/include/ndk/kefuncs.h	2005-05-08 01:41:18 UTC (rev 15102)
@@ -0,0 +1,294 @@
+/* $Id: kefuncs.h,v 1.1.2.1 2004/10/25 01:24:07 ion Exp $
+ *
+ *  ReactOS Headers
+ *  Copyright (C) 1998-2004 ReactOS Team
+ *
+ *  This program is free software; you can redistribute it and/or modify
+ *  it under the terms of the GNU General Public License as published by
+ *  the Free Software Foundation; either version 2 of the License, or
+ *  (at your option) any later version.
+ *
+ *  This program is distributed in the hope that it will be useful,
+ *  but WITHOUT ANY WARRANTY; without even the implied warranty of
+ *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ *  GNU General Public License for more details.
+ *
+ *  You should have received a copy of the GNU General Public License
+ *  along with this program; if not, write to the Free Software
+ *  Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
+ */
+/*
+ * PROJECT:         ReactOS Native Headers
+ * FILE:            include/ndk/kefuncs.h
+ * PURPOSE:         Prototypes for Kernel Functions not defined in DDK/IFS
+ * PROGRAMMER:      Alex Ionescu (alex@relsoft.net)
+ * UPDATE HISTORY:
+ *                  Created 06/10/04
+ */
+#ifndef _KEFUNCS_H
+#define _KEFUNCS_H
+
+#include "ketypes.h"
+
+VOID 
+STDCALL
+KeInitializeApc(
+	IN PKAPC  Apc,
+	IN PKTHREAD  Thread,
+	IN KAPC_ENVIRONMENT  TargetEnvironment,
+	IN PKKERNEL_ROUTINE  KernelRoutine,
+	IN PKRUNDOWN_ROUTINE  RundownRoutine OPTIONAL,
+	IN PKNORMAL_ROUTINE  NormalRoutine,
+	IN KPROCESSOR_MODE  Mode,
+	IN PVOID  Context
+);	
+
+VOID
+STDCALL
+KeEnterKernelDebugger(VOID);
+
+VOID
+FASTCALL
+KiAcquireSpinLock(
+	PKSPIN_LOCK SpinLock
+);
+
+VOID
+FASTCALL
+KiReleaseSpinLock(
+	PKSPIN_LOCK SpinLock
+);
+
+VOID
+STDCALL
+KiDeliverApc(
+	IN KPROCESSOR_MODE  PreviousMode,
+	IN PVOID  Reserved,
+	IN PKTRAP_FRAME  TrapFrame
+);
+
+VOID
+STDCALL
+KiDispatchInterrupt(VOID);
+
+
+BOOLEAN
+STDCALL
+KeAreApcsDisabled(
+	VOID
+	);
+
+VOID
+STDCALL
+KeFlushQueuedDpcs(
+	VOID
+	);
+
+ULONG
+STDCALL
+KeGetRecommendedSharedDataAlignment(
+	VOID
+	);
+
+ULONG
+STDCALL
+KeQueryRuntimeThread(
+	IN PKTHREAD Thread,
+	OUT PULONG UserTime
+	);    
+
+BOOLEAN
+STDCALL
+KeSetKernelStackSwapEnable(
+	IN BOOLEAN Enable
+	);
+
+BOOLEAN
+STDCALL
+KeDeregisterBugCheckReasonCallback(
+    IN PKBUGCHECK_REASON_CALLBACK_RECORD CallbackRecord
+    );
+
+BOOLEAN
+STDCALL
+KeRegisterBugCheckReasonCallback(
+    IN PKBUGCHECK_REASON_CALLBACK_RECORD CallbackRecord,
+    IN PKBUGCHECK_REASON_CALLBACK_ROUTINE CallbackRoutine,
+    IN KBUGCHECK_CALLBACK_REASON Reason,
+    IN PUCHAR Component
+    );
+
+VOID 
+STDCALL
+KeTerminateThread(
+	IN KPRIORITY   	 Increment  	 
+);
+
+BOOLEAN
+STDCALL
+KeIsExecutingDpc(
+	VOID
+);
+
+VOID
+STDCALL
+KeSetEventBoostPriority(
+	IN PKEVENT Event,
+	IN PKTHREAD *Thread OPTIONAL
+);
+
+PVOID
+STDCALL
+KeFindConfigurationEntry(
+    IN PVOID Unknown,
+    IN ULONG Class,
+    IN CONFIGURATION_TYPE Type,
[truncated at 1000 lines; 10962 more skipped]