#ifndef __NTDDK_EX__H__
#define __NTDDK_EX__H__
+#ifdef ASSERT
#undef ASSERT
-#define ASSERT
+#define ASSERT(x) ((void)0)
+// #define ASSERT(x) if (!(x)) { RtlAssert("#x",__FILE__,__LINE__, ""); }
+#endif
-typedef enum _SYSTEM_INFORMATION_CLASS
-{
+#ifndef FILE_CHARACTERISTIC_PNP_DEVICE // DDK 2003
+#define FILE_CHARACTERISTIC_PNP_DEVICE 0x00000800
+#endif // !FILE_CHARACTERISTIC_PNP_DEVICE
+
+typedef enum _SYSTEM_INFORMATION_CLASS {
SystemBasicInformation,
SystemProcessorInformation,
SystemPerformanceInformation,
SystemTimeOfDayInformation,
- SystemPathInformation, /// Obsolete: Use KUSER_SHARED_DATA
+ SystemPathInformation,
SystemProcessInformation,
SystemCallCountInformation,
SystemDeviceInformation,
SystemUnloadGdiDriverInformation,
SystemTimeAdjustmentInformation,
SystemSummaryMemoryInformation,
+#ifndef __REACTOS__
+ SystemNextEventIdInformation,
+ SystemEventIdsInformation,
+ SystemCrashDumpInformation,
+#else
SystemMirrorMemoryInformation,
SystemPerformanceTraceInformation,
SystemObsolete0,
+#endif
SystemExceptionInformation,
SystemCrashDumpStateInformation,
SystemKernelDebuggerInformation,
SystemPrioritySeperation,
SystemPlugPlayBusInformation,
SystemDockInformation,
+#ifdef __REACTOS__
SystemPowerInformationNative,
+#elif defined IRP_MN_START_DEVICE
+ SystemPowerInformationInfo,
+#else
+ SystemPowerInformation,
+#endif
SystemProcessorSpeedInformation,
SystemCurrentTimeZoneInformation,
SystemLookasideInformation,
+#ifdef __REACTOS__
SystemTimeSlipNotification,
SystemSessionCreate,
SystemSessionDetach,
SystemPrefetchPathInformation,
SystemVerifierFaultsInformation,
MaxSystemInfoClass,
+#endif //__REACTOS__
} SYSTEM_INFORMATION_CLASS;
+
NTSYSAPI
NTSTATUS
NTAPI
} SYSTEM_MODULE_INFORMATION, *PSYSTEM_MODULE_INFORMATION;
typedef unsigned short WORD;
-//typedef unsigned int BOOL;
+#ifndef __REACTOS__
+typedef unsigned int BOOL;
+#endif //__REACTOS__
typedef unsigned long DWORD;
typedef unsigned char BYTE;
*/
} KTHREAD_HDR, *PKTHREAD_HDR;
-#ifdef __REACTOS__
+#ifndef __REACTOS__
typedef struct _IMAGE_DOS_HEADER { // DOS .EXE header
WORD e_magic; // Magic number
WORD e_cblp; // Bytes on last page of file
NTHALAPI
VOID
+NTAPI
HalDisplayString (
PUCHAR String
);
NTHALAPI
VOID
+NTAPI
HalQueryDisplayParameters (
OUT PULONG WidthInCharacters,
OUT PULONG HeightInLines,
NTHALAPI
VOID
+NTAPI
HalSetDisplayParameters (
IN ULONG CursorColumn,
IN ULONG CursorRow