Add NDK 1.00-pre. Needs some TLC in umtypes.h and a lot of fixes. Not used anywhere yet.
Added: trunk/reactos/include/ndk/
Added: trunk/reactos/include/ndk/cctypes.h
Added: trunk/reactos/include/ndk/extypes.h
Added: trunk/reactos/include/ndk/halfuncs.h
Added: trunk/reactos/include/ndk/haltypes.h
Added: trunk/reactos/include/ndk/i386/
Added: trunk/reactos/include/ndk/i386/floatsave.h
Added: trunk/reactos/include/ndk/i386/segment.h
Added: trunk/reactos/include/ndk/inbvfuncs.h
Added: trunk/reactos/include/ndk/iofuncs.h
Added: trunk/reactos/include/ndk/iotypes.h
Added: trunk/reactos/include/ndk/kdfuncs.h
Added: trunk/reactos/include/ndk/kdtypes.h
Added: trunk/reactos/include/ndk/kefuncs.h
Added: trunk/reactos/include/ndk/ketypes.h
Added: trunk/reactos/include/ndk/ldrfuncs.h
Added: trunk/reactos/include/ndk/ldrtypes.h
Added: trunk/reactos/include/ndk/lpctypes.h
Added: trunk/reactos/include/ndk/mmtypes.h
Added: trunk/reactos/include/ndk/ntndk.h
Added: trunk/reactos/include/ndk/obfuncs.h
Added: trunk/reactos/include/ndk/obtypes.h
Added: trunk/reactos/include/ndk/potypes.h
Added: trunk/reactos/include/ndk/psfuncs.h
Added: trunk/reactos/include/ndk/pstypes.h
Added: trunk/reactos/include/ndk/rtlfuncs.h
Added: trunk/reactos/include/ndk/rtltypes.h
Added: trunk/reactos/include/ndk/sefuncs.h
Added: trunk/reactos/include/ndk/setypes.h
Added: trunk/reactos/include/ndk/umtypes.h
Added: trunk/reactos/include/ndk/zwfuncs.h
Added: trunk/reactos/include/ndk/zwtypes.h

Added: trunk/reactos/include/ndk/cctypes.h
--- trunk/reactos/include/ndk/cctypes.h	2005-06-18 22:54:12 UTC (rev 16065)
+++ trunk/reactos/include/ndk/cctypes.h	2005-06-18 23:33:40 UTC (rev 16066)
@@ -0,0 +1,25 @@
+/*
+ * 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
+
+/* DEPENDENCIES **************************************************************/
+
+/* EXPORTED DATA *************************************************************/
+extern ULONG NTOSAPI CcFastMdlReadWait;
+extern ULONG NTOSAPI CcFastReadNotPossible;
+extern ULONG NTOSAPI CcFastReadWait;
+
+/* ENUMERATIONS **************************************************************/
+
+/* TYPES *********************************************************************/
+
+#endif
+

Added: trunk/reactos/include/ndk/extypes.h
--- trunk/reactos/include/ndk/extypes.h	2005-06-18 22:54:12 UTC (rev 16065)
+++ trunk/reactos/include/ndk/extypes.h	2005-06-18 23:33:40 UTC (rev 16066)
@@ -0,0 +1,49 @@
+/*
+ * PROJECT:         ReactOS Native Headers
+ * FILE:            include/ndk/extypes.h
+ * PURPOSE:         Definitions for exported Executive Functions not defined in DDK/IFS
+ * PROGRAMMER:      Alex Ionescu (alex@relsoft.net)
+ * UPDATE HISTORY:
+ *                  Created 06/10/04
+ */
+
+#ifndef _EXTYPES_H
+#define _EXTYPES_H
+
+/* DEPENDENCIES **************************************************************/
+
+/* EXPORTED DATA *************************************************************/
+extern POBJECT_TYPE NTOSAPI ExIoCompletionType;
+
+/* CONSTANTS *****************************************************************/
+
+/* ENUMERATIONS **************************************************************/
+
+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;
+
+/* TYPES *********************************************************************/
+
+#endif
+

Added: trunk/reactos/include/ndk/halfuncs.h
--- trunk/reactos/include/ndk/halfuncs.h	2005-06-18 22:54:12 UTC (rev 16065)
+++ trunk/reactos/include/ndk/halfuncs.h	2005-06-18 23:33:40 UTC (rev 16066)
@@ -0,0 +1,149 @@
+/*
+ * PROJECT:         ReactOS Native Headers
+ * FILE:            include/ndk/halfuncs.h
+ * PURPOSE:         Prototypes for exported HAL Functions not defined in DDK/IFS
+ * PROGRAMMER:      Alex Ionescu (alex@relsoft.net)
+ * UPDATE HISTORY:
+ *                  Created 06/10/04
+ */
+#ifndef _HALFUNCS_H
+#define _HALFUNCS_H
+
+/* DEPENDENCIES **************************************************************/
+#include "haltypes.h"
+
+/* FUNCTION TYPES ************************************************************/
+
+/* PROTOTYPES ****************************************************************/
+
+VOID
+STDCALL
+HalAcquireDisplayOwnership(
+    IN PHAL_RESET_DISPLAY_PARAMETERS ResetDisplayParameters
+);
+
+BOOLEAN
+STDCALL
+HalAllProcessorsStarted(VOID);
+
+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 Vector
+);
+
+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(
+    FIRMWARE_ENTRY 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(
+    struct _LOADER_PARAMETER_BLOCK *LoaderBlock,
+    PSTRING NtDeviceName,
+    PUCHAR NtSystemPath,
+    PSTRING NtSystemPathString
+);
+
+#endif

Added: trunk/reactos/include/ndk/haltypes.h
--- trunk/reactos/include/ndk/haltypes.h	2005-06-18 22:54:12 UTC (rev 16065)
+++ trunk/reactos/include/ndk/haltypes.h	2005-06-18 23:33:40 UTC (rev 16066)
@@ -0,0 +1,72 @@
+/*
+ * PROJECT:         ReactOS Native Headers
+ * FILE:            include/ndk/haltypes.h
+ * PURPOSE:         Definitions for HAL/BLDR types not defined in DDK/IFS
+ * PROGRAMMER:      Alex Ionescu (alex@relsoft.net)
+ * UPDATE HISTORY:
+ *                  Created 06/10/04
+ */
+#ifndef _HALTYPES_H
+#define _HALTYPES_H
+
+/* DEPENDENCIES **************************************************************/
+#include <ddk/ntdddisk.h>
+
+/* EXPORTED DATA *************************************************************/
+extern ULONG NTOSAPI KdComPortInUse;
+
+/* CONSTANTS *****************************************************************/
+
+/* 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)
+
+/* ENUMERATIONS **************************************************************/
+
+/* TYPES *********************************************************************/
+
+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;
+
+typedef struct _DRIVE_LAYOUT_INFORMATION 
+{
+    DWORD PartitionCount;
+    DWORD Signature;
+    PARTITION_INFORMATION PartitionEntry[1];
+} DRIVE_LAYOUT_INFORMATION;
+
+#endif
+

Added: trunk/reactos/include/ndk/i386/floatsave.h
--- trunk/reactos/include/ndk/i386/floatsave.h	2005-06-18 22:54:12 UTC (rev 16065)
+++ trunk/reactos/include/ndk/i386/floatsave.h	2005-06-18 23:33:40 UTC (rev 16066)
@@ -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: trunk/reactos/include/ndk/i386/segment.h
--- trunk/reactos/include/ndk/i386/segment.h	2005-06-18 22:54:12 UTC (rev 16065)
+++ trunk/reactos/include/ndk/i386/segment.h	2005-06-18 23:33:40 UTC (rev 16066)
@@ -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: trunk/reactos/include/ndk/inbvfuncs.h
--- trunk/reactos/include/ndk/inbvfuncs.h	2005-06-18 22:54:12 UTC (rev 16065)
+++ trunk/reactos/include/ndk/inbvfuncs.h	2005-06-18 23:33:40 UTC (rev 16066)
@@ -0,0 +1,105 @@
+/*
+ * 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
+
+/* DEPENDENCIES **************************************************************/
+
+/* FUNCTION TYPES ************************************************************/
+
+/* PROTOTYPES ****************************************************************/
+
+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: trunk/reactos/include/ndk/iofuncs.h
--- trunk/reactos/include/ndk/iofuncs.h	2005-06-18 22:54:12 UTC (rev 16065)
+++ trunk/reactos/include/ndk/iofuncs.h	2005-06-18 23:33:40 UTC (rev 16066)
@@ -0,0 +1,20 @@
+/*
+ * 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
+
+/* DEPENDENCIES **************************************************************/
+
+/* FUNCTION TYPES ************************************************************/
+
+/* PROTOTYPES ****************************************************************/
+
+#endif
+

Added: trunk/reactos/include/ndk/iotypes.h
--- trunk/reactos/include/ndk/iotypes.h	2005-06-18 22:54:12 UTC (rev 16065)
+++ trunk/reactos/include/ndk/iotypes.h	2005-06-18 23:33:40 UTC (rev 16066)
@@ -0,0 +1,68 @@
+/*
+ * 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
+
+/* DEPENDENCIES **************************************************************/
+
+/* EXPORTED DATA *************************************************************/
+extern POBJECT_TYPE NTOSAPI IoAdapterObjectType;
+extern POBJECT_TYPE NTOSAPI IoDeviceHandlerObjectType;
+extern POBJECT_TYPE NTOSAPI IoDeviceObjectType;
+extern POBJECT_TYPE NTOSAPI IoDriverObjectType;
+extern POBJECT_TYPE NTOSAPI IoFileObjectType;
+extern ULONG NTOSAPI IoReadOperationCount;
+extern ULONGLONG NTOSAPI IoReadTransferCount;
+extern ULONG NTOSAPI IoWriteOperationCount;
+extern ULONGLONG NTOSAPI IoWriteTransferCount;
+extern KSPIN_LOCK NTOSAPI IoStatisticsLock;
+
+/* CONSTANTS *****************************************************************/
+
+/* I/O Types */
+#define IO_TYPE_DRIVER 4L
+#define IO_TYPE_TIMER 9L
+
+/* ENUMERATIONS **************************************************************/
+
+/* TYPES *********************************************************************/
+
+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;
+
+typedef struct _IO_TIMER 
+{
+   USHORT Type;
+   USHORT TimerEnabled;
+   LIST_ENTRY IoTimerList;
+   PIO_TIMER_ROUTINE TimerRoutine;
+   PVOID Context;
+   PDEVICE_OBJECT DeviceObject;
+} IO_TIMER, *PIO_TIMER;
+
+#endif
+

Added: trunk/reactos/include/ndk/kdfuncs.h
--- trunk/reactos/include/ndk/kdfuncs.h	2005-06-18 22:54:12 UTC (rev 16065)
+++ trunk/reactos/include/ndk/kdfuncs.h	2005-06-18 23:33:40 UTC (rev 16066)
@@ -0,0 +1,94 @@
+/*
+ * 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
+
+/* DEPENDENCIES **************************************************************/
+#include "kdtypes.h"
+
+/* FUNCTION TYPES ************************************************************/
+
+/* PROTOTYPES ****************************************************************/
+
+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: trunk/reactos/include/ndk/kdtypes.h
--- trunk/reactos/include/ndk/kdtypes.h	2005-06-18 22:54:12 UTC (rev 16065)
+++ trunk/reactos/include/ndk/kdtypes.h	2005-06-18 23:33:40 UTC (rev 16066)
@@ -0,0 +1,29 @@
+/*
+ * 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
+
+/* DEPENDENCIES **************************************************************/
+
+/* EXPORTED DATA *************************************************************/
+
+/* CONSTANTS *****************************************************************/
+
+/* ENUMERATIONS **************************************************************/
+
+/* TYPES *********************************************************************/
+
+typedef struct _KD_PORT_INFORMATION 
+{
+    ULONG ComPort;
+    ULONG BaudRate;
+    ULONG BaseAddress;
+} KD_PORT_INFORMATION, *PKD_PORT_INFORMATION;
+
+#endif

Added: trunk/reactos/include/ndk/kefuncs.h
--- trunk/reactos/include/ndk/kefuncs.h	2005-06-18 22:54:12 UTC (rev 16065)
+++ trunk/reactos/include/ndk/kefuncs.h	2005-06-18 23:33:40 UTC (rev 16066)
@@ -0,0 +1,280 @@
+/*
+ * 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
+
+/* DEPENDENCIES **************************************************************/
+#include "ketypes.h"
+
+/* FUNCTION TYPES ************************************************************/
+
+/* PROTOTYPES ****************************************************************/
+
+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,
+    IN PULONG RegKey
+);
+
+PVOID
+STDCALL
+KeFindConfigurationNextEntry(
+    IN PVOID Unknown,
+    IN ULONG Class,
+    IN CONFIGURATION_TYPE Type,
+    IN PULONG RegKey,
+    IN PVOID *NextLink
+);
+
+VOID
+STDCALL
+KeFlushEntireTb(
+    IN BOOLEAN Unknown,
+    IN BOOLEAN CurrentCpuOnly
+);
+
+VOID
+STDCALL
+KeRevertToUserAffinityThread(
+    VOID
+);
+
+VOID
+STDCALL
+KiCoprocessorError(
+    VOID
+);
+
+VOID
+STDCALL
+KiUnexpectedInterrupt(
+    VOID
+);
+
+VOID
+STDCALL
+KeSetDmaIoCoherency(
+    IN ULONG Coherency
+);
+
+VOID
+STDCALL
+KeSetProfileIrql(
+    IN KIRQL ProfileIrql
+);
+
+NTSTATUS
+STDCALL
+KeSetAffinityThread(
+    PKTHREAD Thread,
+    KAFFINITY Affinity
+);
+            
+VOID
+STDCALL
+KeSetSystemAffinityThread(
+    IN KAFFINITY Affinity
+);
+
+NTSTATUS
+STDCALL
+KeUserModeCallback(
+    IN ULONG    FunctionID,
+    IN PVOID    InputBuffer,
+    IN ULONG    InputLength,
+    OUT PVOID    *OutputBuffer,
+    OUT PULONG    OutputLength
+);
+
+VOID
+STDCALL
+KeSetTimeIncrement(
+    IN ULONG MaxIncrement,
+    IN ULONG MinIncrement
+);
+
+VOID
+STDCALL
+KeInitializeInterrupt(
+    PKINTERRUPT InterruptObject,
+    PKSERVICE_ROUTINE ServiceRoutine,
+    PVOID ServiceContext,
+    PKSPIN_LOCK SpinLock,
+    ULONG Vector,
+    KIRQL Irql,
+    KIRQL SynchronizeIrql,
+    KINTERRUPT_MODE InterruptMode,
+    BOOLEAN ShareVector,
+    CHAR ProcessorNumber,
+    BOOLEAN FloatingSave
+);
+    
+BOOLEAN
+STDCALL 
+KeConnectInterrupt(
+    PKINTERRUPT InterruptObject
+);
+
+VOID 
+STDCALL 
+KeDisconnectInterrupt(
+    PKINTERRUPT InterruptObject
+);
+
+struct _KPROCESS* 
+KeGetCurrentProcess(
+    VOID
+);
+
+VOID
+KeSetGdtSelector(
+    ULONG Entry,
+    ULONG Value1,
+    ULONG Value2
+);
+
+LONG
+STDCALL
+KeReadStateMutant(
+    IN PKMUTANT Mutant
+);
+
+VOID
+STDCALL
+KeInitializeMutant(
+    IN PKMUTANT Mutant,
+    IN BOOLEAN InitialOwner
+);
+                
+LONG
+STDCALL
+KeReleaseMutant(
+    IN PKMUTANT Mutant,
+    IN KPRIORITY Increment,
+    IN BOOLEAN Abandon,
+    IN BOOLEAN Wait
+);
+
+NTSTATUS
+STDCALL
+KeRaiseUserException(
+    IN NTSTATUS ExceptionCode
+    );
+    
+#endif

Added: trunk/reactos/include/ndk/ketypes.h
--- trunk/reactos/include/ndk/ketypes.h	2005-06-18 22:54:12 UTC (rev 16065)
+++ trunk/reactos/include/ndk/ketypes.h	2005-06-18 23:33:40 UTC (rev 16066)
@@ -0,0 +1,129 @@
+/*
+ * PROJECT:         ReactOS Native Headers
+ * FILE:            include/ndk/ketypes.h
+ * PURPOSE:         Definitions for Kernel Types not defined in DDK/IFS
+ * PROGRAMMER:      Alex Ionescu (alex@relsoft.net)
+ * UPDATE HISTORY:
+ *                  Created 06/10/04
+ */
+#ifndef _KETYPES_H
+#define _KETYPES_H
+
+/* DEPENDENCIES **************************************************************/
+#include "haltypes.h"
+
+/* EXPORTED DATA *************************************************************/
+extern CHAR NTOSAPI KeNumberProcessors;
+extern LOADER_PARAMETER_BLOCK NTOSAPI KeLoaderBlock;
+extern ULONG NTOSAPI KeDcacheFlushCount;
+extern ULONG NTOSAPI KeIcacheFlushCount;
+extern KAFFINITY NTOSAPI KeActiveProcessors;
+extern ULONG NTOSAPI KiDmaIoCoherency; /* RISC Architectures only */
[truncated at 1000 lines; 8411 more skipped]