[XDK]
authorAmine Khaldi <amine.khaldi@reactos.org>
Thu, 18 Mar 2010 22:45:30 +0000 (22:45 +0000)
committerAmine Khaldi <amine.khaldi@reactos.org>
Thu, 18 Mar 2010 22:45:30 +0000 (22:45 +0000)
- Apply a consistent formatting.
[WDM]
- Update wdm.h to reflect XDK changes.

svn path=/branches/header-work/; revision=46267

30 files changed:
include/ddk/wdm.h
include/xdk/amd64/ke.h
include/xdk/cmfuncs.h
include/xdk/cmtypes.h
include/xdk/exfuncs.h
include/xdk/extypes.h
include/xdk/halfuncs.h
include/xdk/ia64/ke.h
include/xdk/interlocked.h
include/xdk/iofuncs.h
include/xdk/iotypes.h
include/xdk/kdfuncs.h
include/xdk/kefuncs.h
include/xdk/ketypes.h
include/xdk/mips/ke.h
include/xdk/mmfuncs.h
include/xdk/mmtypes.h
include/xdk/obfuncs.h
include/xdk/obtypes.h
include/xdk/pofuncs.h
include/xdk/potypes.h
include/xdk/ppc/ke.h
include/xdk/psfuncs.h
include/xdk/rtlfuncs.h
include/xdk/rtltypes.h
include/xdk/sefuncs.h
include/xdk/setypes.h
include/xdk/wmifuncs.h
include/xdk/x86/ke.h
include/xdk/zwfuncs.h

index f8dca42..949c1c8 100644 (file)
@@ -145,42 +145,44 @@ typedef struct _CONTEXT *PCONTEXT;
 #if defined(__GNUC__)
 
 static __inline__ BOOLEAN
-InterlockedBitTestAndSet(IN LONG volatile *Base,
-                         IN LONG Bit)
+InterlockedBitTestAndSet(
+  IN LONG volatile *Base,
+  IN LONG Bit)
 {
 #if defined(_M_IX86)
-       LONG OldBit;
-       __asm__ __volatile__("lock "
-                            "btsl %2,%1\n\t"
-                            "sbbl %0,%0\n\t"
-                            :"=r" (OldBit),"+m" (*Base)
-                            :"Ir" (Bit)
-                            : "memory");
-       return OldBit;
+  LONG OldBit;
+  __asm__ __volatile__("lock "
+                       "btsl %2,%1\n\t"
+                       "sbbl %0,%0\n\t"
+                       :"=r" (OldBit),"+m" (*Base)
+                       :"Ir" (Bit)
+                       : "memory");
+  return OldBit;
 #else
-       return (_InterlockedOr(Base, 1 << Bit) >> Bit) & 1;
+  return (_InterlockedOr(Base, 1 << Bit) >> Bit) & 1;
 #endif
 }
 
 static __inline__ BOOLEAN
-InterlockedBitTestAndReset(IN LONG volatile *Base,
-                           IN LONG Bit)
+InterlockedBitTestAndReset(
+  IN LONG volatile *Base,
+  IN LONG Bit)
 {
 #if defined(_M_IX86)
-       LONG OldBit;
-       __asm__ __volatile__("lock "
-                            "btrl %2,%1\n\t"
-                            "sbbl %0,%0\n\t"
-                            :"=r" (OldBit),"+m" (*Base)
-                            :"Ir" (Bit)
-                            : "memory");
-       return OldBit;
+  LONG OldBit;
+  __asm__ __volatile__("lock "
+                       "btrl %2,%1\n\t"
+                       "sbbl %0,%0\n\t"
+                       :"=r" (OldBit),"+m" (*Base)
+                       :"Ir" (Bit)
+                       : "memory");
+  return OldBit;
 #else
-       return (_InterlockedAnd(Base, ~(1 << Bit)) >> Bit) & 1;
+  return (_InterlockedAnd(Base, ~(1 << Bit)) >> Bit) & 1;
 #endif
 }
 
-#endif
+#endif /* defined(__GNUC__) */
 
 #define BitScanForward _BitScanForward
 #define BitScanReverse _BitScanReverse
@@ -218,8 +220,8 @@ LONG
 FASTCALL
 InterlockedCompareExchange(
   IN OUT LONG volatile *Destination,
-  IN LONG  Exchange,
-  IN LONG  Comparand);
+  IN LONG Exchange,
+  IN LONG Comparand);
 
 NTKERNELAPI
 LONG
@@ -235,7 +237,7 @@ InterlockedExchangeAdd(
   IN OUT LONG volatile *Addend,
   IN LONG  Value);
 
-#else // !defined(NO_INTERLOCKED_INTRINSICS)
+#else /* !defined(NO_INTERLOCKED_INTRINSICS) */
 
 #define InterlockedExchange _InterlockedExchange
 #define InterlockedIncrement _InterlockedIncrement
@@ -246,9 +248,9 @@ InterlockedExchangeAdd(
 #define InterlockedAnd _InterlockedAnd
 #define InterlockedXor _InterlockedXor
 
-#endif // !defined(NO_INTERLOCKED_INTRINSICS)
+#endif /* !defined(NO_INTERLOCKED_INTRINSICS) */
 
-#endif // defined (_X86_)
+#endif /* defined (_X86_) */
 
 #if !defined (_WIN64)
 /*
@@ -311,10 +313,10 @@ InterlockedExchangeAdd(
 FORCEINLINE
 LONG64
 InterlockedAdd64(
-    IN OUT LONG64 volatile *Addend,
-    IN LONG64 Value)
+  IN OUT LONG64 volatile *Addend,
+  IN LONG64 Value)
 {
-    return InterlockedExchangeAdd64(Addend, Value) + Value;
+  return InterlockedExchangeAdd64(Addend, Value) + Value;
 }
 //#endif
 #endif
@@ -350,43 +352,43 @@ InterlockedAdd64(
 #define HASH_STRING_ALGORITHM_INVALID     0xffffffff
 
 typedef struct _RTL_BITMAP {
-    ULONG SizeOfBitMap;
-    PULONG Buffer;
+  ULONG SizeOfBitMap;
+  PULONG Buffer;
 } RTL_BITMAP, *PRTL_BITMAP;
 
 typedef struct _RTL_BITMAP_RUN {
-    ULONG StartingIndex;
-    ULONG NumberOfBits;
+  ULONG StartingIndex;
+  ULONG NumberOfBits;
 } RTL_BITMAP_RUN, *PRTL_BITMAP_RUN;
 
 typedef NTSTATUS
 (DDKAPI *PRTL_QUERY_REGISTRY_ROUTINE)(
-    IN PWSTR ValueName,
-    IN ULONG ValueType,
-    IN PVOID ValueData,
-    IN ULONG ValueLength,
-    IN PVOID Context,
-    IN PVOID EntryContext);
+  IN PWSTR ValueName,
+  IN ULONG ValueType,
+  IN PVOID ValueData,
+  IN ULONG ValueLength,
+  IN PVOID Context,
+  IN PVOID EntryContext);
 
 typedef struct _RTL_QUERY_REGISTRY_TABLE {
-    PRTL_QUERY_REGISTRY_ROUTINE QueryRoutine;
-    ULONG Flags;
-    PCWSTR Name;
-    PVOID EntryContext;
-    ULONG DefaultType;
-    PVOID DefaultData;
-    ULONG DefaultLength;
+  PRTL_QUERY_REGISTRY_ROUTINE QueryRoutine;
+  ULONG Flags;
+  PCWSTR Name;
+  PVOID EntryContext;
+  ULONG DefaultType;
+  PVOID DefaultData;
+  ULONG DefaultLength;
 } RTL_QUERY_REGISTRY_TABLE, *PRTL_QUERY_REGISTRY_TABLE;
 
 typedef struct _TIME_FIELDS {
-    CSHORT Year;
-    CSHORT Month;
-    CSHORT Day;
-    CSHORT Hour;
-    CSHORT Minute;
-    CSHORT Second;
-    CSHORT Milliseconds;
-    CSHORT Weekday;
+  CSHORT Year;
+  CSHORT Month;
+  CSHORT Day;
+  CSHORT Hour;
+  CSHORT Minute;
+  CSHORT Second;
+  CSHORT Milliseconds;
+  CSHORT Weekday;
 } TIME_FIELDS, *PTIME_FIELDS;
 
 /* Slist Header */
@@ -396,42 +398,42 @@ typedef struct _TIME_FIELDS {
 #if defined(_WIN64)
 typedef struct DECLSPEC_ALIGN(16) _SLIST_ENTRY *PSLIST_ENTRY;
 typedef struct DECLSPEC_ALIGN(16) _SLIST_ENTRY {
-       PSLIST_ENTRY Next;
+  PSLIST_ENTRY Next;
 } SLIST_ENTRY;
 typedef union DECLSPEC_ALIGN(16) _SLIST_HEADER {
-    struct {
-        ULONGLONG Alignment;
-        ULONGLONG Region;
-    } DUMMYSTRUCTNAME;
-    struct {
-        ULONGLONG Depth:16;
-        ULONGLONG Sequence:9;
-        ULONGLONG NextEntry:39;
-        ULONGLONG HeaderType:1;
-        ULONGLONG Init:1;
-        ULONGLONG Reserved:59;
-        ULONGLONG Region:3;
-    } Header8;
-    struct {
-        ULONGLONG Depth:16;
-        ULONGLONG Sequence:48;
-        ULONGLONG HeaderType:1;
-        ULONGLONG Init:1;
-        ULONGLONG Reserved:2;
-        ULONGLONG NextEntry:60;
-    } Header16;
+  struct {
+    ULONGLONG Alignment;
+    ULONGLONG Region;
+  } DUMMYSTRUCTNAME;
+  struct {
+    ULONGLONG Depth:16;
+    ULONGLONG Sequence:9;
+    ULONGLONG NextEntry:39;
+    ULONGLONG HeaderType:1;
+    ULONGLONG Init:1;
+    ULONGLONG Reserved:59;
+    ULONGLONG Region:3;
+  } Header8;
+  struct {
+    ULONGLONG Depth:16;
+    ULONGLONG Sequence:48;
+    ULONGLONG HeaderType:1;
+    ULONGLONG Init:1;
+    ULONGLONG Reserved:2;
+    ULONGLONG NextEntry:60;
+  } Header16;
 } SLIST_HEADER, *PSLIST_HEADER;
 #else
 #define SLIST_ENTRY SINGLE_LIST_ENTRY
 #define _SLIST_ENTRY _SINGLE_LIST_ENTRY
 #define PSLIST_ENTRY PSINGLE_LIST_ENTRY
 typedef union _SLIST_HEADER {
-    ULONGLONG Alignment;
-    struct {
-        SLIST_ENTRY Next;
-        USHORT Depth;
-        USHORT Sequence;
-    } DUMMYSTRUCTNAME;
+  ULONGLONG Alignment;
+  struct {
+    SLIST_ENTRY Next;
+    USHORT Depth;
+    USHORT Sequence;
+  } DUMMYSTRUCTNAME;
 } SLIST_HEADER, *PSLIST_HEADER;
 #endif
 
@@ -548,39 +550,38 @@ typedef enum _MODE {
 #define EXCEPTION_MAXIMUM_PARAMETERS 15
 
 typedef struct _EXCEPTION_RECORD {
-    NTSTATUS ExceptionCode;
-    ULONG ExceptionFlags;
-    struct _EXCEPTION_RECORD *ExceptionRecord;
-    PVOID ExceptionAddress;
-    ULONG NumberParameters;
-    ULONG_PTR ExceptionInformation[EXCEPTION_MAXIMUM_PARAMETERS];
+  NTSTATUS ExceptionCode;
+  ULONG ExceptionFlags;
+  struct _EXCEPTION_RECORD *ExceptionRecord;
+  PVOID ExceptionAddress;
+  ULONG NumberParameters;
+  ULONG_PTR ExceptionInformation[EXCEPTION_MAXIMUM_PARAMETERS];
 } EXCEPTION_RECORD, *PEXCEPTION_RECORD;
 
 typedef struct _EXCEPTION_RECORD32 {
-    NTSTATUS ExceptionCode;
-    ULONG ExceptionFlags;
-    ULONG ExceptionRecord;
-    ULONG ExceptionAddress;
-    ULONG NumberParameters;
-    ULONG ExceptionInformation[EXCEPTION_MAXIMUM_PARAMETERS];
+  NTSTATUS ExceptionCode;
+  ULONG ExceptionFlags;
+  ULONG ExceptionRecord;
+  ULONG ExceptionAddress;
+  ULONG NumberParameters;
+  ULONG ExceptionInformation[EXCEPTION_MAXIMUM_PARAMETERS];
 } EXCEPTION_RECORD32, *PEXCEPTION_RECORD32;
 
 typedef struct _EXCEPTION_RECORD64 {
-    NTSTATUS ExceptionCode;
-    ULONG ExceptionFlags;
-    ULONG64 ExceptionRecord;
-    ULONG64 ExceptionAddress;
-    ULONG NumberParameters;
-    ULONG __unusedAlignment;
-    ULONG64 ExceptionInformation[EXCEPTION_MAXIMUM_PARAMETERS];
+  NTSTATUS ExceptionCode;
+  ULONG ExceptionFlags;
+  ULONG64 ExceptionRecord;
+  ULONG64 ExceptionAddress;
+  ULONG NumberParameters;
+  ULONG __unusedAlignment;
+  ULONG64 ExceptionInformation[EXCEPTION_MAXIMUM_PARAMETERS];
 } EXCEPTION_RECORD64, *PEXCEPTION_RECORD64;
 
 typedef struct _EXCEPTION_POINTERS {
-    PEXCEPTION_RECORD ExceptionRecord;
-    PCONTEXT ContextRecord;
+  PEXCEPTION_RECORD ExceptionRecord;
+  PCONTEXT ContextRecord;
 } EXCEPTION_POINTERS, *PEXCEPTION_POINTERS;
 
-
 typedef enum _KBUGCHECK_CALLBACK_REASON {
   KbCallbackInvalid,
   KbCallbackReserved1,
@@ -593,18 +594,18 @@ struct _KBUGCHECK_REASON_CALLBACK_RECORD;
 
 typedef VOID
 (DDKAPI *PKBUGCHECK_REASON_CALLBACK_ROUTINE)(
-  IN KBUGCHECK_CALLBACK_REASON  Reason,
-  IN struct _KBUGCHECK_REASON_CALLBACK_RECORD  *Record,
-  IN OUT PVOID  ReasonSpecificData,
-  IN ULONG  ReasonSpecificDataLength);
+  IN KBUGCHECK_CALLBACK_REASON Reason,
+  IN struct _KBUGCHECK_REASON_CALLBACK_RECORD *Record,
+  IN OUT PVOID ReasonSpecificData,
+  IN ULONG ReasonSpecificDataLength);
 
 typedef struct _KBUGCHECK_REASON_CALLBACK_RECORD {
-  LIST_ENTRY  Entry;
-  PKBUGCHECK_REASON_CALLBACK_ROUTINE  CallbackRoutine;
-  PUCHAR  Component;
-  ULONG_PTR  Checksum;
-  KBUGCHECK_CALLBACK_REASON  Reason;
-  UCHAR  State;
+  LIST_ENTRY Entry;
+  PKBUGCHECK_REASON_CALLBACK_ROUTINE CallbackRoutine;
+  PUCHAR Component;
+  ULONG_PTR Checksum;
+  KBUGCHECK_CALLBACK_REASON Reason;
+  UCHAR State;
 } KBUGCHECK_REASON_CALLBACK_RECORD, *PKBUGCHECK_REASON_CALLBACK_RECORD;
 
 typedef enum _KBUGCHECK_BUFFER_DUMP_STATE {
@@ -617,23 +618,23 @@ typedef enum _KBUGCHECK_BUFFER_DUMP_STATE {
 
 typedef VOID
 (DDKAPI *PKBUGCHECK_CALLBACK_ROUTINE)(
-  IN PVOID  Buffer,
-  IN ULONG  Length);
+  IN PVOID Buffer,
+  IN ULONG Length);
 
 typedef struct _KBUGCHECK_CALLBACK_RECORD {
-  LIST_ENTRY  Entry;
-  PKBUGCHECK_CALLBACK_ROUTINE  CallbackRoutine;
-  PVOID  Buffer;
-  ULONG  Length;
-  PUCHAR  Component;
-  ULONG_PTR  Checksum;
-  UCHAR  State;
+  LIST_ENTRY Entry;
+  PKBUGCHECK_CALLBACK_ROUTINE CallbackRoutine;
+  PVOID Buffer;
+  ULONG Length;
+  PUCHAR Component;
+  ULONG_PTR Checksum;
+  UCHAR State;
 } KBUGCHECK_CALLBACK_RECORD, *PKBUGCHECK_CALLBACK_RECORD;
 
 typedef BOOLEAN
 (DDKAPI *PNMI_CALLBACK)(
-    IN PVOID Context,
-    IN BOOLEAN Handled);
+  IN PVOID Context,
+  IN BOOLEAN Handled);
 
 typedef enum _TRACE_INFORMATION_CLASS {
   TraceIdClass,
@@ -750,7 +751,7 @@ typedef VOID
   VOID);
 
 typedef enum _KD_OPTION {
-    KD_OPTION_SET_BLOCK_ENABLE,
+  KD_OPTION_SET_BLOCK_ENABLE,
 } KD_OPTION;
 
 typedef enum _INTERFACE_TYPE {
@@ -777,24 +778,23 @@ typedef enum _INTERFACE_TYPE {
 
 typedef VOID
 (DDKAPI *PKNORMAL_ROUTINE)(
-  IN PVOID  NormalContext,
-  IN PVOID  SystemArgument1,
-  IN PVOID  SystemArgument2);
+  IN PVOID NormalContext,
+  IN PVOID SystemArgument1,
+  IN PVOID SystemArgument2);
 
 typedef VOID
 (DDKAPI *PKRUNDOWN_ROUTINE)(
-  IN struct _KAPC  *Apc);
+  IN struct _KAPC *Apc);
 
 typedef VOID
 (DDKAPI *PKKERNEL_ROUTINE)(
-  IN struct _KAPC  *Apc,
-  IN OUT PKNORMAL_ROUTINE  *NormalRoutine,
-  IN OUT PVOID  *NormalContext,
-  IN OUT PVOID  *SystemArgument1,
-  IN OUT PVOID  *SystemArgument2);
+  IN struct _KAPC *Apc,
+  IN OUT PKNORMAL_ROUTINE *NormalRoutine,
+  IN OUT PVOID *NormalContext,
+  IN OUT PVOID *SystemArgument1,
+  IN OUT PVOID *SystemArgument2);
 
-typedef struct _KAPC
-{
+typedef struct _KAPC {
   UCHAR Type;
   UCHAR SpareByte0;
   UCHAR Size;
@@ -814,26 +814,24 @@ typedef struct _KAPC
 } KAPC, *PKAPC, *RESTRICTED_POINTER PRKAPC;
 
 typedef struct _KDEVICE_QUEUE_ENTRY {
-  LIST_ENTRY  DeviceListEntry;
-  ULONG  SortKey;
-  BOOLEAN  Inserted;
+  LIST_ENTRY DeviceListEntry;
+  ULONG SortKey;
+  BOOLEAN Inserted;
 } KDEVICE_QUEUE_ENTRY, *PKDEVICE_QUEUE_ENTRY,
 *RESTRICTED_POINTER PRKDEVICE_QUEUE_ENTRY;
 
 typedef PVOID PKIPI_CONTEXT;
 
-typedef
-VOID
+typedef VOID
 (NTAPI *PKIPI_WORKER)(
   IN PKIPI_CONTEXT PacketContext,
   IN PVOID Parameter1,
   IN PVOID Parameter2,
   IN PVOID Parameter3);
 
-typedef
-ULONG_PTR
+typedef ULONG_PTR
 (NTAPI *PKIPI_BROADCAST_WORKER)(
-    IN ULONG_PTR Argument);
+  IN ULONG_PTR Argument);
 
 typedef ULONG_PTR KSPIN_LOCK, *PKSPIN_LOCK;
 
@@ -895,14 +893,14 @@ typedef enum _KSPIN_LOCK_QUEUE_NUMBER {
   LockQueueMaximumLock = LockQueueTimerTableLock + LOCK_QUEUE_TIMER_TABLE_LOCKS
 } KSPIN_LOCK_QUEUE_NUMBER, *PKSPIN_LOCK_QUEUE_NUMBER;
 
-#endif
+#endif /* defined(_AMD64_) */
 
 typedef VOID
 (DDKAPI *PKDEFERRED_ROUTINE)(
-  IN struct _KDPC  *Dpc,
-  IN PVOID  DeferredContext,
-  IN PVOID  SystemArgument1,
-  IN PVOID  SystemArgument2);
+  IN struct _KDPC *Dpc,
+  IN PVOID DeferredContext,
+  IN PVOID SystemArgument1,
+  IN PVOID SystemArgument2);
 
 typedef enum _KDPC_IMPORTANCE {
   LowImportance,
@@ -911,17 +909,16 @@ typedef enum _KDPC_IMPORTANCE {
   MediumHighImportance
 } KDPC_IMPORTANCE;
 
-typedef struct _KDPC
-{
-    UCHAR Type;
-    UCHAR Importance;
-    volatile USHORT Number;
-    LIST_ENTRY DpcListEntry;
-    PKDEFERRED_ROUTINE DeferredRoutine;
-    PVOID DeferredContext;
-    PVOID SystemArgument1;
-    PVOID SystemArgument2;
-    volatile PVOID  DpcData;
+typedef struct _KDPC {
+  UCHAR Type;
+  UCHAR Importance;
+  volatile USHORT Number;
+  LIST_ENTRY DpcListEntry;
+  PKDEFERRED_ROUTINE DeferredRoutine;
+  PVOID DeferredContext;
+  PVOID SystemArgument1;
+  PVOID SystemArgument2;
+  volatile PVOID  DpcData;
 } KDPC, *PKDPC, *RESTRICTED_POINTER PRKDPC;
 
 typedef struct _KDPC_WATCHDOG_INFORMATION {
@@ -941,126 +938,122 @@ typedef struct _KDEVICE_QUEUE {
   union {
     BOOLEAN Busy;
     struct {
-      LONG64 Reserved : 8;
-      LONG64 Hint : 56;
+      LONG64 Reserved:8;
+      LONG64 Hint:56;
     };
   };
   #else
   BOOLEAN Busy;
   #endif
-
 } KDEVICE_QUEUE, *PKDEVICE_QUEUE, *RESTRICTED_POINTER PRKDEVICE_QUEUE;
 
 #define TIMER_EXPIRED_INDEX_BITS        6
 #define TIMER_PROCESSOR_INDEX_BITS      5
+
 typedef struct _DISPATCHER_HEADER {
-    _ANONYMOUS_UNION union {
-        _ANONYMOUS_STRUCT struct {
-            UCHAR Type;
-            _ANONYMOUS_UNION union {
-                _ANONYMOUS_UNION union {
-                    UCHAR TimerControlFlags;
-                    _ANONYMOUS_STRUCT struct {
-                        UCHAR Absolute:1;
-                        UCHAR Coalescable:1;
-                        UCHAR KeepShifting:1;
-                        UCHAR EncodedTolerableDelay:5;
-                    } DUMMYSTRUCTNAME;
-                } DUMMYUNIONNAME;
-                UCHAR Abandoned;
+  _ANONYMOUS_UNION union {
+    _ANONYMOUS_STRUCT struct {
+      UCHAR Type;
+      _ANONYMOUS_UNION union {
+        _ANONYMOUS_UNION union {
+          UCHAR TimerControlFlags;
+          _ANONYMOUS_STRUCT struct {
+            UCHAR Absolute:1;
+            UCHAR Coalescable:1;
+            UCHAR KeepShifting:1;
+            UCHAR EncodedTolerableDelay:5;
+          } DUMMYSTRUCTNAME;
+        } DUMMYUNIONNAME;
+        UCHAR Abandoned;
 #if (NTDDI_VERSION < NTDDI_WIN7)
-                UCHAR NpxIrql;
+        UCHAR NpxIrql;
 #endif
-                BOOLEAN Signalling;
-            } DUMMYUNIONNAME;
-            _ANONYMOUS_UNION union {
-                _ANONYMOUS_UNION union {
-                    UCHAR ThreadControlFlags;
-                    _ANONYMOUS_STRUCT struct {
-                        UCHAR CpuThrottled:1;
-                        UCHAR CycleProfiling:1;
-                        UCHAR CounterProfiling:1;
-                        UCHAR Reserved:5;
-                    } DUMMYSTRUCTNAME;
-                } DUMMYUNIONNAME;
-                UCHAR Size;
-                UCHAR Hand;
-            } DUMMYUNIONNAME2;
-            _ANONYMOUS_UNION union {
+        BOOLEAN Signalling;
+      } DUMMYUNIONNAME;
+      _ANONYMOUS_UNION union {
+        _ANONYMOUS_UNION union {
+          UCHAR ThreadControlFlags;
+          _ANONYMOUS_STRUCT struct {
+            UCHAR CpuThrottled:1;
+            UCHAR CycleProfiling:1;
+            UCHAR CounterProfiling:1;
+            UCHAR Reserved:5;
+          } DUMMYSTRUCTNAME;
+        } DUMMYUNIONNAME;
+        UCHAR Size;
+        UCHAR Hand;
+      } DUMMYUNIONNAME2;
+      _ANONYMOUS_UNION union {
 #if (NTDDI_VERSION >= NTDDI_WIN7)
-                _ANONYMOUS_UNION union {
-                    UCHAR TimerMiscFlags;
-                    _ANONYMOUS_STRUCT struct {
+        _ANONYMOUS_UNION union {
+          UCHAR TimerMiscFlags;
+          _ANONYMOUS_STRUCT struct {
 #if !defined(_X86_)
-                        UCHAR Index:TIMER_EXPIRED_INDEX_BITS;
+            UCHAR Index:TIMER_EXPIRED_INDEX_BITS;
 #else
-                        UCHAR Index:1;
-                        UCHAR Processor:TIMER_PROCESSOR_INDEX_BITS;
+            UCHAR Index:1;
+            UCHAR Processor:TIMER_PROCESSOR_INDEX_BITS;
 #endif
-                        UCHAR Inserted:1;
-                        volatile UCHAR Expired:1;
-                    } DUMMYSTRUCTNAME;
-                } DUMMYUNIONNAME;
+            UCHAR Inserted:1;
+            volatile UCHAR Expired:1;
+          } DUMMYSTRUCTNAME;
+        } DUMMYUNIONNAME;
 #else
-                /* Pre Win7 compatibility fix to latest WDK */
-                UCHAR Inserted;
+        /* Pre Win7 compatibility fix to latest WDK */
+        UCHAR Inserted;
 #endif
-                _ANONYMOUS_UNION union {
-                    BOOLEAN DebugActive;
-                    _ANONYMOUS_STRUCT struct {
-                        BOOLEAN ActiveDR7:1;
-                        BOOLEAN Instrumented:1;
-                        BOOLEAN Reserved2:4;
-                        BOOLEAN UmsScheduled:1;
-                        BOOLEAN UmsPrimary:1;
-                    } DUMMYSTRUCTNAME;
-                } DUMMYUNIONNAME; /* should probably be DUMMYUNIONNAME2, but this is what WDK says */
-                BOOLEAN DpcActive;
-            } DUMMYUNIONNAME3;
-        } DUMMYSTRUCTNAME;
-        volatile LONG Lock;
-    } DUMMYUNIONNAME;
-    LONG SignalState;
-    LIST_ENTRY WaitListHead;
+        _ANONYMOUS_UNION union {
+          BOOLEAN DebugActive;
+          _ANONYMOUS_STRUCT struct {
+            BOOLEAN ActiveDR7:1;
+            BOOLEAN Instrumented:1;
+            BOOLEAN Reserved2:4;
+            BOOLEAN UmsScheduled:1;
+            BOOLEAN UmsPrimary:1;
+          } DUMMYSTRUCTNAME;
+        } DUMMYUNIONNAME; /* should probably be DUMMYUNIONNAME2, but this is what WDK says */
+        BOOLEAN DpcActive;
+      } DUMMYUNIONNAME3;
+    } DUMMYSTRUCTNAME;
+    volatile LONG Lock;
+  } DUMMYUNIONNAME;
+  LONG SignalState;
+  LIST_ENTRY WaitListHead;
 } DISPATCHER_HEADER, *PDISPATCHER_HEADER;
 
 typedef struct _KEVENT {
-  DISPATCHER_HEADER  Header;
+  DISPATCHER_HEADER Header;
 } KEVENT, *PKEVENT, *RESTRICTED_POINTER PRKEVENT;
 
 typedef struct _KSEMAPHORE {
-    DISPATCHER_HEADER Header;
-    LONG Limit;
+  DISPATCHER_HEADER Header;
+  LONG Limit;
 } KSEMAPHORE, *PKSEMAPHORE, *RESTRICTED_POINTER PRKSEMAPHORE;
 
-typedef struct _KGATE
-{
-    DISPATCHER_HEADER Header;
+typedef struct _KGATE {
+  DISPATCHER_HEADER Header;
 } KGATE, *PKGATE, *RESTRICTED_POINTER PRKGATE;
 
-typedef struct _KGUARDED_MUTEX
-{
-    volatile LONG Count;
-    PKTHREAD Owner;
-    ULONG Contention;
-    KGATE Gate;
-    __GNU_EXTENSION union
-    {
-        __GNU_EXTENSION struct
-        {
-            SHORT KernelApcDisable;
-            SHORT SpecialApcDisable;
-        };
-        ULONG CombinedApcDisable;
+typedef struct _KGUARDED_MUTEX {
+  volatile LONG Count;
+  PKTHREAD Owner;
+  ULONG Contention;
+  KGATE Gate;
+  __GNU_EXTENSION union {
+    __GNU_EXTENSION struct {
+      SHORT KernelApcDisable;
+      SHORT SpecialApcDisable;
     };
+    ULONG CombinedApcDisable;
+  };
 } KGUARDED_MUTEX, *PKGUARDED_MUTEX;
 
 typedef struct _KMUTANT {
-  DISPATCHER_HEADER  Header;
-  LIST_ENTRY  MutantListEntry;
-  struct _KTHREAD  *RESTRICTED_POINTER OwnerThread;
-  BOOLEAN  Abandoned;
-  UCHAR  ApcDisable;
+  DISPATCHER_HEADER Header;
+  LIST_ENTRY MutantListEntry;
+  struct _KTHREAD *RESTRICTED_POINTER OwnerThread;
+  BOOLEAN Abandoned;
+  UCHAR ApcDisable;
 } KMUTANT, *PKMUTANT, *RESTRICTED_POINTER PRKMUTANT, KMUTEX, *PKMUTEX, *RESTRICTED_POINTER PRKMUTEX;
 
 #define TIMER_TABLE_SIZE 512
@@ -1079,7 +1072,7 @@ typedef struct _KTIMER {
 
 typedef BOOLEAN
 (DDKAPI *PKSYNCHRONIZE_ROUTINE)(
-  IN PVOID  SynchronizeContext);
+  IN PVOID SynchronizeContext);
 
 typedef enum _POOL_TYPE {
   NonPagedPool,
@@ -1099,11 +1092,10 @@ typedef enum _POOL_TYPE {
   NonPagedPoolCacheAlignedMustSSession
 } POOL_TYPE;
 
-typedef enum _ALTERNATIVE_ARCHITECTURE_TYPE
-{
-    StandardDesign,
-    NEC98x86,
-    EndAlternatives
+typedef enum _ALTERNATIVE_ARCHITECTURE_TYPE {
+  StandardDesign,
+  NEC98x86,
+  EndAlternatives
 } ALTERNATIVE_ARCHITECTURE_TYPE;
 
 typedef struct _KSYSTEM_TIME {
@@ -1113,9 +1105,9 @@ typedef struct _KSYSTEM_TIME {
 } KSYSTEM_TIME, *PKSYSTEM_TIME;
 
 typedef struct _PNP_BUS_INFORMATION {
-  GUID  BusTypeGuid;
-  INTERFACE_TYPE  LegacyBusType;
-  ULONG  BusNumber;
+  GUID BusTypeGuid;
+  INTERFACE_TYPE LegacyBusType;
+  ULONG BusNumber;
 } PNP_BUS_INFORMATION, *PPNP_BUS_INFORMATION;
 
 typedef struct DECLSPEC_ALIGN(16) _M128A {
@@ -1305,8 +1297,8 @@ extern PCCHAR KeNumberProcessors;
 
 /* Section map options */
 typedef enum _SECTION_INHERIT {
-    ViewShare = 1,
-    ViewUnmap = 2
+  ViewShare = 1,
+  ViewUnmap = 2
 } SECTION_INHERIT;
 
 typedef ULONG PFN_COUNT;
@@ -1314,14 +1306,14 @@ typedef LONG_PTR SPFN_NUMBER, *PSPFN_NUMBER;
 typedef ULONG_PTR PFN_NUMBER, *PPFN_NUMBER;
 
 typedef struct _MDL {
-    struct _MDL *Next;
-    CSHORT Size;
-    CSHORT MdlFlags;
-    struct _EPROCESS *Process;
-    PVOID MappedSystemVa;
-    PVOID StartVa;
-    ULONG ByteCount;
-    ULONG ByteOffset;
+  struct _MDL *Next;
+  CSHORT Size;
+  CSHORT MdlFlags;
+  struct _EPROCESS *Process;
+  PVOID MappedSystemVa;
+  PVOID StartVa;
+  ULONG ByteCount;
+  ULONG ByteOffset;
 } MDL, *PMDL;
 typedef MDL *PMDLX;
 
@@ -1381,35 +1373,35 @@ typedef struct _FAST_MUTEX {
 } FAST_MUTEX, *PFAST_MUTEX;
 
 typedef enum _SUITE_TYPE {
-    SmallBusiness,
-    Enterprise,
-    BackOffice,
-    CommunicationServer,
-    TerminalServer,
-    SmallBusinessRestricted,
-    EmbeddedNT,
-    DataCenter,
-    SingleUserTS,
-    Personal,
-    Blade,
-    EmbeddedRestricted,
-    SecurityAppliance,
-    StorageServer,
-    ComputeServer,
-    WHServer,
-    MaxSuiteType
+  SmallBusiness,
+  Enterprise,
+  BackOffice,
+  CommunicationServer,
+  TerminalServer,
+  SmallBusinessRestricted,
+  EmbeddedNT,
+  DataCenter,
+  SingleUserTS,
+  Personal,
+  Blade,
+  EmbeddedRestricted,
+  SecurityAppliance,
+  StorageServer,
+  ComputeServer,
+  WHServer,
+  MaxSuiteType
 } SUITE_TYPE;
 
 typedef enum _EX_POOL_PRIORITY {
-    LowPoolPriority,
-    LowPoolPrioritySpecialPoolOverrun = 8,
-    LowPoolPrioritySpecialPoolUnderrun = 9,
-    NormalPoolPriority = 16,
-    NormalPoolPrioritySpecialPoolOverrun = 24,
-    NormalPoolPrioritySpecialPoolUnderrun = 25,
-    HighPoolPriority = 32,
-    HighPoolPrioritySpecialPoolOverrun = 40,
-    HighPoolPrioritySpecialPoolUnderrun = 41
+  LowPoolPriority,
+  LowPoolPrioritySpecialPoolOverrun = 8,
+  LowPoolPrioritySpecialPoolUnderrun = 9,
+  NormalPoolPriority = 16,
+  NormalPoolPrioritySpecialPoolOverrun = 24,
+  NormalPoolPrioritySpecialPoolUnderrun = 25,
+  HighPoolPriority = 32,
+  HighPoolPrioritySpecialPoolOverrun = 40,
+  HighPoolPrioritySpecialPoolUnderrun = 41
 } EX_POOL_PRIORITY;
 
 #if !defined(_WIN64) && (defined(_NTDDK_) || defined(_NTIFS_) || defined(_NDIS_))
@@ -1422,31 +1414,31 @@ typedef struct _LOOKASIDE_LIST_EX *PLOOKASIDE_LIST_EX;
 
 typedef PVOID
 (DDKAPI *PALLOCATE_FUNCTION)(
-    IN POOL_TYPE PoolType,
-    IN SIZE_T NumberOfBytes,
-    IN ULONG Tag);
+  IN POOL_TYPE PoolType,
+  IN SIZE_T NumberOfBytes,
+  IN ULONG Tag);
 
 typedef PVOID
 (DDKAPI *PALLOCATE_FUNCTION_EX)(
-    IN POOL_TYPE PoolType,
-    IN SIZE_T NumberOfBytes,
-    IN ULONG Tag,
-    IN OUT PLOOKASIDE_LIST_EX Lookaside);
+  IN POOL_TYPE PoolType,
+  IN SIZE_T NumberOfBytes,
+  IN ULONG Tag,
+  IN OUT PLOOKASIDE_LIST_EX Lookaside);
 
 typedef VOID
 (DDKAPI *PFREE_FUNCTION)(
-    IN PVOID Buffer);
+  IN PVOID Buffer);
 
 typedef VOID
 (DDKAPI *PFREE_FUNCTION_EX)(
-    IN PVOID Buffer,
-    IN OUT PLOOKASIDE_LIST_EX Lookaside);
+  IN PVOID Buffer,
+  IN OUT PLOOKASIDE_LIST_EX Lookaside);
 
 typedef VOID
 (DDKAPI *PCALLBACK_FUNCTION)(
-  IN PVOID  CallbackContext,
-  IN PVOID  Argument1,
-  IN PVOID  Argument2);
+  IN PVOID CallbackContext,
+  IN PVOID Argument1,
+  IN PVOID Argument2);
 
 #define GENERAL_LOOKASIDE_LAYOUT                \
     union {                                     \
@@ -1489,48 +1481,48 @@ typedef VOID
     ULONG Future[2];
 
 typedef struct LOOKASIDE_ALIGN _GENERAL_LOOKASIDE {
-    GENERAL_LOOKASIDE_LAYOUT
+  GENERAL_LOOKASIDE_LAYOUT
 } GENERAL_LOOKASIDE, *PGENERAL_LOOKASIDE;
 
 typedef struct _GENERAL_LOOKASIDE_POOL {
-    GENERAL_LOOKASIDE_LAYOUT
+  GENERAL_LOOKASIDE_LAYOUT
 } GENERAL_LOOKASIDE_POOL, *PGENERAL_LOOKASIDE_POOL;
 
 typedef struct _PAGED_LOOKASIDE_LIST {
-    GENERAL_LOOKASIDE L;
+  GENERAL_LOOKASIDE L;
 #if !defined(_AMD64_) && !defined(_IA64_)
-    FAST_MUTEX Lock__ObsoleteButDoNotDelete;
+  FAST_MUTEX Lock__ObsoleteButDoNotDelete;
 #endif
 } PAGED_LOOKASIDE_LIST, *PPAGED_LOOKASIDE_LIST;
 
 typedef struct LOOKASIDE_ALIGN _NPAGED_LOOKASIDE_LIST {
-    GENERAL_LOOKASIDE L;
+  GENERAL_LOOKASIDE L;
 #if !defined(_AMD64_) && !defined(_IA64_)
-    KSPIN_LOCK Lock__ObsoleteButDoNotDelete;
+  KSPIN_LOCK Lock__ObsoleteButDoNotDelete;
 #endif
 } NPAGED_LOOKASIDE_LIST, *PNPAGED_LOOKASIDE_LIST;
 
 typedef struct _LOOKASIDE_LIST_EX {
-    GENERAL_LOOKASIDE_POOL L;
+  GENERAL_LOOKASIDE_POOL L;
 } LOOKASIDE_LIST_EX;
 
 typedef struct _EX_RUNDOWN_REF {
-    __GNU_EXTENSION union {
-        volatile ULONG_PTR Count;
-        volatile PVOID Ptr;
-    };
+  __GNU_EXTENSION union {
+    volatile ULONG_PTR Count;
+    volatile PVOID Ptr;
+  };
 } EX_RUNDOWN_REF, *PEX_RUNDOWN_REF;
 
-typedef struct _EX_RUNDOWN_REF_CACHE_AWARE  *PEX_RUNDOWN_REF_CACHE_AWARE;
+typedef struct _EX_RUNDOWN_REF_CACHE_AWARE *PEX_RUNDOWN_REF_CACHE_AWARE;
 
 typedef VOID
 (DDKAPI *PWORKER_THREAD_ROUTINE)(
   IN PVOID Parameter);
 
 typedef struct _WORK_QUEUE_ITEM {
-  LIST_ENTRY  List;
-  PWORKER_THREAD_ROUTINE  WorkerRoutine;
-  volatile PVOID  Parameter;
+  LIST_ENTRY List;
+  PWORKER_THREAD_ROUTINE WorkerRoutine;
+  volatile PVOID Parameter;
 } WORK_QUEUE_ITEM, *PWORK_QUEUE_ITEM;
 
 
@@ -1565,10 +1557,10 @@ typedef PVOID PSID;
 #define GENERIC_ALL                      0x10000000L
 
 typedef struct _GENERIC_MAPPING {
-    ACCESS_MASK GenericRead;
-    ACCESS_MASK GenericWrite;
-    ACCESS_MASK GenericExecute;
-    ACCESS_MASK GenericAll;
+  ACCESS_MASK GenericRead;
+  ACCESS_MASK GenericWrite;
+  ACCESS_MASK GenericExecute;
+  ACCESS_MASK GenericAll;
 } GENERIC_MAPPING, *PGENERIC_MAPPING;
 
 #define ACL_REVISION                      2
@@ -1582,11 +1574,11 @@ typedef struct _GENERIC_MAPPING {
 #define MAX_ACL_REVISION                  ACL_REVISION4
 
 typedef struct _ACL {
-    UCHAR AclRevision;
-    UCHAR Sbz1;
-    USHORT AclSize;
-    USHORT AceCount;
-    USHORT Sbz2;
+  UCHAR AclRevision;
+  UCHAR Sbz1;
+  USHORT AclSize;
+  USHORT AceCount;
+  USHORT Sbz2;
 } ACL, *PACL;
 
 /* Current security descriptor revision value */
@@ -1606,8 +1598,8 @@ typedef struct _ACL {
 
 #include <pshpack4.h>
 typedef struct _LUID_AND_ATTRIBUTES {
-    LUID Luid;
-    ULONG Attributes;
+  LUID Luid;
+  ULONG Attributes;
 } LUID_AND_ATTRIBUTES, *PLUID_AND_ATTRIBUTES;
 #include <poppack.h>
 
@@ -1618,16 +1610,16 @@ typedef LUID_AND_ATTRIBUTES_ARRAY *PLUID_AND_ATTRIBUTES_ARRAY;
 #define PRIVILEGE_SET_ALL_NECESSARY (1)
 
 typedef struct _PRIVILEGE_SET {
-    ULONG PrivilegeCount;
-    ULONG Control;
-    LUID_AND_ATTRIBUTES Privilege[ANYSIZE_ARRAY];
+  ULONG PrivilegeCount;
+  ULONG Control;
+  LUID_AND_ATTRIBUTES Privilege[ANYSIZE_ARRAY];
 } PRIVILEGE_SET,*PPRIVILEGE_SET;
 
 typedef enum _SECURITY_IMPERSONATION_LEVEL {
-    SecurityAnonymous,
-    SecurityIdentification,
-    SecurityImpersonation,
-    SecurityDelegation
+  SecurityAnonymous,
+  SecurityIdentification,
+  SecurityImpersonation,
+  SecurityDelegation
 } SECURITY_IMPERSONATION_LEVEL, * PSECURITY_IMPERSONATION_LEVEL;
 
 #define SECURITY_MAX_IMPERSONATION_LEVEL SecurityDelegation
@@ -1641,17 +1633,17 @@ typedef enum _SECURITY_IMPERSONATION_LEVEL {
 typedef BOOLEAN SECURITY_CONTEXT_TRACKING_MODE, *PSECURITY_CONTEXT_TRACKING_MODE;
 
 typedef struct _SECURITY_QUALITY_OF_SERVICE {
-    ULONG Length;
-    SECURITY_IMPERSONATION_LEVEL ImpersonationLevel;
-    SECURITY_CONTEXT_TRACKING_MODE ContextTrackingMode;
-    BOOLEAN EffectiveOnly;
+  ULONG Length;
+  SECURITY_IMPERSONATION_LEVEL ImpersonationLevel;
+  SECURITY_CONTEXT_TRACKING_MODE ContextTrackingMode;
+  BOOLEAN EffectiveOnly;
 } SECURITY_QUALITY_OF_SERVICE, *PSECURITY_QUALITY_OF_SERVICE;
 
 typedef struct _SE_IMPERSONATION_STATE {
-    PACCESS_TOKEN Token;
-    BOOLEAN CopyOnOpen;
-    BOOLEAN EffectiveOnly;
-    SECURITY_IMPERSONATION_LEVEL Level;
+  PACCESS_TOKEN Token;
+  BOOLEAN CopyOnOpen;
+  BOOLEAN EffectiveOnly;
+  SECURITY_IMPERSONATION_LEVEL Level;
 } SE_IMPERSONATION_STATE, *PSE_IMPERSONATION_STATE;
 
 #define OWNER_SECURITY_INFORMATION       (0x00000001L)
@@ -1675,9 +1667,9 @@ typedef enum _SECURITY_OPERATION_CODE {
 #define INITIAL_PRIVILEGE_COUNT           3
 
 typedef struct _INITIAL_PRIVILEGE_SET {
-  ULONG  PrivilegeCount;
-  ULONG  Control;
-  LUID_AND_ATTRIBUTES  Privilege[INITIAL_PRIVILEGE_COUNT];
+  ULONG PrivilegeCount;
+  ULONG Control;
+  LUID_AND_ATTRIBUTES Privilege[INITIAL_PRIVILEGE_COUNT];
 } INITIAL_PRIVILEGE_SET, * PINITIAL_PRIVILEGE_SET;
 
 #define SE_MIN_WELL_KNOWN_PRIVILEGE         2
@@ -1718,36 +1710,34 @@ typedef struct _INITIAL_PRIVILEGE_SET {
 #define SE_MAX_WELL_KNOWN_PRIVILEGE         SE_CREATE_SYMBOLIC_LINK_PRIVILEGE
 
 typedef struct _SECURITY_SUBJECT_CONTEXT {
-  PACCESS_TOKEN  ClientToken;
-  SECURITY_IMPERSONATION_LEVEL  ImpersonationLevel;
-  PACCESS_TOKEN  PrimaryToken;
-  PVOID  ProcessAuditId;
+  PACCESS_TOKEN ClientToken;
+  SECURITY_IMPERSONATION_LEVEL ImpersonationLevel;
+  PACCESS_TOKEN PrimaryToken;
+  PVOID ProcessAuditId;
 } SECURITY_SUBJECT_CONTEXT, *PSECURITY_SUBJECT_CONTEXT;
 
 typedef struct _ACCESS_STATE {
-  LUID  OperationID;
-  BOOLEAN  SecurityEvaluated;
-  BOOLEAN  GenerateAudit;
-  BOOLEAN  GenerateOnClose;
-  BOOLEAN  PrivilegesAllocated;
-  ULONG  Flags;
-  ACCESS_MASK  RemainingDesiredAccess;
-  ACCESS_MASK  PreviouslyGrantedAccess;
-  ACCESS_MASK  OriginalDesiredAccess;
-  SECURITY_SUBJECT_CONTEXT  SubjectSecurityContext;
-  PSECURITY_DESCRIPTOR  SecurityDescriptor;
-  PVOID  AuxData;
+  LUID OperationID;
+  BOOLEAN SecurityEvaluated;
+  BOOLEAN GenerateAudit;
+  BOOLEAN GenerateOnClose;
+  BOOLEAN PrivilegesAllocated;
+  ULONG Flags;
+  ACCESS_MASK RemainingDesiredAccess;
+  ACCESS_MASK PreviouslyGrantedAccess;
+  ACCESS_MASK OriginalDesiredAccess;
+  SECURITY_SUBJECT_CONTEXT SubjectSecurityContext;
+  PSECURITY_DESCRIPTOR SecurityDescriptor;
+  PVOID AuxData;
   union {
-    INITIAL_PRIVILEGE_SET  InitialPrivilegeSet;
-    PRIVILEGE_SET  PrivilegeSet;
+    INITIAL_PRIVILEGE_SET InitialPrivilegeSet;
+    PRIVILEGE_SET PrivilegeSet;
   } Privileges;
-
-  BOOLEAN  AuditPrivileges;
-  UNICODE_STRING  ObjectName;
-  UNICODE_STRING  ObjectTypeName;
+  BOOLEAN AuditPrivileges;
+  UNICODE_STRING ObjectName;
+  UNICODE_STRING ObjectTypeName;
 } ACCESS_STATE, *PACCESS_STATE;
 
-
 #ifndef _NTLSA_IFS_
 
 #ifndef _NTLSA_AUDIT_
@@ -1817,8 +1807,8 @@ typedef struct _SE_ADT_PARAMETER_ARRAY_ENTRY {
 
 typedef struct _SE_ADT_ACCESS_REASON {
   ACCESS_MASK AccessMask;
-  ULONG  AccessReasons[32];
-  ULONG  ObjectTypeIndex;
+  ULONG AccessReasons[32];
+  ULONG ObjectTypeIndex;
   ULONG AccessGranted;
   PSECURITY_DESCRIPTOR SecurityDescriptor;
 } SE_ADT_ACCESS_REASON, *PSE_ADT_ACCESS_REASON;
@@ -1847,97 +1837,97 @@ typedef struct _SE_ADT_PARAMETER_ARRAY {
 
 /* Power States/Levels */
 typedef enum _SYSTEM_POWER_STATE {
-    PowerSystemUnspecified,
-    PowerSystemWorking,
-    PowerSystemSleeping1,
-    PowerSystemSleeping2,
-    PowerSystemSleeping3,
-    PowerSystemHibernate,
-    PowerSystemShutdown,
-    PowerSystemMaximum
+  PowerSystemUnspecified,
+  PowerSystemWorking,
+  PowerSystemSleeping1,
+  PowerSystemSleeping2,
+  PowerSystemSleeping3,
+  PowerSystemHibernate,
+  PowerSystemShutdown,
+  PowerSystemMaximum
 } SYSTEM_POWER_STATE, *PSYSTEM_POWER_STATE;
 
 #define POWER_SYSTEM_MAXIMUM PowerSystemMaximum
 
 typedef enum _POWER_INFORMATION_LEVEL {
-    SystemPowerPolicyAc,
-    SystemPowerPolicyDc,
-    VerifySystemPolicyAc,
-    VerifySystemPolicyDc,
-    SystemPowerCapabilities,
-    SystemBatteryState,
-    SystemPowerStateHandler,
-    ProcessorStateHandler,
-    SystemPowerPolicyCurrent,
-    AdministratorPowerPolicy,
-    SystemReserveHiberFile,
-    ProcessorInformation,
-    SystemPowerInformation,
-    ProcessorStateHandler2,
-    LastWakeTime,
-    LastSleepTime,
-    SystemExecutionState,
-    SystemPowerStateNotifyHandler,
-    ProcessorPowerPolicyAc,
-    ProcessorPowerPolicyDc,
-    VerifyProcessorPowerPolicyAc,
-    VerifyProcessorPowerPolicyDc,
-    ProcessorPowerPolicyCurrent,
-    SystemPowerStateLogging,
-    SystemPowerLoggingEntry,
-    SetPowerSettingValue,
-    NotifyUserPowerSetting,
-    PowerInformationLevelUnused0,
-    PowerInformationLevelUnused1,
-    SystemVideoState,
-    TraceApplicationPowerMessage,
-    TraceApplicationPowerMessageEnd,
-    ProcessorPerfStates,
-    ProcessorIdleStates,
-    ProcessorCap,
-    SystemWakeSource,
-    SystemHiberFileInformation,
-    TraceServicePowerMessage,
-    ProcessorLoad,
-    PowerShutdownNotification,
-    MonitorCapabilities,
-    SessionPowerInit,
-    SessionDisplayState,
-    PowerRequestCreate,
-    PowerRequestAction,
-    GetPowerRequestList,
-    ProcessorInformationEx,
-    NotifyUserModeLegacyPowerEvent,
-    GroupPark,
-    ProcessorIdleDomains,
-    WakeTimerList,
-    SystemHiberFileSize,
-    PowerInformationLevelMaximum
+  SystemPowerPolicyAc,
+  SystemPowerPolicyDc,
+  VerifySystemPolicyAc,
+  VerifySystemPolicyDc,
+  SystemPowerCapabilities,
+  SystemBatteryState,
+  SystemPowerStateHandler,
+  ProcessorStateHandler,
+  SystemPowerPolicyCurrent,
+  AdministratorPowerPolicy,
+  SystemReserveHiberFile,
+  ProcessorInformation,
+  SystemPowerInformation,
+  ProcessorStateHandler2,
+  LastWakeTime,
+  LastSleepTime,
+  SystemExecutionState,
+  SystemPowerStateNotifyHandler,
+  ProcessorPowerPolicyAc,
+  ProcessorPowerPolicyDc,
+  VerifyProcessorPowerPolicyAc,
+  VerifyProcessorPowerPolicyDc,
+  ProcessorPowerPolicyCurrent,
+  SystemPowerStateLogging,
+  SystemPowerLoggingEntry,
+  SetPowerSettingValue,
+  NotifyUserPowerSetting,
+  PowerInformationLevelUnused0,
+  PowerInformationLevelUnused1,
+  SystemVideoState,
+  TraceApplicationPowerMessage,
+  TraceApplicationPowerMessageEnd,
+  ProcessorPerfStates,
+  ProcessorIdleStates,
+  ProcessorCap,
+  SystemWakeSource,
+  SystemHiberFileInformation,
+  TraceServicePowerMessage,
+  ProcessorLoad,
+  PowerShutdownNotification,
+  MonitorCapabilities,
+  SessionPowerInit,
+  SessionDisplayState,
+  PowerRequestCreate,
+  PowerRequestAction,
+  GetPowerRequestList,
+  ProcessorInformationEx,
+  NotifyUserModeLegacyPowerEvent,
+  GroupPark,
+  ProcessorIdleDomains,
+  WakeTimerList,
+  SystemHiberFileSize,
+  PowerInformationLevelMaximum
 } POWER_INFORMATION_LEVEL;
 
 typedef enum {
-    PowerActionNone,
-    PowerActionReserved,
-    PowerActionSleep,
-    PowerActionHibernate,
-    PowerActionShutdown,
-    PowerActionShutdownReset,
-    PowerActionShutdownOff,
-    PowerActionWarmEject
+  PowerActionNone,
+  PowerActionReserved,
+  PowerActionSleep,
+  PowerActionHibernate,
+  PowerActionShutdown,
+  PowerActionShutdownReset,
+  PowerActionShutdownOff,
+  PowerActionWarmEject
 } POWER_ACTION, *PPOWER_ACTION;
 
 typedef enum _DEVICE_POWER_STATE {
-    PowerDeviceUnspecified,
-    PowerDeviceD0,
-    PowerDeviceD1,
-    PowerDeviceD2,
-    PowerDeviceD3,
-    PowerDeviceMaximum
+  PowerDeviceUnspecified,
+  PowerDeviceD0,
+  PowerDeviceD1,
+  PowerDeviceD2,
+  PowerDeviceD3,
+  PowerDeviceMaximum
 } DEVICE_POWER_STATE, *PDEVICE_POWER_STATE;
 
 typedef union _POWER_STATE {
-  SYSTEM_POWER_STATE  SystemState;
-  DEVICE_POWER_STATE  DeviceState;
+  SYSTEM_POWER_STATE SystemState;
+  DEVICE_POWER_STATE DeviceState;
 } POWER_STATE, *PPOWER_STATE;
 
 typedef enum _POWER_STATE_TYPE {
@@ -1947,8 +1937,8 @@ typedef enum _POWER_STATE_TYPE {
 
 #if (NTDDI_VERSION >= NTDDI_WINXP) || !defined(_BATCLASS_)
 typedef struct {
-    ULONG Granularity;
-    ULONG Capacity;
+  ULONG Granularity;
+  ULONG Capacity;
 } BATTERY_REPORTING_SCALE, *PBATTERY_REPORTING_SCALE;
 #endif /* (NTDDI_VERSION >= NTDDI_WINXP) || !defined(_BATCLASS_) */
 
@@ -1964,14 +1954,12 @@ typedef VOID
 
 typedef
 NTSTATUS
-(DDKAPI POWER_SETTING_CALLBACK)(
+(DDKAPI *PPOWER_SETTING_CALLBACK)(
   IN LPCGUID SettingGuid,
   IN PVOID Value,
   IN ULONG ValueLength,
   IN OUT PVOID Context OPTIONAL);
 
-typedef POWER_SETTING_CALLBACK *PPOWER_SETTING_CALLBACK;
-
 
 /******************************************************************************
  *                            Configuration Manager Types                     *
@@ -1987,11 +1975,11 @@ typedef int CM_RESOURCE_TYPE;
 #define CmResourceTypeDma               4
 #define CmResourceTypeDeviceSpecific    5
 #define CmResourceTypeBusNumber         6
-#define CmResourceTypeNonArbitrated      128
-#define CmResourceTypeConfigData         128
-#define CmResourceTypeDevicePrivate      129
-#define CmResourceTypePcCardConfig       130
-#define CmResourceTypeMfCardConfig       131
+#define CmResourceTypeNonArbitrated     128
+#define CmResourceTypeConfigData        128
+#define CmResourceTypeDevicePrivate     129
+#define CmResourceTypePcCardConfig      130
+#define CmResourceTypeMfCardConfig      131
 
 /* KEY_VALUE_Xxx.Type */
 #define REG_NONE                           0
@@ -2005,9 +1993,9 @@ typedef int CM_RESOURCE_TYPE;
 #define REG_MULTI_SZ                       7
 #define REG_RESOURCE_LIST                  8
 #define REG_FULL_RESOURCE_DESCRIPTOR       9
-#define REG_RESOURCE_REQUIREMENTS_LIST    10
-#define REG_QWORD                         11
-#define REG_QWORD_LITTLE_ENDIAN           11
+#define REG_RESOURCE_REQUIREMENTS_LIST     10
+#define REG_QWORD                          11
+#define REG_QWORD_LITTLE_ENDIAN            11
 
 /* Registry Access Rights */
 #define KEY_QUERY_VALUE         (0x0001)
@@ -2095,24 +2083,24 @@ typedef int CM_RESOURCE_TYPE;
                  REG_NOTIFY_CHANGE_SECURITY)
 
 typedef struct _CM_FLOPPY_DEVICE_DATA {
-  USHORT  Version;
-  USHORT  Revision;
-  CHAR  Size[8];
-  ULONG  MaxDensity;
-  ULONG  MountDensity;
-  UCHAR  StepRateHeadUnloadTime;
-  UCHAR  HeadLoadTime;
-  UCHAR  MotorOffTime;
-  UCHAR  SectorLengthCode;
-  UCHAR  SectorPerTrack;
-  UCHAR  ReadWriteGapLength;
-  UCHAR  DataTransferLength;
-  UCHAR  FormatGapLength;
-  UCHAR  FormatFillCharacter;
-  UCHAR  HeadSettleTime;
-  UCHAR  MotorSettleTime;
-  UCHAR  MaximumTrackValue;
-  UCHAR  DataTransferRate;
+  USHORT Version;
+  USHORT Revision;
+  CHAR Size[8];
+  ULONG MaxDensity;
+  ULONG MountDensity;
+  UCHAR StepRateHeadUnloadTime;
+  UCHAR HeadLoadTime;
+  UCHAR MotorOffTime;
+  UCHAR SectorLengthCode;
+  UCHAR SectorPerTrack;
+  UCHAR ReadWriteGapLength;
+  UCHAR DataTransferLength;
+  UCHAR FormatGapLength;
+  UCHAR FormatFillCharacter;
+  UCHAR HeadSettleTime;
+  UCHAR MotorSettleTime;
+  UCHAR MaximumTrackValue;
+  UCHAR DataTransferRate;
 } CM_FLOPPY_DEVICE_DATA, *PCM_FLOPPY_DEVICE_DATA;
 
 #include <pshpack4.h>
@@ -2214,11 +2202,11 @@ typedef struct _CM_PARTIAL_RESOURCE_DESCRIPTOR {
 #define CmResourceTypeDeviceSpecific      5
 #define CmResourceTypeBusNumber           6
 #define CmResourceTypeMemoryLarge         7
-#define CmResourceTypeNonArbitrated     128
-#define CmResourceTypeConfigData        128
-#define CmResourceTypeDevicePrivate     129
-#define CmResourceTypePcCardConfig      130
-#define CmResourceTypeMfCardConfig      131
+#define CmResourceTypeNonArbitrated       128
+#define CmResourceTypeConfigData          128
+#define CmResourceTypeDevicePrivate       129
+#define CmResourceTypePcCardConfig        130
+#define CmResourceTypeMfCardConfig        131
 
 /* CM_PARTIAL_RESOURCE_DESCRIPTOR.ShareDisposition */
 typedef enum _CM_SHARE_DISPOSITION {
@@ -2269,30 +2257,30 @@ typedef enum _CM_SHARE_DISPOSITION {
 #define CM_RESOURCE_DMA_TYPE_F            0x0040
 
 typedef struct _CM_PARTIAL_RESOURCE_LIST {
-  USHORT  Version;
-  USHORT  Revision;
-  ULONG  Count;
+  USHORT Version;
+  USHORT Revision;
+  ULONG Count;
   CM_PARTIAL_RESOURCE_DESCRIPTOR PartialDescriptors[1];
 } CM_PARTIAL_RESOURCE_LIST, *PCM_PARTIAL_RESOURCE_LIST;
 
 typedef struct _CM_FULL_RESOURCE_DESCRIPTOR {
-  INTERFACE_TYPE  InterfaceType;
-  ULONG  BusNumber;
-  CM_PARTIAL_RESOURCE_LIST  PartialResourceList;
+  INTERFACE_TYPE InterfaceType;
+  ULONG BusNumber;
+  CM_PARTIAL_RESOURCE_LIST PartialResourceList;
 } CM_FULL_RESOURCE_DESCRIPTOR, *PCM_FULL_RESOURCE_DESCRIPTOR;
 
 typedef struct _CM_RESOURCE_LIST {
-  ULONG  Count;
-  CM_FULL_RESOURCE_DESCRIPTOR  List[1];
+  ULONG Count;
+  CM_FULL_RESOURCE_DESCRIPTOR List[1];
 } CM_RESOURCE_LIST, *PCM_RESOURCE_LIST;
 
 #include <pshpack1.h>
 typedef struct _CM_INT13_DRIVE_PARAMETER {
-  USHORT  DriveSelect;
-  ULONG  MaxCylinders;
-  USHORT  SectorsPerTrack;
-  USHORT  MaxHeads;
-  USHORT  NumberDrives;
+  USHORT DriveSelect;
+  ULONG MaxCylinders;
+  USHORT SectorsPerTrack;
+  USHORT MaxHeads;
+  USHORT NumberDrives;
 } CM_INT13_DRIVE_PARAMETER, *PCM_INT13_DRIVE_PARAMETER;
 
 typedef struct _CM_PNP_BIOS_DEVICE_NODE {
@@ -2321,38 +2309,38 @@ typedef struct _CM_PNP_BIOS_INSTALLATION_CHECK {
 #include <poppack.h>
 
 typedef struct _CM_DISK_GEOMETRY_DEVICE_DATA {
-    ULONG BytesPerSector;
-    ULONG NumberOfCylinders;
-    ULONG SectorsPerTrack;
-    ULONG NumberOfHeads;
+  ULONG BytesPerSector;
+  ULONG NumberOfCylinders;
+  ULONG SectorsPerTrack;
+  ULONG NumberOfHeads;
 } CM_DISK_GEOMETRY_DEVICE_DATA, *PCM_DISK_GEOMETRY_DEVICE_DATA;
 
 typedef struct _CM_KEYBOARD_DEVICE_DATA {
-  USHORT  Version;
-  USHORT  Revision;
-  UCHAR  Type;
-  UCHAR  Subtype;
-  USHORT  KeyboardFlags;
+  USHORT Version;
+  USHORT Revision;
+  UCHAR Type;
+  UCHAR Subtype;
+  USHORT KeyboardFlags;
 } CM_KEYBOARD_DEVICE_DATA, *PCM_KEYBOARD_DEVICE_DATA;
 
 typedef struct _CM_MCA_POS_DATA {
-  USHORT  AdapterId;
-  UCHAR  PosData1;
-  UCHAR  PosData2;
-  UCHAR  PosData3;
-  UCHAR  PosData4;
+  USHORT AdapterId;
+  UCHAR PosData1;
+  UCHAR PosData2;
+  UCHAR PosData3;
+  UCHAR PosData4;
 } CM_MCA_POS_DATA, *PCM_MCA_POS_DATA;
 
 #if (NTDDI_VERSION >= NTDDI_WINXP)
 typedef struct CM_Power_Data_s {
-  ULONG  PD_Size;
-  DEVICE_POWER_STATE  PD_MostRecentPowerState;
-  ULONG  PD_Capabilities;
-  ULONG  PD_D1Latency;
-  ULONG  PD_D2Latency;
-  ULONG  PD_D3Latency;
-  DEVICE_POWER_STATE  PD_PowerStateMapping[PowerSystemMaximum];
-  SYSTEM_POWER_STATE  PD_DeepestSystemWake;
+  ULONG PD_Size;
+  DEVICE_POWER_STATE PD_MostRecentPowerState;
+  ULONG PD_Capabilities;
+  ULONG PD_D1Latency;
+  ULONG PD_D2Latency;
+  ULONG PD_D3Latency;
+  DEVICE_POWER_STATE PD_PowerStateMapping[PowerSystemMaximum];
+  SYSTEM_POWER_STATE PD_DeepestSystemWake;
 } CM_POWER_DATA, *PCM_POWER_DATA;
 
 #define PDCAP_D0_SUPPORTED                0x00000001
@@ -2368,15 +2356,15 @@ typedef struct CM_Power_Data_s {
 #endif /* (NTDDI_VERSION >= NTDDI_WINXP) */
 
 typedef struct _CM_SCSI_DEVICE_DATA {
-  USHORT  Version;
-  USHORT  Revision;
-  UCHAR  HostIdentifier;
+  USHORT Version;
+  USHORT Revision;
+  UCHAR HostIdentifier;
 } CM_SCSI_DEVICE_DATA, *PCM_SCSI_DEVICE_DATA;
 
 typedef struct _CM_SERIAL_DEVICE_DATA {
-  USHORT  Version;
-  USHORT  Revision;
-  ULONG  BaudClock;
+  USHORT Version;
+  USHORT Revision;
+  ULONG BaudClock;
 } CM_SERIAL_DEVICE_DATA, *PCM_SERIAL_DEVICE_DATA;
 
 typedef enum _KEY_INFORMATION_CLASS {
@@ -2389,69 +2377,69 @@ typedef enum _KEY_INFORMATION_CLASS {
 } KEY_INFORMATION_CLASS;
 
 typedef struct _KEY_BASIC_INFORMATION {
-  LARGE_INTEGER  LastWriteTime;
-  ULONG  TitleIndex;
-  ULONG  NameLength;
-  WCHAR  Name[1];
+  LARGE_INTEGER LastWriteTime;
+  ULONG TitleIndex;
+  ULONG NameLength;
+  WCHAR Name[1];
 } KEY_BASIC_INFORMATION, *PKEY_BASIC_INFORMATION;
 
 typedef struct _KEY_FULL_INFORMATION {
-  LARGE_INTEGER  LastWriteTime;
-  ULONG  TitleIndex;
-  ULONG  ClassOffset;
-  ULONG  ClassLength;
-  ULONG  SubKeys;
-  ULONG  MaxNameLen;
-  ULONG  MaxClassLen;
-  ULONG  Values;
-  ULONG  MaxValueNameLen;
-  ULONG  MaxValueDataLen;
-  WCHAR  Class[1];
+  LARGE_INTEGER LastWriteTime;
+  ULONG TitleIndex;
+  ULONG ClassOffset;
+  ULONG ClassLength;
+  ULONG SubKeys;
+  ULONG MaxNameLen;
+  ULONG MaxClassLen;
+  ULONG Values;
+  ULONG MaxValueNameLen;
+  ULONG MaxValueDataLen;
+  WCHAR Class[1];
 } KEY_FULL_INFORMATION, *PKEY_FULL_INFORMATION;
 
 typedef struct _KEY_NODE_INFORMATION {
-  LARGE_INTEGER  LastWriteTime;
-  ULONG  TitleIndex;
-  ULONG  ClassOffset;
-  ULONG  ClassLength;
-  ULONG  NameLength;
-  WCHAR  Name[1];
+  LARGE_INTEGER LastWriteTime;
+  ULONG TitleIndex;
+  ULONG ClassOffset;
+  ULONG ClassLength;
+  ULONG NameLength;
+  WCHAR Name[1];
 } KEY_NODE_INFORMATION, *PKEY_NODE_INFORMATION;
 
 typedef struct _KEY_VALUE_BASIC_INFORMATION {
-  ULONG  TitleIndex;
-  ULONG  Type;
-  ULONG  NameLength;
-  WCHAR  Name[1];
+  ULONG TitleIndex;
+  ULONG Type;
+  ULONG NameLength;
+  WCHAR Name[1];
 } KEY_VALUE_BASIC_INFORMATION, *PKEY_VALUE_BASIC_INFORMATION;
 
 typedef struct _KEY_VALUE_FULL_INFORMATION {
-  ULONG  TitleIndex;
-  ULONG  Type;
-  ULONG  DataOffset;
-  ULONG  DataLength;
-  ULONG  NameLength;
-  WCHAR  Name[1];
+  ULONG TitleIndex;
+  ULONG Type;
+  ULONG DataOffset;
+  ULONG DataLength;
+  ULONG NameLength;
+  WCHAR Name[1];
 } KEY_VALUE_FULL_INFORMATION, *PKEY_VALUE_FULL_INFORMATION;
 
 typedef struct _KEY_VALUE_PARTIAL_INFORMATION {
-  ULONG  TitleIndex;
-  ULONG  Type;
-  ULONG  DataLength;
-  UCHAR  Data[1];
+  ULONG TitleIndex;
+  ULONG Type;
+  ULONG DataLength;
+  UCHAR Data[1];
 } KEY_VALUE_PARTIAL_INFORMATION, *PKEY_VALUE_PARTIAL_INFORMATION;
 
 typedef struct _KEY_VALUE_PARTIAL_INFORMATION_ALIGN64 {
-  ULONG  Type;
-  ULONG  DataLength;
-  UCHAR  Data[1];
+  ULONG Type;
+  ULONG DataLength;
+  UCHAR Data[1];
 } KEY_VALUE_PARTIAL_INFORMATION_ALIGN64, *PKEY_VALUE_PARTIAL_INFORMATION_ALIGN64;
 
 typedef struct _KEY_VALUE_ENTRY {
-  PUNICODE_STRING  ValueName;
-  ULONG  DataLength;
-  ULONG  DataOffset;
-  ULONG  Type;
+  PUNICODE_STRING ValueName;
+  ULONG DataLength;
+  ULONG DataOffset;
+  ULONG Type;
 } KEY_VALUE_ENTRY, *PKEY_VALUE_ENTRY;
 
 typedef enum _KEY_VALUE_INFORMATION_CLASS {
@@ -2463,7 +2451,7 @@ typedef enum _KEY_VALUE_INFORMATION_CLASS {
 } KEY_VALUE_INFORMATION_CLASS;
 
 typedef struct _KEY_WRITE_TIME_INFORMATION {
-  LARGE_INTEGER  LastWriteTime;
+  LARGE_INTEGER LastWriteTime;
 } KEY_WRITE_TIME_INFORMATION, *PKEY_WRITE_TIME_INFORMATION;
 
 typedef enum _KEY_SET_INFORMATION_CLASS {
@@ -2540,10 +2528,9 @@ typedef enum _REG_NOTIFY_CLASS {
 
 typedef NTSTATUS
 (NTAPI *PEX_CALLBACK_FUNCTION)(
-    IN PVOID CallbackContext,
-    IN PVOID Argument1,
-    IN PVOID Argument2
-);
+  IN PVOID CallbackContext,
+  IN PVOID Argument1,
+  IN PVOID Argument2);
 
 typedef struct _REG_DELETE_KEY_INFORMATION {
   PVOID Object;
@@ -2678,7 +2665,7 @@ typedef struct _REG_KEY_HANDLE_CLOSE_INFORMATION {
  *                         I/O Manager Types                                  *
  ******************************************************************************/
 
- /* PCI_COMMON_CONFIG.Command */
+/* PCI_COMMON_CONFIG.Command */
 #define PCI_ENABLE_IO_SPACE               0x0001
 #define PCI_ENABLE_MEMORY_SPACE           0x0002
 #define PCI_ENABLE_BUS_MASTER             0x0004
@@ -2959,24 +2946,24 @@ typedef struct _OBJECT_HANDLE_INFORMATION {
 } OBJECT_HANDLE_INFORMATION, *POBJECT_HANDLE_INFORMATION;
 
 typedef struct _CLIENT_ID {
-  HANDLE  UniqueProcess;
-  HANDLE  UniqueThread;
+  HANDLE UniqueProcess;
+  HANDLE UniqueThread;
 } CLIENT_ID, *PCLIENT_ID;
 
 typedef VOID
 (DDKAPI *PKSTART_ROUTINE)(
-  IN PVOID  StartContext);
+  IN PVOID StartContext);
 
 typedef struct _VPB {
-  CSHORT  Type;
-  CSHORT  Size;
-  USHORT  Flags;
-  USHORT  VolumeLabelLength;
-  struct _DEVICE_OBJECT  *DeviceObject;
-  struct _DEVICE_OBJECT  *RealDevice;
-  ULONG  SerialNumber;
-  ULONG  ReferenceCount;
-  WCHAR  VolumeLabel[MAXIMUM_VOLUME_LABEL_LENGTH / sizeof(WCHAR)];
+  CSHORT Type;
+  CSHORT Size;
+  USHORT Flags;
+  USHORT VolumeLabelLength;
+  struct _DEVICE_OBJECT *DeviceObject;
+  struct _DEVICE_OBJECT *RealDevice;
+  ULONG SerialNumber;
+  ULONG ReferenceCount;
+  WCHAR VolumeLabel[MAXIMUM_VOLUME_LABEL_LENGTH / sizeof(WCHAR)];
 } VPB, *PVPB;
 
 typedef enum _IO_ALLOCATION_ACTION {
@@ -2987,78 +2974,78 @@ typedef enum _IO_ALLOCATION_ACTION {
 
 typedef IO_ALLOCATION_ACTION
 (DDKAPI *PDRIVER_CONTROL)(
-  IN struct _DEVICE_OBJECT  *DeviceObject,
-  IN struct _IRP  *Irp,
-  IN PVOID  MapRegisterBase,
-  IN PVOID  Context);
+  IN struct _DEVICE_OBJECT *DeviceObject,
+  IN struct _IRP *Irp,
+  IN PVOID MapRegisterBase,
+  IN PVOID Context);
 
 typedef struct _WAIT_CONTEXT_BLOCK {
-  KDEVICE_QUEUE_ENTRY  WaitQueueEntry;
-  PDRIVER_CONTROL  DeviceRoutine;
-  PVOID  DeviceContext;
-  ULONG  NumberOfMapRegisters;
-  PVOID  DeviceObject;
-  PVOID  CurrentIrp;
-  PKDPC  BufferChainingDpc;
+  KDEVICE_QUEUE_ENTRY WaitQueueEntry;
+  PDRIVER_CONTROL DeviceRoutine;
+  PVOID DeviceContext;
+  ULONG NumberOfMapRegisters;
+  PVOID DeviceObject;
+  PVOID CurrentIrp;
+  PKDPC BufferChainingDpc;
 } WAIT_CONTEXT_BLOCK, *PWAIT_CONTEXT_BLOCK;
 
 typedef struct _DEVICE_OBJECT {
-  CSHORT  Type;
-  USHORT  Size;
-  LONG  ReferenceCount;
-  struct _DRIVER_OBJECT  *DriverObject;
-  struct _DEVICE_OBJECT  *NextDevice;
-  struct _DEVICE_OBJECT  *AttachedDevice;
-  struct _IRP  *CurrentIrp;
-  PIO_TIMER  Timer;
-  ULONG  Flags;
-  ULONG  Characteristics;
-  volatile PVPB  Vpb;
-  PVOID  DeviceExtension;
-  DEVICE_TYPE  DeviceType;
-  CCHAR  StackSize;
+  CSHORT Type;
+  USHORT Size;
+  LONG ReferenceCount;
+  struct _DRIVER_OBJECT *DriverObject;
+  struct _DEVICE_OBJECT *NextDevice;
+  struct _DEVICE_OBJECT *AttachedDevice;
+  struct _IRP *CurrentIrp;
+  PIO_TIMER Timer;
+  ULONG Flags;
+  ULONG Characteristics;
+  volatile PVPB Vpb;
+  PVOID DeviceExtension;
+  DEVICE_TYPE DeviceType;
+  CCHAR StackSize;
   union {
-    LIST_ENTRY  ListEntry;
-    WAIT_CONTEXT_BLOCK  Wcb;
+    LIST_ENTRY ListEntry;
+    WAIT_CONTEXT_BLOCK Wcb;
   } Queue;
-  ULONG  AlignmentRequirement;
-  KDEVICE_QUEUE  DeviceQueue;
-  KDPC  Dpc;
-  ULONG  ActiveThreadCount;
-  PSECURITY_DESCRIPTOR  SecurityDescriptor;
-  KEVENT  DeviceLock;
-  USHORT  SectorSize;
-  USHORT  Spare1;
-  struct _DEVOBJ_EXTENSION  *DeviceObjectExtension;
-  PVOID  Reserved;
+  ULONG AlignmentRequirement;
+  KDEVICE_QUEUE DeviceQueue;
+  KDPC Dpc;
+  ULONG ActiveThreadCount;
+  PSECURITY_DESCRIPTOR SecurityDescriptor;
+  KEVENT DeviceLock;
+  USHORT SectorSize;
+  USHORT Spare1;
+  struct _DEVOBJ_EXTENSION *DeviceObjectExtension;
+  PVOID Reserved;
 } DEVICE_OBJECT, *PDEVICE_OBJECT;
 
 typedef struct _IO_REMOVE_LOCK_TRACKING_BLOCK * PIO_REMOVE_LOCK_TRACKING_BLOCK;
 
 typedef struct _IO_REMOVE_LOCK_COMMON_BLOCK {
-  BOOLEAN  Removed;
-  BOOLEAN  Reserved[3];
-  volatile LONG  IoCount;
-  KEVENT  RemoveEvent;
+  BOOLEAN Removed;
+  BOOLEAN Reserved[3];
+  volatile LONG IoCount;
+  KEVENT RemoveEvent;
 } IO_REMOVE_LOCK_COMMON_BLOCK;
 
 typedef struct _IO_REMOVE_LOCK_DBG_BLOCK {
-  LONG  Signature;
-  LONG  HighWatermark;
-  LONGLONG  MaxLockedTicks;
-  LONG  AllocateTag;
-  LIST_ENTRY  LockList;
-  KSPIN_LOCK  Spin;
-  volatile LONG  LowMemoryCount;
-  ULONG  Reserved1[4];
-  PVOID  Reserved2;
-  PIO_REMOVE_LOCK_TRACKING_BLOCK  Blocks;
+  LONG Signature;
+  LONG HighWatermark;
+  LONGLONG MaxLockedTicks;
+  LONG AllocateTag;
+  LIST_ENTRY LockList;
+  KSPIN_LOCK Spin;
+  volatile LONG LowMemoryCount;
+  ULONG Reserved1[4];
+  PVOID Reserved2;
+  PIO_REMOVE_LOCK_TRACKING_BLOCK Blocks;
 } IO_REMOVE_LOCK_DBG_BLOCK;
 
 typedef struct _IO_REMOVE_LOCK {
-  IO_REMOVE_LOCK_COMMON_BLOCK  Common;
+  IO_REMOVE_LOCK_COMMON_BLOCK Common;
 #if DBG
-  IO_REMOVE_LOCK_DBG_BLOCK  Dbg;
+  IO_REMOVE_LOCK_DBG_BLOCK Dbg;
 #endif
 } IO_REMOVE_LOCK, *PIO_REMOVE_LOCK;
 
@@ -3066,91 +3053,91 @@ typedef struct _IO_WORKITEM *PIO_WORKITEM;
 
 typedef VOID
 (DDKAPI IO_WORKITEM_ROUTINE)(
-  IN PDEVICE_OBJECT  DeviceObject,
-  IN PVOID  Context);
+  IN PDEVICE_OBJECT DeviceObject,
+  IN PVOID Context);
 typedef IO_WORKITEM_ROUTINE *PIO_WORKITEM_ROUTINE;
 
 typedef struct _SHARE_ACCESS {
-  ULONG  OpenCount;
-  ULONG  Readers;
-  ULONG  Writers;
-  ULONG  Deleters;
-  ULONG  SharedRead;
-  ULONG  SharedWrite;
-  ULONG  SharedDelete;
+  ULONG OpenCount;
+  ULONG Readers;
+  ULONG Writers;
+  ULONG Deleters;
+  ULONG SharedRead;
+  ULONG SharedWrite;
+  ULONG SharedDelete;
 } SHARE_ACCESS, *PSHARE_ACCESS;
 
 /* While MS WDK uses inheritance in C++, we cannot do this with gcc, as
    inheritance, even from a struct renders the type non-POD. So we use
    this hack */
 #define PCI_COMMON_HEADER_LAYOUT \
-  USHORT  VendorID; \
-  USHORT  DeviceID; \
-  USHORT  Command; \
-  USHORT  Status; \
-  UCHAR   RevisionID; \
-  UCHAR   ProgIf; \
-  UCHAR   SubClass; \
-  UCHAR   BaseClass; \
-  UCHAR   CacheLineSize; \
-  UCHAR   LatencyTimer; \
-  UCHAR   HeaderType; \
-  UCHAR   BIST; \
+  USHORT VendorID; \
+  USHORT DeviceID; \
+  USHORT Command; \
+  USHORT Status; \
+  UCHAR RevisionID; \
+  UCHAR ProgIf; \
+  UCHAR SubClass; \
+  UCHAR BaseClass; \
+  UCHAR CacheLineSize; \
+  UCHAR LatencyTimer; \
+  UCHAR HeaderType; \
+  UCHAR BIST; \
   union { \
     struct _PCI_HEADER_TYPE_0 { \
-      ULONG   BaseAddresses[PCI_TYPE0_ADDRESSES]; \
-      ULONG   CIS; \
-      USHORT  SubVendorID; \
-      USHORT  SubSystemID; \
-      ULONG   ROMBaseAddress; \
-      UCHAR   CapabilitiesPtr; \
-      UCHAR   Reserved1[3]; \
-      ULONG   Reserved2; \
-      UCHAR   InterruptLine; \
-      UCHAR   InterruptPin; \
-      UCHAR   MinimumGrant; \
-      UCHAR   MaximumLatency; \
+      ULONG BaseAddresses[PCI_TYPE0_ADDRESSES]; \
+      ULONG CIS; \
+      USHORT SubVendorID; \
+      USHORT SubSystemID; \
+      ULONG ROMBaseAddress; \
+      UCHAR CapabilitiesPtr; \
+      UCHAR Reserved1[3]; \
+      ULONG Reserved2; \
+      UCHAR InterruptLine; \
+      UCHAR InterruptPin; \
+      UCHAR MinimumGrant; \
+      UCHAR MaximumLatency; \
     } type0; \
     struct _PCI_HEADER_TYPE_1 { \
-      ULONG   BaseAddresses[PCI_TYPE1_ADDRESSES]; \
-      UCHAR   PrimaryBus; \
-      UCHAR   SecondaryBus; \
-      UCHAR   SubordinateBus; \
-      UCHAR   SecondaryLatency; \
-      UCHAR   IOBase; \
-      UCHAR   IOLimit; \
-      USHORT  SecondaryStatus; \
-      USHORT  MemoryBase; \
-      USHORT  MemoryLimit; \
-      USHORT  PrefetchBase; \
-      USHORT  PrefetchLimit; \
-      ULONG   PrefetchBaseUpper32; \
-      ULONG   PrefetchLimitUpper32; \
-      USHORT  IOBaseUpper16; \
-      USHORT  IOLimitUpper16; \
-      UCHAR   CapabilitiesPtr; \
-      UCHAR   Reserved1[3]; \
-      ULONG   ROMBaseAddress; \
-      UCHAR   InterruptLine; \
-      UCHAR   InterruptPin; \
-      USHORT  BridgeControl; \
+      ULONG BaseAddresses[PCI_TYPE1_ADDRESSES]; \
+      UCHAR PrimaryBus; \
+      UCHAR SecondaryBus; \
+      UCHAR SubordinateBus; \
+      UCHAR SecondaryLatency; \
+      UCHAR IOBase; \
+      UCHAR IOLimit; \
+      USHORT SecondaryStatus; \
+      USHORT MemoryBase; \
+      USHORT MemoryLimit; \
+      USHORT PrefetchBase; \
+      USHORT PrefetchLimit; \
+      ULONG PrefetchBaseUpper32; \
+      ULONG PrefetchLimitUpper32; \
+      USHORT IOBaseUpper16; \
+      USHORT IOLimitUpper16; \
+      UCHAR CapabilitiesPtr; \
+      UCHAR Reserved1[3]; \
+      ULONG ROMBaseAddress; \
+      UCHAR InterruptLine; \
+      UCHAR InterruptPin; \
+      USHORT BridgeControl; \
     } type1; \
     struct _PCI_HEADER_TYPE_2 { \
-      ULONG   SocketRegistersBaseAddress; \
-      UCHAR   CapabilitiesPtr; \
-      UCHAR   Reserved; \
-      USHORT  SecondaryStatus; \
-      UCHAR   PrimaryBus; \
-      UCHAR   SecondaryBus; \
-      UCHAR   SubordinateBus; \
-      UCHAR   SecondaryLatency; \
-      struct  { \
-        ULONG   Base; \
-        ULONG   Limit; \
+      ULONG SocketRegistersBaseAddress; \
+      UCHAR CapabilitiesPtr; \
+      UCHAR Reserved; \
+      USHORT SecondaryStatus; \
+      UCHAR PrimaryBus; \
+      UCHAR SecondaryBus; \
+      UCHAR SubordinateBus; \
+      UCHAR SecondaryLatency; \
+      struct { \
+        ULONG Base; \
+        ULONG Limit; \
       } Range[PCI_TYPE2_ADDRESSES-1]; \
-      UCHAR   InterruptLine; \
-      UCHAR   InterruptPin; \
-      USHORT  BridgeControl; \
+      UCHAR InterruptLine; \
+      UCHAR InterruptPin; \
+      USHORT BridgeControl; \
     } type2; \
   } u;
 
@@ -3166,12 +3153,12 @@ typedef struct _PCI_COMMON_HEADER {
 #ifdef __cplusplus
 typedef struct _PCI_COMMON_CONFIG {
   PCI_COMMON_HEADER_LAYOUT
-  UCHAR  DeviceSpecific[192];
+  UCHAR DeviceSpecific[192];
 } PCI_COMMON_CONFIG, *PPCI_COMMON_CONFIG;
 #else
 typedef struct _PCI_COMMON_CONFIG {
   PCI_COMMON_HEADER DUMMYSTRUCTNAME;
-  UCHAR  DeviceSpecific[192];
+  UCHAR DeviceSpecific[192];
 } PCI_COMMON_CONFIG, *PPCI_COMMON_CONFIG;
 #endif
 
@@ -3189,20 +3176,20 @@ typedef enum _CREATE_FILE_TYPE {
 
 typedef struct _IO_STATUS_BLOCK {
   _ANONYMOUS_UNION union {
-    NTSTATUS  Status;
-    PVOID  Pointer;
+    NTSTATUS Status;
+    PVOID Pointer;
   } DUMMYUNIONNAME;
-  ULONG_PTR  Information;
+  ULONG_PTR Information;
 } IO_STATUS_BLOCK, *PIO_STATUS_BLOCK;
 
 typedef struct _PCI_SLOT_NUMBER {
   union {
     struct {
-      ULONG  DeviceNumber : 5;
-      ULONG  FunctionNumber : 3;
-      ULONG  Reserved : 24;
+      ULONG DeviceNumber:5;
+      ULONG FunctionNumber:3;
+      ULONG Reserved:24;
     } bits;
-    ULONG  AsULONG;
+    ULONG AsULONG;
   } u;
 } PCI_SLOT_NUMBER, *PPCI_SLOT_NUMBER;
 
@@ -3214,8 +3201,8 @@ typedef VOID
 
 typedef VOID
 (DDKAPI *WMI_NOTIFICATION_CALLBACK)(
-  PVOID  Wnode,
-  PVOID  Context);
+  PVOID Wnode,
+  PVOID Context);
 
 #define EVENT_INCREMENT                   1
 #define IO_NO_INCREMENT                   0
@@ -3235,103 +3222,103 @@ typedef VOID
 #define MM_MAXIMUM_DISK_IO_SIZE          (0x10000)
 
 typedef struct _BOOTDISK_INFORMATION {
-  LONGLONG  BootPartitionOffset;
-  LONGLONG  SystemPartitionOffset;
-  ULONG  BootDeviceSignature;
-  ULONG  SystemDeviceSignature;
+  LONGLONG BootPartitionOffset;
+  LONGLONG SystemPartitionOffset;
+  ULONG BootDeviceSignature;
+  ULONG SystemDeviceSignature;
 } BOOTDISK_INFORMATION, *PBOOTDISK_INFORMATION;
 
 typedef struct _BOOTDISK_INFORMATION_EX {
-  LONGLONG  BootPartitionOffset;
-  LONGLONG  SystemPartitionOffset;
-  ULONG  BootDeviceSignature;
-  ULONG  SystemDeviceSignature;
-  GUID  BootDeviceGuid;
-  GUID  SystemDeviceGuid;
-  BOOLEAN  BootDeviceIsGpt;
-  BOOLEAN  SystemDeviceIsGpt;
+  LONGLONG BootPartitionOffset;
+  LONGLONG SystemPartitionOffset;
+  ULONG BootDeviceSignature;
+  ULONG SystemDeviceSignature;
+  GUID BootDeviceGuid;
+  GUID SystemDeviceGuid;
+  BOOLEAN BootDeviceIsGpt;
+  BOOLEAN SystemDeviceIsGpt;
 } BOOTDISK_INFORMATION_EX, *PBOOTDISK_INFORMATION_EX;
 
 typedef struct _EISA_MEMORY_TYPE {
-  UCHAR  ReadWrite : 1;
-  UCHAR  Cached : 1;
-  UCHAR  Reserved0 : 1;
-  UCHAR  Type : 2;
-  UCHAR  Shared : 1;
-  UCHAR  Reserved1 : 1;
-  UCHAR  MoreEntries : 1;
+  UCHAR ReadWrite:1;
+  UCHAR Cached:1;
+  UCHAR Reserved0:1;
+  UCHAR Type:2;
+  UCHAR Shared:1;
+  UCHAR Reserved1:1;
+  UCHAR MoreEntries:1;
 } EISA_MEMORY_TYPE, *PEISA_MEMORY_TYPE;
 
 #include <pshpack1.h>
 typedef struct _EISA_MEMORY_CONFIGURATION {
-  EISA_MEMORY_TYPE  ConfigurationByte;
-  UCHAR  DataSize;
-  USHORT  AddressLowWord;
-  UCHAR  AddressHighByte;
-  USHORT  MemorySize;
+  EISA_MEMORY_TYPE ConfigurationByte;
+  UCHAR DataSize;
+  USHORT AddressLowWord;
+  UCHAR AddressHighByte;
+  USHORT MemorySize;
 } EISA_MEMORY_CONFIGURATION, *PEISA_MEMORY_CONFIGURATION;
 #include <poppack.h>
 
 typedef struct _EISA_IRQ_DESCRIPTOR {
-  UCHAR  Interrupt : 4;
-  UCHAR  Reserved : 1;
-  UCHAR  LevelTriggered : 1;
-  UCHAR  Shared : 1;
-  UCHAR  MoreEntries : 1;
+  UCHAR Interrupt:4;
+  UCHAR Reserved:1;
+  UCHAR LevelTriggered:1;
+  UCHAR Shared:1;
+  UCHAR MoreEntries:1;
 } EISA_IRQ_DESCRIPTOR, *PEISA_IRQ_DESCRIPTOR;
 
 typedef struct _EISA_IRQ_CONFIGURATION {
-  EISA_IRQ_DESCRIPTOR  ConfigurationByte;
-  UCHAR  Reserved;
+  EISA_IRQ_DESCRIPTOR ConfigurationByte;
+  UCHAR Reserved;
 } EISA_IRQ_CONFIGURATION, *PEISA_IRQ_CONFIGURATION;
 
 typedef struct _DMA_CONFIGURATION_BYTE0 {
-  UCHAR Channel : 3;
-  UCHAR Reserved : 3;
-  UCHAR Shared : 1;
-  UCHAR MoreEntries : 1;
+  UCHAR Channel:3;
+  UCHAR Reserved:3;
+  UCHAR Shared:1;
+  UCHAR MoreEntries:1;
 } DMA_CONFIGURATION_BYTE0;
 
 typedef struct _DMA_CONFIGURATION_BYTE1 {
-  UCHAR  Reserved0 : 2;
-  UCHAR  TransferSize : 2;
-  UCHAR  Timing : 2;
-  UCHAR  Reserved1 : 2;
+  UCHAR Reserved0:2;
+  UCHAR TransferSize:2;
+  UCHAR Timing:2;
+  UCHAR Reserved1:2;
 } DMA_CONFIGURATION_BYTE1;
 
 typedef struct _EISA_DMA_CONFIGURATION {
-  DMA_CONFIGURATION_BYTE0  ConfigurationByte0;
-  DMA_CONFIGURATION_BYTE1  ConfigurationByte1;
+  DMA_CONFIGURATION_BYTE0 ConfigurationByte0;
+  DMA_CONFIGURATION_BYTE1 ConfigurationByte1;
 } EISA_DMA_CONFIGURATION, *PEISA_DMA_CONFIGURATION;
 
 #include <pshpack1.h>
 typedef struct _EISA_PORT_DESCRIPTOR {
-  UCHAR  NumberPorts : 5;
-  UCHAR  Reserved : 1;
-  UCHAR  Shared : 1;
-  UCHAR  MoreEntries : 1;
+  UCHAR NumberPorts:5;
+  UCHAR Reserved:1;
+  UCHAR Shared:1;
+  UCHAR MoreEntries:1;
 } EISA_PORT_DESCRIPTOR, *PEISA_PORT_DESCRIPTOR;
 
 typedef struct _EISA_PORT_CONFIGURATION {
-  EISA_PORT_DESCRIPTOR  Configuration;
-  USHORT  PortAddress;
+  EISA_PORT_DESCRIPTOR Configuration;
+  USHORT PortAddress;
 } EISA_PORT_CONFIGURATION, *PEISA_PORT_CONFIGURATION;
 #include <poppack.h>
 
 typedef struct _CM_EISA_FUNCTION_INFORMATION {
-  ULONG  CompressedId;
-  UCHAR  IdSlotFlags1;
-  UCHAR  IdSlotFlags2;
-  UCHAR  MinorRevision;
-  UCHAR  MajorRevision;
-  UCHAR  Selections[26];
-  UCHAR  FunctionFlags;
-  UCHAR  TypeString[80];
-  EISA_MEMORY_CONFIGURATION  EisaMemory[9];
-  EISA_IRQ_CONFIGURATION  EisaIrq[7];
-  EISA_DMA_CONFIGURATION  EisaDma[4];
-  EISA_PORT_CONFIGURATION  EisaPort[20];
-  UCHAR  InitializationData[60];
+  ULONG CompressedId;
+  UCHAR IdSlotFlags1;
+  UCHAR IdSlotFlags2;
+  UCHAR MinorRevision;
+  UCHAR MajorRevision;
+  UCHAR Selections[26];
+  UCHAR FunctionFlags;
+  UCHAR TypeString[80];
+  EISA_MEMORY_CONFIGURATION EisaMemory[9];
+  EISA_IRQ_CONFIGURATION EisaIrq[7];
+  EISA_DMA_CONFIGURATION EisaDma[4];
+  EISA_PORT_CONFIGURATION EisaPort[20];
+  UCHAR InitializationData[60];
 } CM_EISA_FUNCTION_INFORMATION, *PCM_EISA_FUNCTION_INFORMATION;
 
 /* CM_EISA_FUNCTION_INFORMATION.FunctionFlags */
@@ -3349,14 +3336,14 @@ typedef struct _CM_EISA_FUNCTION_INFORMATION {
   + EISA_HAS_MEMORY_ENTRY + EISA_HAS_TYPE_ENTRY)
 
 typedef struct _CM_EISA_SLOT_INFORMATION {
-  UCHAR  ReturnCode;
-  UCHAR  ReturnFlags;
-  UCHAR  MajorRevision;
-  UCHAR  MinorRevision;
-  USHORT  Checksum;
-  UCHAR  NumberFunctions;
-  UCHAR  FunctionInformation;
-  ULONG  CompressedId;
+  UCHAR ReturnCode;
+  UCHAR ReturnFlags;
+  UCHAR MajorRevision;
+  UCHAR MinorRevision;
+  USHORT Checksum;
+  UCHAR NumberFunctions;
+  UCHAR FunctionInformation;
+  ULONG CompressedId;
 } CM_EISA_SLOT_INFORMATION, *PCM_EISA_SLOT_INFORMATION;
 
 /* CM_EISA_SLOT_INFORMATION.ReturnCode */
@@ -3373,7 +3360,7 @@ typedef struct _CM_EISA_SLOT_INFORMATION {
 
 typedef VOID
 (DDKAPI *PINTERFACE_REFERENCE)(
-  PVOID  Context);
+  PVOID Context);
 
 typedef VOID
 (DDKAPI *PINTERFACE_DEREFERENCE)(
@@ -3381,25 +3368,25 @@ typedef VOID
 
 typedef BOOLEAN
 (DDKAPI *PTRANSLATE_BUS_ADDRESS)(
-  IN PVOID  Context,
-  IN PHYSICAL_ADDRESS  BusAddress,
-  IN ULONG  Length,
-  IN OUT PULONG  AddressSpace,
+  IN PVOID Context,
+  IN PHYSICAL_ADDRESS BusAddress,
+  IN ULONG Length,
+  IN OUT PULONG AddressSpace,
   OUT PPHYSICAL_ADDRESS  TranslatedAddress);
 
 typedef struct _DMA_ADAPTER*
 (DDKAPI *PGET_DMA_ADAPTER)(
-  IN PVOID  Context,
-  IN struct _DEVICE_DESCRIPTION  *DeviceDescriptor,
-  OUT PULONG  NumberOfMapRegisters);
+  IN PVOID Context,
+  IN struct _DEVICE_DESCRIPTION *DeviceDescriptor,
+  OUT PULONG NumberOfMapRegisters);
 
 typedef ULONG
 (DDKAPI *PGET_SET_DEVICE_DATA)(
-  IN PVOID  Context,
-  IN ULONG  DataType,
-  IN PVOID  Buffer,
-  IN ULONG  Offset,
-  IN ULONG  Length);
+  IN PVOID Context,
+  IN ULONG DataType,
+  IN PVOID Buffer,
+  IN ULONG Offset,
+  IN ULONG Length);
 
 /* PCI_DEVICE_PRESENCE_PARAMETERS.Flags */
 #define PCI_USE_SUBSYSTEM_IDS   0x00000001
@@ -3411,26 +3398,26 @@ typedef ULONG
 #define PCI_USE_LOCAL_DEVICE    0x00000040
 
 typedef struct _PCI_DEVICE_PRESENCE_PARAMETERS {
-  ULONG   Size;
-  ULONG   Flags;
-  USHORT  VendorID;
-  USHORT  DeviceID;
-  UCHAR   RevisionID;
-  USHORT  SubVendorID;
-  USHORT  SubSystemID;
-  UCHAR   BaseClass;
-  UCHAR   SubClass;
-  UCHAR   ProgIf;
+  ULONG Size;
+  ULONG Flags;
+  USHORT VendorID;
+  USHORT DeviceID;
+  UCHAR RevisionID;
+  USHORT SubVendorID;
+  USHORT SubSystemID;
+  UCHAR BaseClass;
+  UCHAR SubClass;
+  UCHAR ProgIf;
 } PCI_DEVICE_PRESENCE_PARAMETERS, *PPCI_DEVICE_PRESENCE_PARAMETERS;
 
 typedef BOOLEAN
 (DDKAPI *PPCI_IS_DEVICE_PRESENT)(
-  IN USHORT  VendorID,
-  IN USHORT  DeviceID,
-  IN UCHAR   RevisionID,
-  IN USHORT  SubVendorID,
-  IN USHORT  SubSystemID,
-  IN ULONG   Flags);
+  IN USHORT VendorID,
+  IN USHORT DeviceID,
+  IN UCHAR RevisionID,
+  IN USHORT SubVendorID,
+  IN USHORT SubSystemID,
+  IN ULONG Flags);
 
 typedef BOOLEAN
 (DDKAPI *PPCI_IS_DEVICE_PRESENT_EX)(
@@ -3438,87 +3425,87 @@ typedef BOOLEAN
   IN PPCI_DEVICE_PRESENCE_PARAMETERS Parameters);
 
 typedef struct _BUS_INTERFACE_STANDARD {
-  USHORT  Size;
-  USHORT  Version;
-  PVOID  Context;
-  PINTERFACE_REFERENCE  InterfaceReference;
-  PINTERFACE_DEREFERENCE  InterfaceDereference;
-  PTRANSLATE_BUS_ADDRESS  TranslateBusAddress;
-  PGET_DMA_ADAPTER  GetDmaAdapter;
-  PGET_SET_DEVICE_DATA  SetBusData;
-  PGET_SET_DEVICE_DATA  GetBusData;
+  USHORT Size;
+  USHORT Version;
+  PVOID Context;
+  PINTERFACE_REFERENCE InterfaceReference;
+  PINTERFACE_DEREFERENCE InterfaceDereference;
+  PTRANSLATE_BUS_ADDRESS TranslateBusAddress;
+  PGET_DMA_ADAPTER GetDmaAdapter;
+  PGET_SET_DEVICE_DATA SetBusData;
+  PGET_SET_DEVICE_DATA GetBusData;
 } BUS_INTERFACE_STANDARD, *PBUS_INTERFACE_STANDARD;
 
 typedef struct _PCI_DEVICE_PRESENT_INTERFACE {
-  USHORT  Size;
-  USHORT  Version;
-  PVOID  Context;
-  PINTERFACE_REFERENCE  InterfaceReference;
-  PINTERFACE_DEREFERENCE  InterfaceDereference;
-  PPCI_IS_DEVICE_PRESENT  IsDevicePresent;
-  PPCI_IS_DEVICE_PRESENT_EX  IsDevicePresentEx;
+  USHORT Size;
+  USHORT Version;
+  PVOID Context;
+  PINTERFACE_REFERENCE InterfaceReference;
+  PINTERFACE_DEREFERENCE InterfaceDereference;
+  PPCI_IS_DEVICE_PRESENT IsDevicePresent;
+  PPCI_IS_DEVICE_PRESENT_EX IsDevicePresentEx;
 } PCI_DEVICE_PRESENT_INTERFACE, *PPCI_DEVICE_PRESENT_INTERFACE;
 
 typedef struct _DEVICE_CAPABILITIES {
-  USHORT  Size;
-  USHORT  Version;
-  ULONG  DeviceD1 : 1;
-  ULONG  DeviceD2 : 1;
-  ULONG  LockSupported : 1;
-  ULONG  EjectSupported : 1;
-  ULONG  Removable : 1;
-  ULONG  DockDevice : 1;
-  ULONG  UniqueID : 1;
-  ULONG  SilentInstall : 1;
-  ULONG  RawDeviceOK : 1;
-  ULONG  SurpriseRemovalOK : 1;
-  ULONG  WakeFromD0 : 1;
-  ULONG  WakeFromD1 : 1;
-  ULONG  WakeFromD2 : 1;
-  ULONG  WakeFromD3 : 1;
-  ULONG  HardwareDisabled : 1;
-  ULONG  NonDynamic : 1;
-  ULONG  WarmEjectSupported : 1;
-  ULONG  NoDisplayInUI : 1;
-  ULONG  Reserved : 14;
-  ULONG  Address;
-  ULONG  UINumber;
-  DEVICE_POWER_STATE  DeviceState[PowerSystemMaximum];
-  SYSTEM_POWER_STATE  SystemWake;
-  DEVICE_POWER_STATE  DeviceWake;
-  ULONG  D1Latency;
-  ULONG  D2Latency;
-  ULONG  D3Latency;
+  USHORT Size;
+  USHORT Version;
+  ULONG DeviceD1:1;
+  ULONG DeviceD2:1;
+  ULONG LockSupported:1;
+  ULONG EjectSupported:1;
+  ULONG Removable:1;
+  ULONG DockDevice:1;
+  ULONG UniqueID:1;
+  ULONG SilentInstall:1;
+  ULONG RawDeviceOK:1;
+  ULONG SurpriseRemovalOK:1;
+  ULONG WakeFromD0:1;
+  ULONG WakeFromD1:1;
+  ULONG WakeFromD2:1;
+  ULONG WakeFromD3:1;
+  ULONG HardwareDisabled:1;
+  ULONG NonDynamic:1;
+  ULONG WarmEjectSupported:1;
+  ULONG NoDisplayInUI:1;
+  ULONG Reserved:14;
+  ULONG Address;
+  ULONG UINumber;
+  DEVICE_POWER_STATE DeviceState[PowerSystemMaximum];
+  SYSTEM_POWER_STATE SystemWake;
+  DEVICE_POWER_STATE DeviceWake;
+  ULONG D1Latency;
+  ULONG D2Latency;
+  ULONG D3Latency;
 } DEVICE_CAPABILITIES, *PDEVICE_CAPABILITIES;
 
 typedef struct _DEVICE_INTERFACE_CHANGE_NOTIFICATION {
-  USHORT  Version;
-  USHORT  Size;
-  GUID  Event;
-  GUID  InterfaceClassGuid;
-  PUNICODE_STRING  SymbolicLinkName;
+  USHORT Version;
+  USHORT Size;
+  GUID Event;
+  GUID InterfaceClassGuid;
+  PUNICODE_STRING SymbolicLinkName;
 } DEVICE_INTERFACE_CHANGE_NOTIFICATION, *PDEVICE_INTERFACE_CHANGE_NOTIFICATION;
 
 typedef struct _HWPROFILE_CHANGE_NOTIFICATION {
-  USHORT  Version;
-  USHORT  Size;
-  GUID  Event;
+  USHORT Version;
+  USHORT Size;
+  GUID Event;
 } HWPROFILE_CHANGE_NOTIFICATION, *PHWPROFILE_CHANGE_NOTIFICATION;
 
 #undef INTERFACE
 
 typedef struct _INTERFACE {
-  USHORT  Size;
-  USHORT  Version;
-  PVOID  Context;
-  PINTERFACE_REFERENCE  InterfaceReference;
-  PINTERFACE_DEREFERENCE  InterfaceDereference;
+  USHORT Size;
+  USHORT Version;
+  PVOID Context;
+  PINTERFACE_REFERENCE InterfaceReference;
+  PINTERFACE_DEREFERENCE InterfaceDereference;
 } INTERFACE, *PINTERFACE;
 
 typedef struct _PLUGPLAY_NOTIFICATION_HEADER {
-  USHORT  Version;
-  USHORT  Size;
-  GUID  Event;
+  USHORT Version;
+  USHORT Size;
+  GUID Event;
 } PLUGPLAY_NOTIFICATION_HEADER, *PPLUGPLAY_NOTIFICATION_HEADER;
 
 typedef ULONG PNP_DEVICE_STATE, *PPNP_DEVICE_STATE;
@@ -3533,19 +3520,19 @@ typedef ULONG PNP_DEVICE_STATE, *PPNP_DEVICE_STATE;
 #define PNP_DEVICE_NOT_DISABLEABLE               0x00000020
 
 typedef struct _TARGET_DEVICE_CUSTOM_NOTIFICATION {
-  USHORT  Version;
-  USHORT  Size;
-  GUID  Event;
-  struct _FILE_OBJECT  *FileObject;
-  LONG  NameBufferOffset;
-  UCHAR  CustomDataBuffer[1];
+  USHORT Version;
+  USHORT Size;
+  GUID Event;
+  struct _FILE_OBJECT *FileObject;
+  LONG NameBufferOffset;
+  UCHAR CustomDataBuffer[1];
 } TARGET_DEVICE_CUSTOM_NOTIFICATION, *PTARGET_DEVICE_CUSTOM_NOTIFICATION;
 
 typedef struct _TARGET_DEVICE_REMOVAL_NOTIFICATION {
-  USHORT  Version;
-  USHORT  Size;
-  GUID  Event;
-  struct _FILE_OBJECT  *FileObject;
+  USHORT Version;
+  USHORT Size;
+  GUID Event;
+  struct _FILE_OBJECT *FileObject;
 } TARGET_DEVICE_REMOVAL_NOTIFICATION, *PTARGET_DEVICE_REMOVAL_NOTIFICATION;
 
 typedef enum _DEVICE_USAGE_NOTIFICATION_TYPE {
@@ -3556,9 +3543,9 @@ typedef enum _DEVICE_USAGE_NOTIFICATION_TYPE {
 } DEVICE_USAGE_NOTIFICATION_TYPE;
 
 typedef struct _POWER_SEQUENCE {
-  ULONG  SequenceD1;
-  ULONG  SequenceD2;
-  ULONG  SequenceD3;
+  ULONG SequenceD1;
+  ULONG SequenceD2;
+  ULONG SequenceD3;
 } POWER_SEQUENCE, *PPOWER_SEQUENCE;
 
 typedef enum {
@@ -3674,35 +3661,35 @@ typedef enum _FILE_INFORMATION_CLASS {
 } FILE_INFORMATION_CLASS, *PFILE_INFORMATION_CLASS;
 
 typedef struct _FILE_POSITION_INFORMATION {
-  LARGE_INTEGER  CurrentByteOffset;
+  LARGE_INTEGER CurrentByteOffset;
 } FILE_POSITION_INFORMATION, *PFILE_POSITION_INFORMATION;
 
 #include <pshpack8.h>
 typedef struct _FILE_BASIC_INFORMATION {
-  LARGE_INTEGER  CreationTime;
-  LARGE_INTEGER  LastAccessTime;
-  LARGE_INTEGER  LastWriteTime;
-  LARGE_INTEGER  ChangeTime;
-  ULONG  FileAttributes;
+  LARGE_INTEGER CreationTime;
+  LARGE_INTEGER LastAccessTime;
+  LARGE_INTEGER LastWriteTime;
+  LARGE_INTEGER ChangeTime;
+  ULONG FileAttributes;
 } FILE_BASIC_INFORMATION, *PFILE_BASIC_INFORMATION;
 #include <poppack.h>
 
 typedef struct _FILE_STANDARD_INFORMATION {
-  LARGE_INTEGER  AllocationSize;
-  LARGE_INTEGER  EndOfFile;
-  ULONG  NumberOfLinks;
-  BOOLEAN  DeletePending;
-  BOOLEAN  Directory;
+  LARGE_INTEGER AllocationSize;
+  LARGE_INTEGER EndOfFile;
+  ULONG NumberOfLinks;
+  BOOLEAN DeletePending;
+  BOOLEAN Directory;
 } FILE_STANDARD_INFORMATION, *PFILE_STANDARD_INFORMATION;
 
 typedef struct _FILE_NETWORK_OPEN_INFORMATION {
-  LARGE_INTEGER  CreationTime;
-  LARGE_INTEGER  LastAccessTime;
-  LARGE_INTEGER  LastWriteTime;
-  LARGE_INTEGER  ChangeTime;
-  LARGE_INTEGER  AllocationSize;
-  LARGE_INTEGER  EndOfFile;
-  ULONG  FileAttributes;
+  LARGE_INTEGER CreationTime;
+  LARGE_INTEGER LastAccessTime;
+  LARGE_INTEGER LastWriteTime;
+  LARGE_INTEGER ChangeTime;
+  LARGE_INTEGER AllocationSize;
+  LARGE_INTEGER EndOfFile;
+  ULONG FileAttributes;
 } FILE_NETWORK_OPEN_INFORMATION, *PFILE_NETWORK_OPEN_INFORMATION;
 
 typedef enum _FSINFOCLASS {
@@ -3720,16 +3707,16 @@ typedef enum _FSINFOCLASS {
 } FS_INFORMATION_CLASS, *PFS_INFORMATION_CLASS;
 
 typedef struct _FILE_FS_DEVICE_INFORMATION {
-  DEVICE_TYPE  DeviceType;
-  ULONG  Characteristics;
+  DEVICE_TYPE DeviceType;
+  ULONG Characteristics;
 } FILE_FS_DEVICE_INFORMATION, *PFILE_FS_DEVICE_INFORMATION;
 
 typedef struct _FILE_FULL_EA_INFORMATION {
-  ULONG  NextEntryOffset;
-  UCHAR  Flags;
-  UCHAR  EaNameLength;
-  USHORT  EaValueLength;
-  CHAR  EaName[1];
+  ULONG NextEntryOffset;
+  UCHAR Flags;
+  UCHAR EaNameLength;
+  USHORT EaValueLength;
+  CHAR EaName[1];
 } FILE_FULL_EA_INFORMATION, *PFILE_FULL_EA_INFORMATION;
 
 #define FM_LOCK_BIT             (0x1)
@@ -3740,32 +3727,30 @@ typedef struct _FILE_FULL_EA_INFORMATION {
 typedef ULONG_PTR ERESOURCE_THREAD, *PERESOURCE_THREAD;
 
 typedef struct _OWNER_ENTRY {
-    ERESOURCE_THREAD OwnerThread;
-    _ANONYMOUS_UNION union {
-        LONG OwnerCount;
-        ULONG TableSize;
-    } DUMMYUNIONNAME;
+  ERESOURCE_THREAD OwnerThread;
+  _ANONYMOUS_UNION union {
+    LONG OwnerCount;
+    ULONG TableSize;
+  } DUMMYUNIONNAME;
 } OWNER_ENTRY, *POWNER_ENTRY;
 
-typedef struct _ERESOURCE
-{
-    LIST_ENTRY SystemResourcesList;
-    POWNER_ENTRY OwnerTable;
-    SHORT ActiveCount;
-    USHORT Flag;
-    volatile PKSEMAPHORE SharedWaiters;
-    volatile PKEVENT ExclusiveWaiters;
-    OWNER_ENTRY OwnerEntry;
-    ULONG ActiveEntries;
-    ULONG ContentionCount;
-    ULONG NumberOfSharedWaiters;
-    ULONG NumberOfExclusiveWaiters;
-    __GNU_EXTENSION union
-    {
-        PVOID Address;
-        ULONG_PTR CreatorBackTraceIndex;
-    };
-    KSPIN_LOCK SpinLock;
+typedef struct _ERESOURCE {
+  LIST_ENTRY SystemResourcesList;
+  POWNER_ENTRY OwnerTable;
+  SHORT ActiveCount;
+  USHORT Flag;
+  volatile PKSEMAPHORE SharedWaiters;
+  volatile PKEVENT ExclusiveWaiters;
+  OWNER_ENTRY OwnerEntry;
+  ULONG ActiveEntries;
+  ULONG ContentionCount;
+  ULONG NumberOfSharedWaiters;
+  ULONG NumberOfExclusiveWaiters;
+  __GNU_EXTENSION union {
+    PVOID Address;
+    ULONG_PTR CreatorBackTraceIndex;
+  };
+  KSPIN_LOCK SpinLock;
 } ERESOURCE, *PERESOURCE;
 
 /* ERESOURCE.Flag */
@@ -3777,139 +3762,139 @@ typedef struct _ERESOURCE
 
 typedef BOOLEAN
 (DDKAPI *PFAST_IO_CHECK_IF_POSSIBLE)(
-  IN struct _FILE_OBJECT  *FileObject,
-  IN PLARGE_INTEGER  FileOffset,
-  IN ULONG  Length,
-  IN BOOLEAN  Wait,
-  IN ULONG  LockKey,
-  IN BOOLEAN  CheckForReadOperation,
-  OUT PIO_STATUS_BLOCK  IoStatus,
-  IN struct _DEVICE_OBJECT  *DeviceObject);
+  IN struct _FILE_OBJECT *FileObject,
+  IN PLARGE_INTEGER FileOffset,
+  IN ULONG Length,
+  IN BOOLEAN Wait,
+  IN ULONG LockKey,
+  IN BOOLEAN CheckForReadOperation,
+  OUT PIO_STATUS_BLOCK IoStatus,
+  IN struct _DEVICE_OBJECT *DeviceObject);
 
 typedef BOOLEAN
 (DDKAPI *PFAST_IO_READ)(
-  IN struct _FILE_OBJECT  *FileObject,
-  IN PLARGE_INTEGER  FileOffset,
-  IN ULONG  Length,
-  IN BOOLEAN  Wait,
-  IN ULONG  LockKey,
-  OUT PVOID  Buffer,
-  OUT PIO_STATUS_BLOCK  IoStatus,
-  IN struct _DEVICE_OBJECT  *DeviceObject);
+  IN struct _FILE_OBJECT *FileObject,
+  IN PLARGE_INTEGER FileOffset,
+  IN ULONG Length,
+  IN BOOLEAN Wait,
+  IN ULONG LockKey,
+  OUT PVOID Buffer,
+  OUT PIO_STATUS_BLOCK IoStatus,
+  IN struct _DEVICE_OBJECT *DeviceObject);
 
 typedef BOOLEAN
 (DDKAPI *PFAST_IO_WRITE)(
-  IN struct _FILE_OBJECT  *FileObject,
-  IN PLARGE_INTEGER  FileOffset,
-  IN ULONG  Length,
-  IN BOOLEAN  Wait,
-  IN ULONG  LockKey,
-  IN PVOID  Buffer,
-  OUT PIO_STATUS_BLOCK  IoStatus,
-  IN struct _DEVICE_OBJECT  *DeviceObject);
+  IN struct _FILE_OBJECT *FileObject,
+  IN PLARGE_INTEGER FileOffset,
+  IN ULONG Length,
+  IN BOOLEAN Wait,
+  IN ULONG LockKey,
+  IN PVOID Buffer,
+  OUT PIO_STATUS_BLOCK IoStatus,
+  IN struct _DEVICE_OBJECT *DeviceObject);
 
 typedef BOOLEAN
 (DDKAPI *PFAST_IO_QUERY_BASIC_INFO)(
-  IN struct _FILE_OBJECT  *FileObject,
-  IN BOOLEAN  Wait,
-  OUT PFILE_BASIC_INFORMATION  Buffer,
-  OUT PIO_STATUS_BLOCK  IoStatus,
-  IN struct _DEVICE_OBJECT  *DeviceObject);
+  IN struct _FILE_OBJECT *FileObject,
+  IN BOOLEAN Wait,
+  OUT PFILE_BASIC_INFORMATION Buffer,
+  OUT PIO_STATUS_BLOCK IoStatus,
+  IN struct _DEVICE_OBJECT *DeviceObject);
 
 typedef BOOLEAN
 (DDKAPI *PFAST_IO_QUERY_STANDARD_INFO)(
-  IN struct _FILE_OBJECT  *FileObject,
-  IN BOOLEAN  Wait,
-  OUT PFILE_STANDARD_INFORMATION  Buffer,
-  OUT PIO_STATUS_BLOCK  IoStatus,
-  IN struct _DEVICE_OBJECT  *DeviceObject);
+  IN struct _FILE_OBJECT *FileObject,
+  IN BOOLEAN Wait,
+  OUT PFILE_STANDARD_INFORMATION Buffer,
+  OUT PIO_STATUS_BLOCK IoStatus,
+  IN struct _DEVICE_OBJECT *DeviceObject);
 
 typedef BOOLEAN
 (DDKAPI *PFAST_IO_LOCK)(
-  IN struct _FILE_OBJECT  *FileObject,
-  IN PLARGE_INTEGER  FileOffset,
-  IN PLARGE_INTEGER  Length,
-  PEPROCESS  ProcessId,
-  ULONG  Key,
-  BOOLEAN  FailImmediately,
-  BOOLEAN  ExclusiveLock,
-  OUT PIO_STATUS_BLOCK  IoStatus,
-  IN struct _DEVICE_OBJECT  *DeviceObject);
+  IN struct _FILE_OBJECT *FileObject,
+  IN PLARGE_INTEGER FileOffset,
+  IN PLARGE_INTEGER Length,
+  PEPROCESS ProcessId,
+  ULONG Key,
+  BOOLEAN FailImmediately,
+  BOOLEAN ExclusiveLock,
+  OUT PIO_STATUS_BLOCK IoStatus,
+  IN struct _DEVICE_OBJECT *DeviceObject);
 
 typedef BOOLEAN
 (DDKAPI *PFAST_IO_UNLOCK_SINGLE)(
-  IN struct _FILE_OBJECT  *FileObject,
-  IN PLARGE_INTEGER  FileOffset,
-  IN PLARGE_INTEGER  Length,
-  PEPROCESS  ProcessId,
-  ULONG  Key,
-  OUT PIO_STATUS_BLOCK  IoStatus,
-  IN struct _DEVICE_OBJECT  *DeviceObject);
+  IN struct _FILE_OBJECT *FileObject,
+  IN PLARGE_INTEGER FileOffset,
+  IN PLARGE_INTEGER Length,
+  PEPROCESS ProcessId,
+  ULONG Key,
+  OUT PIO_STATUS_BLOCK IoStatus,
+  IN struct _DEVICE_OBJECT *DeviceObject);
 
 typedef BOOLEAN
 (DDKAPI *PFAST_IO_UNLOCK_ALL)(
-  IN struct _FILE_OBJECT  *FileObject,
-  PEPROCESS  ProcessId,
-  OUT PIO_STATUS_BLOCK  IoStatus,
-  IN struct _DEVICE_OBJECT  *DeviceObject);
+  IN struct _FILE_OBJECT *FileObject,
+  PEPROCESS ProcessId,
+  OUT PIO_STATUS_BLOCK IoStatus,
+  IN struct _DEVICE_OBJECT *DeviceObject);
 
 typedef BOOLEAN
 (DDKAPI *PFAST_IO_UNLOCK_ALL_BY_KEY)(
-  IN struct _FILE_OBJECT  *FileObject,
-  PVOID  ProcessId,
-  ULONG  Key,
-  OUT PIO_STATUS_BLOCK  IoStatus,
-  IN struct _DEVICE_OBJECT  *DeviceObject);
+  IN struct _FILE_OBJECT *FileObject,
+  PVOID ProcessId,
+  ULONG Key,
+  OUT PIO_STATUS_BLOCK IoStatus,
+  IN struct _DEVICE_OBJECT *DeviceObject);
 
 typedef BOOLEAN
 (DDKAPI *PFAST_IO_DEVICE_CONTROL)(
-  IN struct _FILE_OBJECT  *FileObject,
-  IN BOOLEAN  Wait,
-  IN PVOID  InputBuffer  OPTIONAL,
-  IN ULONG  InputBufferLength,
-  OUT PVOID  OutputBuffer  OPTIONAL,
-  IN ULONG  OutputBufferLength,
-  IN ULONG  IoControlCode,
-  OUT PIO_STATUS_BLOCK  IoStatus,
-  IN struct _DEVICE_OBJECT  *DeviceObject);
+  IN struct _FILE_OBJECT *FileObject,
+  IN BOOLEAN Wait,
+  IN PVOID InputBuffer OPTIONAL,
+  IN ULONG InputBufferLength,
+  OUT PVOID OutputBuffer OPTIONAL,
+  IN ULONG OutputBufferLength,
+  IN ULONG IoControlCode,
+  OUT PIO_STATUS_BLOCK IoStatus,
+  IN struct _DEVICE_OBJECT *DeviceObject);
 
 typedef VOID
 (DDKAPI *PFAST_IO_ACQUIRE_FILE)(
-  IN struct _FILE_OBJECT  *FileObject);
+  IN struct _FILE_OBJECT *FileObject);
 
 typedef VOID
 (DDKAPI *PFAST_IO_RELEASE_FILE)(
-  IN struct _FILE_OBJECT  *FileObject);
+  IN struct _FILE_OBJECT *FileObject);
 
 typedef VOID
 (DDKAPI *PFAST_IO_DETACH_DEVICE)(
-  IN struct _DEVICE_OBJECT  *SourceDevice,
-  IN struct _DEVICE_OBJECT  *TargetDevice);
+  IN struct _DEVICE_OBJECT *SourceDevice,
+  IN struct _DEVICE_OBJECT *TargetDevice);
 
 typedef BOOLEAN
 (DDKAPI *PFAST_IO_QUERY_NETWORK_OPEN_INFO)(
-  IN struct _FILE_OBJECT  *FileObject,
-  IN BOOLEAN  Wait,
-  OUT struct _FILE_NETWORK_OPEN_INFORMATION  *Buffer,
-  OUT struct _IO_STATUS_BLOCK  *IoStatus,
-  IN struct _DEVICE_OBJECT  *DeviceObject);
+  IN struct _FILE_OBJECT *FileObject,
+  IN BOOLEAN Wait,
+  OUT struct _FILE_NETWORK_OPEN_INFORMATION *Buffer,
+  OUT struct _IO_STATUS_BLOCK *IoStatus,
+  IN struct _DEVICE_OBJECT *DeviceObject);
 
 typedef NTSTATUS
 (DDKAPI *PFAST_IO_ACQUIRE_FOR_MOD_WRITE)(
-  IN struct _FILE_OBJECT  *FileObject,
-  IN PLARGE_INTEGER  EndingOffset,
-  OUT struct _ERESOURCE  **ResourceToRelease,
-  IN struct _DEVICE_OBJECT  *DeviceObject);
+  IN struct _FILE_OBJECT *FileObject,
+  IN PLARGE_INTEGER EndingOffset,
+  OUT struct _ERESOURCE **ResourceToRelease,
+  IN struct _DEVICE_OBJECT *DeviceObject);
 
 typedef BOOLEAN
 (DDKAPI *PFAST_IO_MDL_READ)(
-  IN struct _FILE_OBJECT  *FileObject,
-  IN PLARGE_INTEGER  FileOffset,
-  IN ULONG  Length,
-  IN ULONG  LockKey,
-  OUT PMDL  *MdlChain,
-  OUT PIO_STATUS_BLOCK  IoStatus,
-  IN struct _DEVICE_OBJECT  *DeviceObject);
+  IN struct _FILE_OBJECT *FileObject,
+  IN PLARGE_INTEGER FileOffset,
+  IN ULONG Length,
+  IN ULONG LockKey,
+  OUT PMDL *MdlChain,
+  OUT PIO_STATUS_BLOCK IoStatus,
+  IN struct _DEVICE_OBJECT *DeviceObject);
 
 typedef BOOLEAN
 (DDKAPI *PFAST_IO_MDL_READ_COMPLETE)(
@@ -3919,122 +3904,122 @@ typedef BOOLEAN
 
 typedef BOOLEAN
 (DDKAPI *PFAST_IO_PREPARE_MDL_WRITE)(
-  IN struct _FILE_OBJECT  *FileObject,
-  IN PLARGE_INTEGER  FileOffset,
-  IN ULONG  Length,
-  IN ULONG  LockKey,
-  OUT PMDL  *MdlChain,
-  OUT PIO_STATUS_BLOCK  IoStatus,
-  IN struct _DEVICE_OBJECT  *DeviceObject);
+  IN struct _FILE_OBJECT *FileObject,
+  IN PLARGE_INTEGER FileOffset,
+  IN ULONG Length,
+  IN ULONG LockKey,
+  OUT PMDL *MdlChain,
+  OUT PIO_STATUS_BLOCK IoStatus,
+  IN struct _DEVICE_OBJECT *DeviceObject);
 
 typedef BOOLEAN
 (DDKAPI *PFAST_IO_MDL_WRITE_COMPLETE)(
-  IN struct _FILE_OBJECT  *FileObject,
-  IN PLARGE_INTEGER  FileOffset,
-  IN PMDL  MdlChain,
-  IN struct _DEVICE_OBJECT  *DeviceObject);
+  IN struct _FILE_OBJECT *FileObject,
+  IN PLARGE_INTEGER FileOffset,
+  IN PMDL MdlChain,
+  IN struct _DEVICE_OBJECT *DeviceObject);
 
 typedef BOOLEAN
 (DDKAPI *PFAST_IO_READ_COMPRESSED)(
-  IN struct _FILE_OBJECT  *FileObject,
-  IN PLARGE_INTEGER  FileOffset,
-  IN ULONG  Length,
-  IN ULONG  LockKey,
-  OUT PVOID  Buffer,
-  OUT PMDL  *MdlChain,
-  OUT PIO_STATUS_BLOCK  IoStatus,
-  OUT struct _COMPRESSED_DATA_INFO  *CompressedDataInfo,
-  IN ULONG  CompressedDataInfoLength,
-  IN struct _DEVICE_OBJECT  *DeviceObject);
+  IN struct _FILE_OBJECT *FileObject,
+  IN PLARGE_INTEGER FileOffset,
+  IN ULONG Length,
+  IN ULONG LockKey,
+  OUT PVOID Buffer,
+  OUT PMDL *MdlChain,
+  OUT PIO_STATUS_BLOCK IoStatus,
+  OUT struct _COMPRESSED_DATA_INFO *CompressedDataInfo,
+  IN ULONG CompressedDataInfoLength,
+  IN struct _DEVICE_OBJECT *DeviceObject);
 
 typedef BOOLEAN
 (DDKAPI *PFAST_IO_WRITE_COMPRESSED)(
-  IN struct _FILE_OBJECT  *FileObject,
-  IN PLARGE_INTEGER  FileOffset,
-  IN ULONG  Length,
-  IN ULONG  LockKey,
-  IN PVOID  Buffer,
-  OUT PMDL  *MdlChain,
-  OUT PIO_STATUS_BLOCK  IoStatus,
-  IN struct _COMPRESSED_DATA_INFO  *CompressedDataInfo,
-  IN ULONG  CompressedDataInfoLength,
-  IN struct _DEVICE_OBJECT  *DeviceObject);
+  IN struct _FILE_OBJECT *FileObject,
+  IN PLARGE_INTEGER FileOffset,
+  IN ULONG Length,
+  IN ULONG LockKey,
+  IN PVOID Buffer,
+  OUT PMDL *MdlChain,
+  OUT PIO_STATUS_BLOCK IoStatus,
+  IN struct _COMPRESSED_DATA_INFO *CompressedDataInfo,
+  IN ULONG CompressedDataInfoLength,
+  IN struct _DEVICE_OBJECT *DeviceObject);
 
 typedef BOOLEAN
 (DDKAPI *PFAST_IO_MDL_READ_COMPLETE_COMPRESSED)(
-  IN struct _FILE_OBJECT  *FileObject,
-  IN PMDL  MdlChain,
-  IN struct _DEVICE_OBJECT  *DeviceObject);
+  IN struct _FILE_OBJECT *FileObject,
+  IN PMDL MdlChain,
+  IN struct _DEVICE_OBJECT *DeviceObject);
 
 typedef BOOLEAN
 (DDKAPI *PFAST_IO_MDL_WRITE_COMPLETE_COMPRESSED)(
-  IN struct _FILE_OBJECT  *FileObject,
-  IN PLARGE_INTEGER  FileOffset,
-  IN PMDL  MdlChain,
-  IN struct _DEVICE_OBJECT  *DeviceObject);
+  IN struct _FILE_OBJECT *FileObject,
+  IN PLARGE_INTEGER FileOffset,
+  IN PMDL MdlChain,
+  IN struct _DEVICE_OBJECT *DeviceObject);
 
 typedef BOOLEAN
 (DDKAPI *PFAST_IO_QUERY_OPEN)(
-  IN struct _IRP  *Irp,
-  OUT PFILE_NETWORK_OPEN_INFORMATION  NetworkInformation,
-  IN struct _DEVICE_OBJECT  *DeviceObject);
+  IN struct _IRP *Irp,
+  OUT PFILE_NETWORK_OPEN_INFORMATION NetworkInformation,
+  IN struct _DEVICE_OBJECT *DeviceObject);
 
 typedef NTSTATUS
 (DDKAPI *PFAST_IO_RELEASE_FOR_MOD_WRITE)(
-  IN struct _FILE_OBJECT  *FileObject,
-  IN struct _ERESOURCE  *ResourceToRelease,
-  IN struct _DEVICE_OBJECT  *DeviceObject);
+  IN struct _FILE_OBJECT *FileObject,
+  IN struct _ERESOURCE *ResourceToRelease,
+  IN struct _DEVICE_OBJECT *DeviceObject);
 
 typedef NTSTATUS
 (DDKAPI *PFAST_IO_ACQUIRE_FOR_CCFLUSH)(
-  IN struct _FILE_OBJECT  *FileObject,
-  IN struct _DEVICE_OBJECT  *DeviceObject);
+  IN struct _FILE_OBJECT *FileObject,
+  IN struct _DEVICE_OBJECT *DeviceObject);
 
 typedef NTSTATUS
 (DDKAPI *PFAST_IO_RELEASE_FOR_CCFLUSH) (
-  IN struct _FILE_OBJECT  *FileObject,
-  IN struct _DEVICE_OBJECT  *DeviceObject);
+  IN struct _FILE_OBJECT *FileObject,
+  IN struct _DEVICE_OBJECT *DeviceObject);
 
 typedef struct _FAST_IO_DISPATCH {
-  ULONG  SizeOfFastIoDispatch;
-  PFAST_IO_CHECK_IF_POSSIBLE  FastIoCheckIfPossible;
-  PFAST_IO_READ  FastIoRead;
-  PFAST_IO_WRITE  FastIoWrite;
-  PFAST_IO_QUERY_BASIC_INFO  FastIoQueryBasicInfo;
-  PFAST_IO_QUERY_STANDARD_INFO  FastIoQueryStandardInfo;
-  PFAST_IO_LOCK  FastIoLock;
-  PFAST_IO_UNLOCK_SINGLE  FastIoUnlockSingle;
-  PFAST_IO_UNLOCK_ALL  FastIoUnlockAll;
-  PFAST_IO_UNLOCK_ALL_BY_KEY  FastIoUnlockAllByKey;
-  PFAST_IO_DEVICE_CONTROL  FastIoDeviceControl;
-  PFAST_IO_ACQUIRE_FILE  AcquireFileForNtCreateSection;
-  PFAST_IO_RELEASE_FILE  ReleaseFileForNtCreateSection;
-  PFAST_IO_DETACH_DEVICE  FastIoDetachDevice;
-  PFAST_IO_QUERY_NETWORK_OPEN_INFO  FastIoQueryNetworkOpenInfo;
-  PFAST_IO_ACQUIRE_FOR_MOD_WRITE  AcquireForModWrite;
-  PFAST_IO_MDL_READ  MdlRead;
-  PFAST_IO_MDL_READ_COMPLETE  MdlReadComplete;
-  PFAST_IO_PREPARE_MDL_WRITE  PrepareMdlWrite;
-  PFAST_IO_MDL_WRITE_COMPLETE  MdlWriteComplete;
-  PFAST_IO_READ_COMPRESSED  FastIoReadCompressed;
-  PFAST_IO_WRITE_COMPRESSED  FastIoWriteCompressed;
-  PFAST_IO_MDL_READ_COMPLETE_COMPRESSED  MdlReadCompleteCompressed;
-  PFAST_IO_MDL_WRITE_COMPLETE_COMPRESSED  MdlWriteCompleteCompressed;
-  PFAST_IO_QUERY_OPEN  FastIoQueryOpen;
-  PFAST_IO_RELEASE_FOR_MOD_WRITE  ReleaseForModWrite;
-  PFAST_IO_ACQUIRE_FOR_CCFLUSH  AcquireForCcFlush;
-  PFAST_IO_RELEASE_FOR_CCFLUSH  ReleaseForCcFlush;
+  ULONG SizeOfFastIoDispatch;
+  PFAST_IO_CHECK_IF_POSSIBLE FastIoCheckIfPossible;
+  PFAST_IO_READ FastIoRead;
+  PFAST_IO_WRITE FastIoWrite;
+  PFAST_IO_QUERY_BASIC_INFO FastIoQueryBasicInfo;
+  PFAST_IO_QUERY_STANDARD_INFO FastIoQueryStandardInfo;
+  PFAST_IO_LOCK FastIoLock;
+  PFAST_IO_UNLOCK_SINGLE FastIoUnlockSingle;
+  PFAST_IO_UNLOCK_ALL FastIoUnlockAll;
+  PFAST_IO_UNLOCK_ALL_BY_KEY FastIoUnlockAllByKey;
+  PFAST_IO_DEVICE_CONTROL FastIoDeviceControl;
+  PFAST_IO_ACQUIRE_FILE AcquireFileForNtCreateSection;
+  PFAST_IO_RELEASE_FILE ReleaseFileForNtCreateSection;
+  PFAST_IO_DETACH_DEVICE FastIoDetachDevice;
+  PFAST_IO_QUERY_NETWORK_OPEN_INFO FastIoQueryNetworkOpenInfo;
+  PFAST_IO_ACQUIRE_FOR_MOD_WRITE AcquireForModWrite;
+  PFAST_IO_MDL_READ MdlRead;
+  PFAST_IO_MDL_READ_COMPLETE MdlReadComplete;
+  PFAST_IO_PREPARE_MDL_WRITE PrepareMdlWrite;
+  PFAST_IO_MDL_WRITE_COMPLETE MdlWriteComplete;
+  PFAST_IO_READ_COMPRESSED FastIoReadCompressed;
+  PFAST_IO_WRITE_COMPRESSED FastIoWriteCompressed;
+  PFAST_IO_MDL_READ_COMPLETE_COMPRESSED MdlReadCompleteCompressed;
+  PFAST_IO_MDL_WRITE_COMPLETE_COMPRESSED MdlWriteCompleteCompressed;
+  PFAST_IO_QUERY_OPEN FastIoQueryOpen;
+  PFAST_IO_RELEASE_FOR_MOD_WRITE ReleaseForModWrite;
+  PFAST_IO_ACQUIRE_FOR_CCFLUSH AcquireForCcFlush;
+  PFAST_IO_RELEASE_FOR_CCFLUSH ReleaseForCcFlush;
 } FAST_IO_DISPATCH, *PFAST_IO_DISPATCH;
 
 typedef struct _SECTION_OBJECT_POINTERS {
-  PVOID  DataSectionObject;
-  PVOID  SharedCacheMap;
-  PVOID  ImageSectionObject;
+  PVOID DataSectionObject;
+  PVOID SharedCacheMap;
+  PVOID ImageSectionObject;
 } SECTION_OBJECT_POINTERS, *PSECTION_OBJECT_POINTERS;
 
 typedef struct _IO_COMPLETION_CONTEXT {
-  PVOID  Port;
-  PVOID  Key;
+  PVOID Port;
+  PVOID Key;
 } IO_COMPLETION_CONTEXT, *PIO_COMPLETION_CONTEXT;
 
 /* FILE_OBJECT.Flags */
@@ -4210,63 +4195,62 @@ typedef struct _IO_COMPLETION_CONTEXT {
 
 #define IRP_MN_REGINFO_EX                 0x0b
 
-typedef struct _FILE_OBJECT
-{
-    CSHORT Type;
-    CSHORT Size;
-    PDEVICE_OBJECT DeviceObject;
-    PVPB Vpb;
-    PVOID FsContext;
-    PVOID FsContext2;
-    PSECTION_OBJECT_POINTERS SectionObjectPointer;
-    PVOID PrivateCacheMap;
-    NTSTATUS FinalStatus;
-    struct _FILE_OBJECT *RelatedFileObject;
-    BOOLEAN LockOperation;
-    BOOLEAN DeletePending;
-    BOOLEAN ReadAccess;
-    BOOLEAN WriteAccess;
-    BOOLEAN DeleteAccess;
-    BOOLEAN SharedRead;
-    BOOLEAN SharedWrite;
-    BOOLEAN SharedDelete;
-    ULONG Flags;
-    UNICODE_STRING FileName;
-    LARGE_INTEGER CurrentByteOffset;
-    volatile ULONG Waiters;
-    volatile ULONG Busy;
-    PVOID LastLock;
-    KEVENT Lock;
-    KEVENT Event;
-    volatile PIO_COMPLETION_CONTEXT CompletionContext;
-    KSPIN_LOCK IrpListLock;
-    LIST_ENTRY IrpList;
-    volatile PVOID FileObjectExtension;
+typedef struct _FILE_OBJECT {
+  CSHORT Type;
+  CSHORT Size;
+  PDEVICE_OBJECT DeviceObject;
+  PVPB Vpb;
+  PVOID FsContext;
+  PVOID FsContext2;
+  PSECTION_OBJECT_POINTERS SectionObjectPointer;
+  PVOID PrivateCacheMap;
+  NTSTATUS FinalStatus;
+  struct _FILE_OBJECT *RelatedFileObject;
+  BOOLEAN LockOperation;
+  BOOLEAN DeletePending;
+  BOOLEAN ReadAccess;
+  BOOLEAN WriteAccess;
+  BOOLEAN DeleteAccess;
+  BOOLEAN SharedRead;
+  BOOLEAN SharedWrite;
+  BOOLEAN SharedDelete;
+  ULONG Flags;
+  UNICODE_STRING FileName;
+  LARGE_INTEGER CurrentByteOffset;
+  volatile ULONG Waiters;
+  volatile ULONG Busy;
+  PVOID LastLock;
+  KEVENT Lock;
+  KEVENT Event;
+  volatile PIO_COMPLETION_CONTEXT CompletionContext;
+  KSPIN_LOCK IrpListLock;
+  LIST_ENTRY IrpList;
+  volatile PVOID FileObjectExtension;
 } FILE_OBJECT, *PFILE_OBJECT;
 
 typedef struct _IO_ERROR_LOG_PACKET {
-  UCHAR  MajorFunctionCode;
-  UCHAR  RetryCount;
-  USHORT  DumpDataSize;
-  USHORT  NumberOfStrings;
-  USHORT  StringOffset;
-  USHORT  EventCategory;
-  NTSTATUS  ErrorCode;
-  ULONG  UniqueErrorValue;
-  NTSTATUS  FinalStatus;
-  ULONG  SequenceNumber;
-  ULONG  IoControlCode;
-  LARGE_INTEGER  DeviceOffset;
-  ULONG  DumpData[1];
+  UCHAR MajorFunctionCode;
+  UCHAR RetryCount;
+  USHORT DumpDataSize;
+  USHORT NumberOfStrings;
+  USHORT StringOffset;
+  USHORT EventCategory;
+  NTSTATUS ErrorCode;
+  ULONG UniqueErrorValue;
+  NTSTATUS FinalStatus;
+  ULONG SequenceNumber;
+  ULONG IoControlCode;
+  LARGE_INTEGER DeviceOffset;
+  ULONG DumpData[1];
 } IO_ERROR_LOG_PACKET, *PIO_ERROR_LOG_PACKET;
 
 typedef struct _IO_ERROR_LOG_MESSAGE {
-  USHORT  Type;
-  USHORT  Size;
-  USHORT  DriverNameLength;
-  LARGE_INTEGER  TimeStamp;
-  ULONG  DriverNameOffset;
-  IO_ERROR_LOG_PACKET  EntryData;
+  USHORT Type;
+  USHORT Size;
+  USHORT DriverNameLength;
+  LARGE_INTEGER TimeStamp;
+  ULONG DriverNameOffset;
+  IO_ERROR_LOG_PACKET EntryData;
 } IO_ERROR_LOG_MESSAGE, *PIO_ERROR_LOG_MESSAGE;
 
 #define ERROR_LOG_LIMIT_SIZE               240
@@ -4305,22 +4289,22 @@ typedef enum _DMA_SPEED {
 #define DEVICE_DESCRIPTION_VERSION2       0x0002
 
 typedef struct _DEVICE_DESCRIPTION {
-  ULONG  Version;
-  BOOLEAN  Master;
-  BOOLEAN  ScatterGather;
-  BOOLEAN  DemandMode;
-  BOOLEAN  AutoInitialize;
-  BOOLEAN  Dma32BitAddresses;
-  BOOLEAN  IgnoreCount;
-  BOOLEAN  Reserved1;
-  BOOLEAN  Dma64BitAddresses;
-  ULONG  BusNumber;
-  ULONG  DmaChannel;
-  INTERFACE_TYPE  InterfaceType;
-  DMA_WIDTH  DmaWidth;
-  DMA_SPEED  DmaSpeed;
-  ULONG  MaximumLength;
-  ULONG  DmaPort;
+  ULONG Version;
+  BOOLEAN Master;
+  BOOLEAN ScatterGather;
+  BOOLEAN DemandMode;
+  BOOLEAN AutoInitialize;
+  BOOLEAN Dma32BitAddresses;
+  BOOLEAN IgnoreCount;
+  BOOLEAN Reserved1;
+  BOOLEAN Dma64BitAddresses;
+  ULONG BusNumber;
+  ULONG DmaChannel;
+  INTERFACE_TYPE InterfaceType;
+  DMA_WIDTH DmaWidth;
+  DMA_SPEED DmaSpeed;
+  ULONG MaximumLength;
+  ULONG DmaPort;
 } DEVICE_DESCRIPTION, *PDEVICE_DESCRIPTION;
 
 typedef enum _DEVICE_RELATION_TYPE {
@@ -4334,21 +4318,20 @@ typedef enum _DEVICE_RELATION_TYPE {
 } DEVICE_RELATION_TYPE, *PDEVICE_RELATION_TYPE;
 
 typedef struct _DEVICE_RELATIONS {
-  ULONG  Count;
+  ULONG Count;
   PDEVICE_OBJECT Objects[1];
 } DEVICE_RELATIONS, *PDEVICE_RELATIONS;
 
-typedef struct _DEVOBJ_EXTENSION
-{
-    CSHORT Type;
-    USHORT Size;
-    PDEVICE_OBJECT DeviceObject;
+typedef struct _DEVOBJ_EXTENSION {
+  CSHORT Type;
+  USHORT Size;
+  PDEVICE_OBJECT DeviceObject;
 } DEVOBJ_EXTENSION, *PDEVOBJ_EXTENSION;
 
 typedef struct _SCATTER_GATHER_ELEMENT {
-  PHYSICAL_ADDRESS  Address;
-  ULONG  Length;
-  ULONG_PTR  Reserved;
+  PHYSICAL_ADDRESS Address;
+  ULONG Length;
+  ULONG_PTR Reserved;
 } SCATTER_GATHER_ELEMENT, *PSCATTER_GATHER_ELEMENT;
 
 #if defined(_MSC_EXTENSIONS)
@@ -4358,9 +4341,9 @@ typedef struct _SCATTER_GATHER_ELEMENT {
 #endif
 #pragma warning(disable:4200)
 typedef struct _SCATTER_GATHER_LIST {
-  ULONG  NumberOfElements;
-  ULONG_PTR  Reserved;
-  SCATTER_GATHER_ELEMENT  Elements[1];
+  ULONG NumberOfElements;
+  ULONG_PTR Reserved;
+  SCATTER_GATHER_ELEMENT Elements[1];
 } SCATTER_GATHER_LIST, *PSCATTER_GATHER_LIST;
 
 #if _MSC_VER >= 1200
@@ -4377,16 +4360,15 @@ typedef struct _SCATTER_GATHER_LIST SCATTER_GATHER_LIST, *PSCATTER_GATHER_LIST;
 #endif
 
 typedef NTSTATUS
-(DDKAPI DRIVER_ADD_DEVICE)(
-  IN struct _DRIVER_OBJECT  *DriverObject,
-  IN struct _DEVICE_OBJECT  *PhysicalDeviceObject);
-typedef DRIVER_ADD_DEVICE *PDRIVER_ADD_DEVICE;
+(DDKAPI *PDRIVER_ADD_DEVICE)(
+  IN struct _DRIVER_OBJECT *DriverObject,
+  IN struct _DEVICE_OBJECT *PhysicalDeviceObject);
 
 typedef struct _DRIVER_EXTENSION {
-  struct _DRIVER_OBJECT  *DriverObject;
-  PDRIVER_ADD_DEVICE  AddDevice;
-  ULONG  Count;
-  UNICODE_STRING  ServiceKeyName;
+  struct _DRIVER_OBJECT *DriverObject;
+  PDRIVER_ADD_DEVICE AddDevice;
+  ULONG Count;
+  UNICODE_STRING ServiceKeyName;
 } DRIVER_EXTENSION, *PDRIVER_EXTENSION;
 
 #define DRVO_UNLOAD_INVOKED               0x00000001
@@ -4394,320 +4376,313 @@ typedef struct _DRIVER_EXTENSION {
 #define DRVO_BUILTIN_DRIVER               0x00000004
 
 typedef NTSTATUS
-(DDKAPI DRIVER_INITIALIZE)(
-  IN struct _DRIVER_OBJECT  *DriverObject,
-  IN PUNICODE_STRING  RegistryPath);
-typedef DRIVER_INITIALIZE *PDRIVER_INITIALIZE;
+(DDKAPI *PDRIVER_INITIALIZE)(
+  IN struct _DRIVER_OBJECT *DriverObject,
+  IN PUNICODE_STRING RegistryPath);
 
 typedef VOID
-(DDKAPI DRIVER_STARTIO)(
-  IN struct _DEVICE_OBJECT  *DeviceObject,
-  IN struct _IRP  *Irp);
-typedef DRIVER_STARTIO *PDRIVER_STARTIO;
+(DDKAPI *PDRIVER_STARTIO)(
+  IN struct _DEVICE_OBJECT *DeviceObject,
+  IN struct _IRP *Irp);
 
 typedef VOID
-(DDKAPI DRIVER_UNLOAD)(
-  IN struct _DRIVER_OBJECT  *DriverObject);
-typedef DRIVER_UNLOAD *PDRIVER_UNLOAD;
+(DDKAPI *PDRIVER_UNLOAD)(
+  IN struct _DRIVER_OBJECT *DriverObject);
 
 typedef NTSTATUS
-(DDKAPI DRIVER_DISPATCH)(
-  IN struct _DEVICE_OBJECT  *DeviceObject,
-  IN struct _IRP  *Irp);
-typedef DRIVER_DISPATCH *PDRIVER_DISPATCH;
+(DDKAPI *PDRIVER_DISPATCH)(
+  IN struct _DEVICE_OBJECT *DeviceObject,
+  IN struct _IRP *Irp);
 
 typedef struct _DRIVER_OBJECT {
-  CSHORT  Type;
-  CSHORT  Size;
-  PDEVICE_OBJECT  DeviceObject;
-  ULONG  Flags;
-  PVOID  DriverStart;
-  ULONG  DriverSize;
-  PVOID  DriverSection;
-  PDRIVER_EXTENSION  DriverExtension;
-  UNICODE_STRING  DriverName;
-  PUNICODE_STRING  HardwareDatabase;
+  CSHORT Type;
+  CSHORT Size;
+  PDEVICE_OBJECT DeviceObject;
+  ULONG Flags;
+  PVOID DriverStart;
+  ULONG DriverSize;
+  PVOID DriverSection;
+  PDRIVER_EXTENSION DriverExtension;
+  UNICODE_STRING DriverName;
+  PUNICODE_STRING HardwareDatabase;
   struct _FAST_IO_DISPATCH *FastIoDispatch;
-  PDRIVER_INITIALIZE  DriverInit;
-  PDRIVER_STARTIO  DriverStartIo;
-  PDRIVER_UNLOAD  DriverUnload;
-  PDRIVER_DISPATCH  MajorFunction[IRP_MJ_MAXIMUM_FUNCTION + 1];
-} DRIVER_OBJECT;
-typedef struct _DRIVER_OBJECT *PDRIVER_OBJECT;
+  PDRIVER_INITIALIZE DriverInit;
+  PDRIVER_STARTIO DriverStartIo;
+  PDRIVER_UNLOAD DriverUnload;
+  PDRIVER_DISPATCH MajorFunction[IRP_MJ_MAXIMUM_FUNCTION + 1];
+} DRIVER_OBJECT, *PDRIVER_OBJECT;
 
 typedef struct _DMA_ADAPTER {
-  USHORT  Version;
-  USHORT  Size;
-  struct _DMA_OPERATIONS*  DmaOperations;
+  USHORT Version;
+  USHORT Size;
+  struct _DMA_OPERATIONS* DmaOperations;
 } DMA_ADAPTER, *PDMA_ADAPTER;
 
 typedef VOID
 (DDKAPI *PPUT_DMA_ADAPTER)(
-  IN PDMA_ADAPTER  DmaAdapter);
+  IN PDMA_ADAPTER DmaAdapter);
 
 typedef PVOID
 (DDKAPI *PALLOCATE_COMMON_BUFFER)(
-  IN PDMA_ADAPTER  DmaAdapter,
-  IN ULONG  Length,
-  OUT PPHYSICAL_ADDRESS  LogicalAddress,
-  IN BOOLEAN  CacheEnabled);
+  IN PDMA_ADAPTER DmaAdapter,
+  IN ULONG Length,
+  OUT PPHYSICAL_ADDRESS LogicalAddress,
+  IN BOOLEAN CacheEnabled);
 
 typedef VOID
 (DDKAPI *PFREE_COMMON_BUFFER)(
-  IN PDMA_ADAPTER  DmaAdapter,
-  IN ULONG  Length,
-  IN PHYSICAL_ADDRESS  LogicalAddress,
-  IN PVOID  VirtualAddress,
-  IN BOOLEAN  CacheEnabled);
+  IN PDMA_ADAPTER DmaAdapter,
+  IN ULONG Length,
+  IN PHYSICAL_ADDRESS LogicalAddress,
+  IN PVOID VirtualAddress,
+  IN BOOLEAN CacheEnabled);
 
 typedef NTSTATUS
 (DDKAPI *PALLOCATE_ADAPTER_CHANNEL)(
-  IN PDMA_ADAPTER  DmaAdapter,
-  IN PDEVICE_OBJECT  DeviceObject,
-  IN ULONG  NumberOfMapRegisters,
-  IN PDRIVER_CONTROL  ExecutionRoutine,
-  IN PVOID  Context);
+  IN PDMA_ADAPTER DmaAdapter,
+  IN PDEVICE_OBJECT DeviceObject,
+  IN ULONG NumberOfMapRegisters,
+  IN PDRIVER_CONTROL ExecutionRoutine,
+  IN PVOID Context);
 
 typedef BOOLEAN
 (DDKAPI *PFLUSH_ADAPTER_BUFFERS)(
-  IN PDMA_ADAPTER  DmaAdapter,
-  IN PMDL  Mdl,
-  IN PVOID  MapRegisterBase,
-  IN PVOID  CurrentVa,
-  IN ULONG  Length,
-  IN BOOLEAN  WriteToDevice);
+  IN PDMA_ADAPTER DmaAdapter,
+  IN PMDL Mdl,
+  IN PVOID MapRegisterBase,
+  IN PVOID CurrentVa,
+  IN ULONG Length,
+  IN BOOLEAN WriteToDevice);
 
 typedef VOID
 (DDKAPI *PFREE_ADAPTER_CHANNEL)(
-  IN PDMA_ADAPTER  DmaAdapter);
+  IN PDMA_ADAPTER DmaAdapter);
 
 typedef VOID
 (DDKAPI *PFREE_MAP_REGISTERS)(
-  IN PDMA_ADAPTER  DmaAdapter,
-  PVOID  MapRegisterBase,
-  ULONG  NumberOfMapRegisters);
+  IN PDMA_ADAPTER DmaAdapter,
+  PVOID MapRegisterBase,
+  ULONG NumberOfMapRegisters);
 
 typedef PHYSICAL_ADDRESS
 (DDKAPI *PMAP_TRANSFER)(
-  IN PDMA_ADAPTER  DmaAdapter,
-  IN PMDL  Mdl,
-  IN PVOID  MapRegisterBase,
-  IN PVOID  CurrentVa,
-  IN OUT PULONG  Length,
-  IN BOOLEAN  WriteToDevice);
+  IN PDMA_ADAPTER DmaAdapter,
+  IN PMDL Mdl,
+  IN PVOID MapRegisterBase,
+  IN PVOID CurrentVa,
+  IN OUT PULONG Length,
+  IN BOOLEAN WriteToDevice);
 
 typedef ULONG
 (DDKAPI *PGET_DMA_ALIGNMENT)(
-  IN PDMA_ADAPTER  DmaAdapter);
+  IN PDMA_ADAPTER DmaAdapter);
 
 typedef ULONG
 (DDKAPI *PREAD_DMA_COUNTER)(
-  IN PDMA_ADAPTER  DmaAdapter);
+  IN PDMA_ADAPTER DmaAdapter);
 
 typedef VOID
 (DDKAPI *PDRIVER_LIST_CONTROL)(
-  IN struct _DEVICE_OBJECT  *DeviceObject,
-  IN struct _IRP  *Irp,
-  IN struct _SCATTER_GATHER_LIST  *ScatterGather,
-  IN PVOID  Context);
+  IN struct _DEVICE_OBJECT *DeviceObject,
+  IN struct _IRP *Irp,
+  IN struct _SCATTER_GATHER_LIST *ScatterGather,
+  IN PVOID Context);
 
 typedef NTSTATUS
 (DDKAPI *PGET_SCATTER_GATHER_LIST)(
-  IN PDMA_ADAPTER  DmaAdapter,
-  IN PDEVICE_OBJECT  DeviceObject,
-  IN PMDL  Mdl,
-  IN PVOID  CurrentVa,
-  IN ULONG  Length,
-  IN PDRIVER_LIST_CONTROL  ExecutionRoutine,
-  IN PVOID  Context,
-  IN BOOLEAN  WriteToDevice);
+  IN PDMA_ADAPTER DmaAdapter,
+  IN PDEVICE_OBJECT DeviceObject,
+  IN PMDL Mdl,
+  IN PVOID CurrentVa,
+  IN ULONG Length,
+  IN PDRIVER_LIST_CONTROL ExecutionRoutine,
+  IN PVOID Context,
+  IN BOOLEAN WriteToDevice);
 
 typedef VOID
 (DDKAPI *PPUT_SCATTER_GATHER_LIST)(
-  IN PDMA_ADAPTER  DmaAdapter,
-  IN PSCATTER_GATHER_LIST  ScatterGather,
-  IN BOOLEAN  WriteToDevice);
+  IN PDMA_ADAPTER DmaAdapter,
+  IN PSCATTER_GATHER_LIST ScatterGather,
+  IN BOOLEAN WriteToDevice);
 
 typedef NTSTATUS
 (DDKAPI *PCALCULATE_SCATTER_GATHER_LIST_SIZE)(
-  IN PDMA_ADAPTER  DmaAdapter,
-  IN PMDL  Mdl  OPTIONAL,
-  IN PVOID  CurrentVa,
-  IN ULONG  Length,
-  OUT PULONG  ScatterGatherListSize,
-  OUT PULONG  pNumberOfMapRegisters  OPTIONAL);
+  IN PDMA_ADAPTER DmaAdapter,
+  IN PMDL Mdl OPTIONAL,
+  IN PVOID CurrentVa,
+  IN ULONG Length,
+  OUT PULONG ScatterGatherListSize,
+  OUT PULONG pNumberOfMapRegisters OPTIONAL);
 
 typedef NTSTATUS
 (DDKAPI *PBUILD_SCATTER_GATHER_LIST)(
-  IN PDMA_ADAPTER  DmaAdapter,
-  IN PDEVICE_OBJECT  DeviceObject,
-  IN PMDL  Mdl,
-  IN PVOID  CurrentVa,
-  IN ULONG  Length,
-  IN PDRIVER_LIST_CONTROL  ExecutionRoutine,
-  IN PVOID  Context,
-  IN BOOLEAN  WriteToDevice,
-  IN PVOID  ScatterGatherBuffer,
-  IN ULONG  ScatterGatherLength);
+  IN PDMA_ADAPTER DmaAdapter,
+  IN PDEVICE_OBJECT DeviceObject,
+  IN PMDL Mdl,
+  IN PVOID CurrentVa,
+  IN ULONG Length,
+  IN PDRIVER_LIST_CONTROL ExecutionRoutine,
+  IN PVOID Context,
+  IN BOOLEAN WriteToDevice,
+  IN PVOID ScatterGatherBuffer,
+  IN ULONG ScatterGatherLength);
 
 typedef NTSTATUS
 (DDKAPI *PBUILD_MDL_FROM_SCATTER_GATHER_LIST)(
-  IN PDMA_ADAPTER  DmaAdapter,
-  IN PSCATTER_GATHER_LIST  ScatterGather,
-  IN PMDL  OriginalMdl,
-  OUT PMDL  *TargetMdl);
+  IN PDMA_ADAPTER DmaAdapter,
+  IN PSCATTER_GATHER_LIST ScatterGather,
+  IN PMDL OriginalMdl,
+  OUT PMDL *TargetMdl);
 
 typedef struct _DMA_OPERATIONS {
-  ULONG  Size;
-  PPUT_DMA_ADAPTER  PutDmaAdapter;
-  PALLOCATE_COMMON_BUFFER  AllocateCommonBuffer;
-  PFREE_COMMON_BUFFER  FreeCommonBuffer;
-  PALLOCATE_ADAPTER_CHANNEL  AllocateAdapterChannel;
-  PFLUSH_ADAPTER_BUFFERS  FlushAdapterBuffers;
-  PFREE_ADAPTER_CHANNEL  FreeAdapterChannel;
-  PFREE_MAP_REGISTERS  FreeMapRegisters;
-  PMAP_TRANSFER  MapTransfer;
-  PGET_DMA_ALIGNMENT  GetDmaAlignment;
-  PREAD_DMA_COUNTER  ReadDmaCounter;
-  PGET_SCATTER_GATHER_LIST  GetScatterGatherList;
-  PPUT_SCATTER_GATHER_LIST  PutScatterGatherList;
-  PCALCULATE_SCATTER_GATHER_LIST_SIZE  CalculateScatterGatherList;
-  PBUILD_SCATTER_GATHER_LIST  BuildScatterGatherList;
-  PBUILD_MDL_FROM_SCATTER_GATHER_LIST  BuildMdlFromScatterGatherList;
+  ULONG Size;
+  PPUT_DMA_ADAPTER PutDmaAdapter;
+  PALLOCATE_COMMON_BUFFER AllocateCommonBuffer;
+  PFREE_COMMON_BUFFER FreeCommonBuffer;
+  PALLOCATE_ADAPTER_CHANNEL AllocateAdapterChannel;
+  PFLUSH_ADAPTER_BUFFERS FlushAdapterBuffers;
+  PFREE_ADAPTER_CHANNEL FreeAdapterChannel;
+  PFREE_MAP_REGISTERS FreeMapRegisters;
+  PMAP_TRANSFER MapTransfer;
+  PGET_DMA_ALIGNMENT GetDmaAlignment;
+  PREAD_DMA_COUNTER ReadDmaCounter;
+  PGET_SCATTER_GATHER_LIST GetScatterGatherList;
+  PPUT_SCATTER_GATHER_LIST PutScatterGatherList;
+  PCALCULATE_SCATTER_GATHER_LIST_SIZE CalculateScatterGatherList;
+  PBUILD_SCATTER_GATHER_LIST BuildScatterGatherList;
+  PBUILD_MDL_FROM_SCATTER_GATHER_LIST BuildMdlFromScatterGatherList;
 } DMA_OPERATIONS, *PDMA_OPERATIONS;
 
 typedef struct _IO_RESOURCE_DESCRIPTOR {
-  UCHAR  Option;
-  UCHAR  Type;
-  UCHAR  ShareDisposition;
-  UCHAR  Spare1;
-  USHORT  Flags;
-  USHORT  Spare2;
+  UCHAR Option;
+  UCHAR Type;
+  UCHAR ShareDisposition;
+  UCHAR Spare1;
+  USHORT Flags;
+  USHORT Spare2;
   union {
     struct {
-      ULONG  Length;
-      ULONG  Alignment;
-      PHYSICAL_ADDRESS  MinimumAddress;
-      PHYSICAL_ADDRESS  MaximumAddress;
+      ULONG Length;
+      ULONG Alignment;
+      PHYSICAL_ADDRESS MinimumAddress;
+      PHYSICAL_ADDRESS MaximumAddress;
     } Port;
     struct {
-      ULONG  Length;
-      ULONG  Alignment;
-      PHYSICAL_ADDRESS  MinimumAddress;
-      PHYSICAL_ADDRESS  MaximumAddress;
+      ULONG Length;
+      ULONG Alignment;
+      PHYSICAL_ADDRESS MinimumAddress;
+      PHYSICAL_ADDRESS MaximumAddress;
     } Memory;
     struct {
-      ULONG  MinimumVector;
-      ULONG  MaximumVector;
+      ULONG MinimumVector;
+      ULONG MaximumVector;
     } Interrupt;
     struct {
-      ULONG  MinimumChannel;
-      ULONG  MaximumChannel;
+      ULONG MinimumChannel;
+      ULONG MaximumChannel;
     } Dma;
     struct {
-      ULONG  Length;
-      ULONG  Alignment;
-      PHYSICAL_ADDRESS  MinimumAddress;
-      PHYSICAL_ADDRESS  MaximumAddress;
+      ULONG Length;
+      ULONG Alignment;
+      PHYSICAL_ADDRESS MinimumAddress;
+      PHYSICAL_ADDRESS MaximumAddress;
     } Generic;
     struct {
-      ULONG  Data[3];
+      ULONG Data[3];
     } DevicePrivate;
     struct {
-      ULONG  Length;
-      ULONG  MinBusNumber;
-      ULONG  MaxBusNumber;
-      ULONG  Reserved;
+      ULONG Length;
+      ULONG MinBusNumber;
+      ULONG MaxBusNumber;
+      ULONG Reserved;
     } BusNumber;
     struct {
-      ULONG  Priority;
-      ULONG  Reserved1;
-      ULONG  Reserved2;
+      ULONG Priority;
+      ULONG Reserved1;
+      ULONG Reserved2;
     } ConfigData;
   } u;
 } IO_RESOURCE_DESCRIPTOR, *PIO_RESOURCE_DESCRIPTOR;
 
 typedef struct _IO_RESOURCE_LIST {
-  USHORT  Version;
-  USHORT  Revision;
-  ULONG  Count;
-  IO_RESOURCE_DESCRIPTOR  Descriptors[1];
+  USHORT Version;
+  USHORT Revision;
+  ULONG Count;
+  IO_RESOURCE_DESCRIPTOR Descriptors[1];
 } IO_RESOURCE_LIST, *PIO_RESOURCE_LIST;
 
 typedef struct _IO_RESOURCE_REQUIREMENTS_LIST {
-  ULONG  ListSize;
-  INTERFACE_TYPE  InterfaceType;
-  ULONG  BusNumber;
-  ULONG  SlotNumber;
-  ULONG  Reserved[3];
-  ULONG  AlternativeLists;
-  IO_RESOURCE_LIST  List[1];
+  ULONG ListSize;
+  INTERFACE_TYPE InterfaceType;
+  ULONG BusNumber;
+  ULONG SlotNumber;
+  ULONG Reserved[3];
+  ULONG AlternativeLists;
+  IO_RESOURCE_LIST List[1];
 } IO_RESOURCE_REQUIREMENTS_LIST, *PIO_RESOURCE_REQUIREMENTS_LIST;
 
 typedef VOID
-(DDKAPI DRIVER_CANCEL)(
-  IN struct _DEVICE_OBJECT  *DeviceObject,
-  IN struct _IRP  *Irp);
-typedef DRIVER_CANCEL *PDRIVER_CANCEL;
+(DDKAPI *PDRIVER_CANCEL)(
+  IN struct _DEVICE_OBJECT *DeviceObject,
+  IN struct _IRP *Irp);
 
 typedef struct _IRP {
-  CSHORT  Type;
-  USHORT  Size;
-  struct _MDL  *MdlAddress;
-  ULONG  Flags;
+  CSHORT Type;
+  USHORT Size;
+  struct _MDL *MdlAddress;
+  ULONG Flags;
   union {
-    struct _IRP  *MasterIrp;
-    volatile LONG  IrpCount;
-    PVOID  SystemBuffer;
+    struct _IRP *MasterIrp;
+    volatile LONG IrpCount;
+    PVOID SystemBuffer;
   } AssociatedIrp;
-  LIST_ENTRY  ThreadListEntry;
-  IO_STATUS_BLOCK  IoStatus;
-  KPROCESSOR_MODE  RequestorMode;
-  BOOLEAN  PendingReturned;
-  CHAR  StackCount;
-  CHAR  CurrentLocation;
-  BOOLEAN  Cancel;
-  KIRQL  CancelIrql;
-  CCHAR  ApcEnvironment;
-  UCHAR  AllocationFlags;
-  PIO_STATUS_BLOCK  UserIosb;
-  PKEVENT  UserEvent;
+  LIST_ENTRY ThreadListEntry;
+  IO_STATUS_BLOCK IoStatus;
+  KPROCESSOR_MODE RequestorMode;
+  BOOLEAN PendingReturned;
+  CHAR StackCount;
+  CHAR CurrentLocation;
+  BOOLEAN Cancel;
+  KIRQL CancelIrql;
+  CCHAR ApcEnvironment;
+  UCHAR AllocationFlags;
+  PIO_STATUS_BLOCK UserIosb;
+  PKEVENT UserEvent;
   union {
     struct {
-      _ANONYMOUS_UNION union {      
-        PIO_APC_ROUTINE  UserApcRoutine;
+      _ANONYMOUS_UNION union {
+        PIO_APC_ROUTINE UserApcRoutine;
         PVOID IssuingProcess;
       } DUMMYUNIONNAME;
-      PVOID  UserApcContext;
+      PVOID UserApcContext;
     } AsynchronousParameters;
-    LARGE_INTEGER  AllocationSize;
+    LARGE_INTEGER AllocationSize;
   } Overlay;
-  volatile PDRIVER_CANCEL  CancelRoutine;
-  PVOID  UserBuffer;
+  volatile PDRIVER_CANCEL CancelRoutine;
+  PVOID UserBuffer;
   union {
     struct {
       _ANONYMOUS_UNION union {
-        KDEVICE_QUEUE_ENTRY  DeviceQueueEntry;
+        KDEVICE_QUEUE_ENTRY DeviceQueueEntry;
         _ANONYMOUS_STRUCT struct {
-          PVOID  DriverContext[4];
+          PVOID DriverContext[4];
         } DUMMYSTRUCTNAME;
       } DUMMYUNIONNAME;
-      PETHREAD  Thread;
-      PCHAR  AuxiliaryBuffer;
+      PETHREAD Thread;
+      PCHAR AuxiliaryBuffer;
       _ANONYMOUS_STRUCT struct {
-        LIST_ENTRY  ListEntry;
+        LIST_ENTRY ListEntry;
         _ANONYMOUS_UNION union {
-          struct _IO_STACK_LOCATION  *CurrentStackLocation;
-          ULONG  PacketType;
+          struct _IO_STACK_LOCATION *CurrentStackLocation;
+          ULONG PacketType;
         } DUMMYUNIONNAME;
       } DUMMYSTRUCTNAME;
-      struct _FILE_OBJECT  *OriginalFileObject;
+      struct _FILE_OBJECT *OriginalFileObject;
     } Overlay;
-    KAPC  Apc;
-    PVOID  CompletionKey;
+    KAPC Apc;
+    PVOID CompletionKey;
   } Tail;
-} IRP;
-typedef struct _IRP *PIRP;
+} IRP, *PIRP;
 
 typedef enum _IO_PAGING_PRIORITY {
   IoPagingPriorityInvalid,
@@ -4718,93 +4693,91 @@ typedef enum _IO_PAGING_PRIORITY {
 } IO_PAGING_PRIORITY;
 
 typedef NTSTATUS
-(DDKAPI IO_COMPLETION_ROUTINE)(
-  IN struct _DEVICE_OBJECT  *DeviceObject,
-  IN struct _IRP  *Irp,
-  IN PVOID  Context);
-typedef IO_COMPLETION_ROUTINE *PIO_COMPLETION_ROUTINE;
+(DDKAPI *PIO_COMPLETION_ROUTINE)(
+  IN struct _DEVICE_OBJECT *DeviceObject,
+  IN struct _IRP *Irp,
+  IN PVOID Context);
 
 typedef VOID
 (DDKAPI *PIO_DPC_ROUTINE)(
-  IN struct _KDPC  *Dpc,
-  IN struct _DEVICE_OBJECT  *DeviceObject,
-  IN struct _IRP  *Irp,
-  IN PVOID  Context);
+  IN struct _KDPC *Dpc,
+  IN struct _DEVICE_OBJECT *DeviceObject,
+  IN struct _IRP *Irp,
+  IN PVOID Context);
 
 typedef NTSTATUS
 (DDKAPI *PMM_DLL_INITIALIZE)(
-  IN PUNICODE_STRING  RegistryPath);
+  IN PUNICODE_STRING RegistryPath);
 
 typedef NTSTATUS
 (DDKAPI *PMM_DLL_UNLOAD)(
   VOID);
 
 typedef BOOLEAN
-(DDKAPI KSERVICE_ROUTINE)(
-  IN struct _KINTERRUPT  *Interrupt,
-  IN PVOID  ServiceContext);
-typedef KSERVICE_ROUTINE *PKSERVICE_ROUTINE;
+(DDKAPI *PKSERVICE_ROUTINE)(
+  IN struct _KINTERRUPT *Interrupt,
+  IN PVOID ServiceContext);
 
 typedef VOID
 (DDKAPI *PIO_TIMER_ROUTINE)(
-  IN struct _DEVICE_OBJECT  *DeviceObject,
-  IN PVOID  Context);
+  IN struct _DEVICE_OBJECT *DeviceObject,
+  IN PVOID Context);
 
 typedef struct _IO_SECURITY_CONTEXT {
-  PSECURITY_QUALITY_OF_SERVICE  SecurityQos;
-  PACCESS_STATE  AccessState;
-  ACCESS_MASK  DesiredAccess;
-  ULONG  FullCreateOptions;
+  PSECURITY_QUALITY_OF_SERVICE SecurityQos;
+  PACCESS_STATE AccessState;
+  ACCESS_MASK DesiredAccess;
+  ULONG FullCreateOptions;
 } IO_SECURITY_CONTEXT, *PIO_SECURITY_CONTEXT;
 
 struct _IO_CSQ;
 
 typedef struct _IO_CSQ_IRP_CONTEXT {
-  ULONG  Type;
-  struct _IRP  *Irp;
-  struct _IO_CSQ  *Csq;
+  ULONG Type;
+  struct _IRP *Irp;
+  struct _IO_CSQ *Csq;
 } IO_CSQ_IRP_CONTEXT, *PIO_CSQ_IRP_CONTEXT;
 
 typedef VOID
 (DDKAPI *PIO_CSQ_INSERT_IRP)(
-  IN struct _IO_CSQ  *Csq,
-  IN PIRP  Irp);
+  IN struct _IO_CSQ *Csq,
+  IN PIRP Irp);
 
 typedef VOID
 (DDKAPI *PIO_CSQ_REMOVE_IRP)(
-  IN struct _IO_CSQ  *Csq,
-  IN PIRP  Irp);
+  IN struct _IO_CSQ *Csq,
+  IN PIRP Irp);
 
 typedef PIRP
 (DDKAPI *PIO_CSQ_PEEK_NEXT_IRP)(
-  IN struct _IO_CSQ  *Csq,
-  IN PIRP  Irp,
-  IN PVOID  PeekContext);
+  IN struct _IO_CSQ *Csq,
+  IN PIRP Irp,
+  IN PVOID PeekContext);
 
 typedef VOID
 (DDKAPI *PIO_CSQ_ACQUIRE_LOCK)(
-  IN  struct _IO_CSQ  *Csq,
-  OUT PKIRQL  Irql);
+  IN struct _IO_CSQ *Csq,
+  OUT PKIRQL Irql);
 
 typedef VOID
 (DDKAPI *PIO_CSQ_RELEASE_LOCK)(
-  IN struct _IO_CSQ  *Csq,
-  IN KIRQL  Irql);
+  IN struct _IO_CSQ *Csq,
+  IN KIRQL Irql);
 
 typedef VOID
 (DDKAPI *PIO_CSQ_COMPLETE_CANCELED_IRP)(
-  IN  struct _IO_CSQ  *Csq,
-  IN  PIRP  Irp);
+  IN struct _IO_CSQ *Csq,
+  IN PIRP Irp);
 
 typedef struct _IO_CSQ {
-  ULONG  Type;
-  PIO_CSQ_INSERT_IRP  CsqInsertIrp;
-  PIO_CSQ_REMOVE_IRP  CsqRemoveIrp;
-  PIO_CSQ_PEEK_NEXT_IRP  CsqPeekNextIrp;
-  PIO_CSQ_ACQUIRE_LOCK  CsqAcquireLock;
-  PIO_CSQ_RELEASE_LOCK  CsqReleaseLock;
-  PIO_CSQ_COMPLETE_CANCELED_IRP  CsqCompleteCanceledIrp;
-  PVOID  ReservePointer;
+  ULONG Type;
+  PIO_CSQ_INSERT_IRP CsqInsertIrp;
+  PIO_CSQ_REMOVE_IRP CsqRemoveIrp;
+  PIO_CSQ_PEEK_NEXT_IRP CsqPeekNextIrp;
+  PIO_CSQ_ACQUIRE_LOCK CsqAcquireLock;
+  PIO_CSQ_RELEASE_LOCK CsqReleaseLock;
+  PIO_CSQ_COMPLETE_CANCELED_IRP CsqCompleteCanceledIrp;
+  PVOID ReservePointer;
 } IO_CSQ, *PIO_CSQ;
 
 typedef enum _BUS_QUERY_ID_TYPE {
@@ -4896,187 +4869,187 @@ typedef struct _ACPI_INTERFACE_STANDARD2 {
 #include <pshpack4.h>
 #endif
 typedef struct _IO_STACK_LOCATION {
-  UCHAR  MajorFunction;
-  UCHAR  MinorFunction;
-  UCHAR  Flags;
-  UCHAR  Control;
+  UCHAR MajorFunction;
+  UCHAR MinorFunction;
+  UCHAR Flags;
+  UCHAR Control;
   union {
     struct {
-      PIO_SECURITY_CONTEXT  SecurityContext;
-      ULONG  Options;
-      USHORT POINTER_ALIGNMENT  FileAttributes;
-      USHORT  ShareAccess;
-      ULONG POINTER_ALIGNMENT  EaLength;
+      PIO_SECURITY_CONTEXT SecurityContext;
+      ULONG Options;
+      USHORT POINTER_ALIGNMENT FileAttributes;
+      USHORT ShareAccess;
+      ULONG POINTER_ALIGNMENT EaLength;
     } Create;
     struct {
-      ULONG  Length;
-      ULONG POINTER_ALIGNMENT  Key;
-      LARGE_INTEGER  ByteOffset;
+      ULONG Length;
+      ULONG POINTER_ALIGNMENT Key;
+      LARGE_INTEGER ByteOffset;
     } Read;
     struct {
-      ULONG  Length;
-      ULONG POINTER_ALIGNMENT  Key;
-      LARGE_INTEGER  ByteOffset;
+      ULONG Length;
+      ULONG POINTER_ALIGNMENT Key;
+      LARGE_INTEGER ByteOffset;
     } Write;
     struct {
-      ULONG  Length;
-      PUNICODE_STRING  FileName;
-      FILE_INFORMATION_CLASS  FileInformationClass;
-      ULONG  FileIndex;
+      ULONG Length;
+      PUNICODE_STRING FileName;
+      FILE_INFORMATION_CLASS FileInformationClass;
+      ULONG FileIndex;
     } QueryDirectory;
     struct {
-      ULONG  Length;
-      ULONG  CompletionFilter;
+      ULONG Length;
+      ULONG CompletionFilter;
     } NotifyDirectory;
     struct {
-      ULONG  Length;
-      FILE_INFORMATION_CLASS POINTER_ALIGNMENT  FileInformationClass;
+      ULONG Length;
+      FILE_INFORMATION_CLASS POINTER_ALIGNMENT FileInformationClass;
     } QueryFile;
     struct {
-      ULONG  Length;
-      FILE_INFORMATION_CLASS POINTER_ALIGNMENT  FileInformationClass;
-      PFILE_OBJECT  FileObject;
+      ULONG Length;
+      FILE_INFORMATION_CLASS POINTER_ALIGNMENT FileInformationClass;
+      PFILE_OBJECT FileObject;
       _ANONYMOUS_UNION union {
         _ANONYMOUS_STRUCT struct {
-          BOOLEAN  ReplaceIfExists;
-          BOOLEAN  AdvanceOnly;
+          BOOLEAN ReplaceIfExists;
+          BOOLEAN AdvanceOnly;
         } DUMMYSTRUCTNAME;
-        ULONG  ClusterCount;
-        HANDLE  DeleteHandle;
+        ULONG ClusterCount;
+        HANDLE DeleteHandle;
       } DUMMYUNIONNAME;
     } SetFile;
     struct {
-      ULONG  Length;
-      PVOID  EaList;
-      ULONG  EaListLength;
-      ULONG  EaIndex;
+      ULONG Length;
+      PVOID EaList;
+      ULONG EaListLength;
+      ULONG EaIndex;
     } QueryEa;
     struct {
-      ULONG  Length;
+      ULONG Length;
     } SetEa;
     struct {
-      ULONG  Length;
-      FS_INFORMATION_CLASS POINTER_ALIGNMENT  FsInformationClass;
+      ULONG Length;
+      FS_INFORMATION_CLASS POINTER_ALIGNMENT FsInformationClass;
     } QueryVolume;
     struct {
-      ULONG  Length;
-      FS_INFORMATION_CLASS  FsInformationClass;
+      ULONG Length;
+      FS_INFORMATION_CLASS FsInformationClass;
     } SetVolume;
     struct {
-      ULONG  OutputBufferLength;
-      ULONG  InputBufferLength;
-      ULONG  FsControlCode;
-      PVOID  Type3InputBuffer;
+      ULONG OutputBufferLength;
+      ULONG InputBufferLength;
+      ULONG FsControlCode;
+      PVOID Type3InputBuffer;
     } FileSystemControl;
     struct {
-      PLARGE_INTEGER  Length;
-      ULONG  Key;
-      LARGE_INTEGER  ByteOffset;
+      PLARGE_INTEGER Length;
+      ULONG Key;
+      LARGE_INTEGER ByteOffset;
     } LockControl;
     struct {
-      ULONG  OutputBufferLength;
-      ULONG POINTER_ALIGNMENT  InputBufferLength;
-      ULONG POINTER_ALIGNMENT  IoControlCode;
-      PVOID  Type3InputBuffer;
+      ULONG OutputBufferLength;
+      ULONG POINTER_ALIGNMENT InputBufferLength;
+      ULONG POINTER_ALIGNMENT IoControlCode;
+      PVOID Type3InputBuffer;
     } DeviceIoControl;
     struct {
-      SECURITY_INFORMATION  SecurityInformation;
-      ULONG POINTER_ALIGNMENT  Length;
+      SECURITY_INFORMATION SecurityInformation;
+      ULONG POINTER_ALIGNMENT Length;
     } QuerySecurity;
     struct {
-      SECURITY_INFORMATION  SecurityInformation;
-      PSECURITY_DESCRIPTOR  SecurityDescriptor;
+      SECURITY_INFORMATION SecurityInformation;
+      PSECURITY_DESCRIPTOR SecurityDescriptor;
     } SetSecurity;
     struct {
-      PVPB  Vpb;
-      PDEVICE_OBJECT  DeviceObject;
+      PVPB Vpb;
+      PDEVICE_OBJECT DeviceObject;
     } MountVolume;
     struct {
-      PVPB  Vpb;
-      PDEVICE_OBJECT  DeviceObject;
+      PVPB Vpb;
+      PDEVICE_OBJECT DeviceObject;
     } VerifyVolume;
     struct {
-      struct _SCSI_REQUEST_BLOCK  *Srb;
+      struct _SCSI_REQUEST_BLOCK *Srb;
     } Scsi;
     struct {
-      ULONG  Length;
-      PSID  StartSid;
-      struct _FILE_GET_QUOTA_INFORMATION  *SidList;
-      ULONG  SidListLength;
+      ULONG Length;
+      PSID StartSid;
+      struct _FILE_GET_QUOTA_INFORMATION *SidList;
+      ULONG SidListLength;
     } QueryQuota;
     struct {
-      ULONG  Length;
+      ULONG Length;
     } SetQuota;
     struct {
-      DEVICE_RELATION_TYPE  Type;
+      DEVICE_RELATION_TYPE Type;
     } QueryDeviceRelations;
     struct {
-      CONST GUID  *InterfaceType;
-      USHORT  Size;
-      USHORT  Version;
-      PINTERFACE  Interface;
-      PVOID  InterfaceSpecificData;
+      CONST GUID *InterfaceType;
+      USHORT Size;
+      USHORT Version;
+      PINTERFACE Interface;
+      PVOID InterfaceSpecificData;
     } QueryInterface;
     struct {
-      PDEVICE_CAPABILITIES  Capabilities;
+      PDEVICE_CAPABILITIES Capabilities;
     } DeviceCapabilities;
     struct {
-      PIO_RESOURCE_REQUIREMENTS_LIST  IoResourceRequirementList;
+      PIO_RESOURCE_REQUIREMENTS_LIST IoResourceRequirementList;
     } FilterResourceRequirements;
     struct {
-      ULONG  WhichSpace;
-      PVOID  Buffer;
-      ULONG  Offset;
-      ULONG POINTER_ALIGNMENT  Length;
+      ULONG WhichSpace;
+      PVOID Buffer;
+      ULONG Offset;
+      ULONG POINTER_ALIGNMENT Length;
     } ReadWriteConfig;
     struct {
-      BOOLEAN  Lock;
+      BOOLEAN Lock;
     } SetLock;
     struct {
-      BUS_QUERY_ID_TYPE  IdType;
+      BUS_QUERY_ID_TYPE IdType;
     } QueryId;
     struct {
-      DEVICE_TEXT_TYPE  DeviceTextType;
-      LCID POINTER_ALIGNMENT  LocaleId;
+      DEVICE_TEXT_TYPE DeviceTextType;
+      LCID POINTER_ALIGNMENT LocaleId;
     } QueryDeviceText;
     struct {
-      BOOLEAN  InPath;
-      BOOLEAN  Reserved[3];
-      DEVICE_USAGE_NOTIFICATION_TYPE POINTER_ALIGNMENT  Type;
+      BOOLEAN InPath;
+      BOOLEAN Reserved[3];
+      DEVICE_USAGE_NOTIFICATION_TYPE POINTER_ALIGNMENT Type;
     } UsageNotification;
     struct {
-      SYSTEM_POWER_STATE  PowerState;
+      SYSTEM_POWER_STATE PowerState;
     } WaitWake;
     struct {
-      PPOWER_SEQUENCE  PowerSequence;
+      PPOWER_SEQUENCE PowerSequence;
     } PowerSequence;
     struct {
-      ULONG  SystemContext;
-      POWER_STATE_TYPE POINTER_ALIGNMENT  Type;
-      POWER_STATE POINTER_ALIGNMENT  State;
-      POWER_ACTION POINTER_ALIGNMENT  ShutdownType;
+      ULONG SystemContext;
+      POWER_STATE_TYPE POINTER_ALIGNMENT Type;
+      POWER_STATE POINTER_ALIGNMENT State;
+      POWER_ACTION POINTER_ALIGNMENT ShutdownType;
     } Power;
     struct {
-      PCM_RESOURCE_LIST  AllocatedResources;
-      PCM_RESOURCE_LIST  AllocatedResourcesTranslated;
+      PCM_RESOURCE_LIST AllocatedResources;
+      PCM_RESOURCE_LIST AllocatedResourcesTranslated;
     } StartDevice;
     struct {
-      ULONG_PTR  ProviderId;
-      PVOID  DataPath;
-      ULONG  BufferSize;
-      PVOID  Buffer;
+      ULONG_PTR ProviderId;
+      PVOID DataPath;
+      ULONG BufferSize;
+      PVOID Buffer;
     } WMI;
     struct {
-      PVOID  Argument1;
-      PVOID  Argument2;
-      PVOID  Argument3;
-      PVOID  Argument4;
+      PVOID Argument1;
+      PVOID Argument2;
+      PVOID Argument3;
+      PVOID Argument4;
     } Others;
   } Parameters;
-  PDEVICE_OBJECT  DeviceObject;
-  PFILE_OBJECT  FileObject;
-  PIO_COMPLETION_ROUTINE  CompletionRoutine;
-  PVOID  Context;
+  PDEVICE_OBJECT DeviceObject;
+  PFILE_OBJECT FileObject;
+  PIO_COMPLETION_ROUTINE CompletionRoutine;
+  PVOID Context;
 } IO_STACK_LOCATION, *PIO_STACK_LOCATION;
 #if !defined(_AMD64_) && !defined(_IA64_)
 #include <poppack.h>
@@ -5224,7 +5197,7 @@ typedef struct _IO_STACK_LOCATION {
  ******************************************************************************/
 
 typedef struct _OBJECT_NAME_INFORMATION {
-  UNICODE_STRING  Name;
+  UNICODE_STRING Name;
 } OBJECT_NAME_INFORMATION, *POBJECT_NAME_INFORMATION;
 
 /* Exported object types */
@@ -5298,7 +5271,7 @@ extern POBJECT_TYPE NTSYSAPI PsProcessType;
 #define HIGH_LEVEL              31
 #define CLOCK_LEVEL             CLOCK2_LEVEL
 
-#define KIP0PCRADDRESS          0xffdff000  
+#define KIP0PCRADDRESS          0xffdff000
 #define KI_USER_SHARED_DATA     0xffdf0000
 #define SharedUserData          ((KUSER_SHARED_DATA * CONST)KI_USER_SHARED_DATA)
 
@@ -5316,14 +5289,14 @@ extern POBJECT_TYPE NTSYSAPI PsProcessType;
 
 
 typedef struct _KFLOATING_SAVE {
-  ULONG  ControlWord;
-  ULONG  StatusWord;
-  ULONG  ErrorOffset;
-  ULONG  ErrorSelector;
-  ULONG  DataOffset;
-  ULONG  DataSelector;
-  ULONG  Cr0NpxState;
-  ULONG  Spare1;
+  ULONG ControlWord;
+  ULONG StatusWord;
+  ULONG ErrorOffset;
+  ULONG ErrorSelector;
+  ULONG DataOffset;
+  ULONG DataSelector;
+  ULONG Cr0NpxState;
+  ULONG Spare1;
 } KFLOATING_SAVE, *PKFLOATING_SAVE;
 
 extern NTKERNELAPI volatile KSYSTEM_TIME KeTickCount;
@@ -5332,8 +5305,7 @@ extern NTKERNELAPI volatile KSYSTEM_TIME KeTickCount;
 
 FORCEINLINE
 VOID
-KeMemoryBarrier(
-  VOID)
+KeMemoryBarrier(VOID)
 {
   volatile LONG Barrier;
 #if defined(__GNUC__)
@@ -5347,34 +5319,32 @@ NTHALAPI
 VOID
 FASTCALL
 KfLowerIrql(
-  IN KIRQL  NewIrql);
+  IN KIRQL NewIrql);
 #define KeLowerIrql(a) KfLowerIrql(a)
 
 NTHALAPI
 KIRQL
 FASTCALL
 KfRaiseIrql(
-  IN KIRQL  NewIrql);
+  IN KIRQL NewIrql);
 #define KeRaiseIrql(a,b) *(b) = KfRaiseIrql(a)
 
 NTHALAPI
 KIRQL
 DDKAPI
-KeRaiseIrqlToDpcLevel(
-  VOID);
+KeRaiseIrqlToDpcLevel(VOID);
 
 NTHALAPI
 KIRQL
 DDKAPI
-KeRaiseIrqlToSynchLevel(
-    VOID);
+KeRaiseIrqlToSynchLevel(VOID);
 
 NTHALAPI
 KIRQL
 FASTCALL
 KfAcquireSpinLock(
   IN PKSPIN_LOCK SpinLock);
-#define KeAcquireSpinLock(a,b)  *(b) = KfAcquireSpinLock(a)
+#define KeAcquireSpinLock(a,b) *(b) = KfAcquireSpinLock(a)
 
 NTHALAPI
 VOID
@@ -5382,39 +5352,38 @@ FASTCALL
 KfReleaseSpinLock(
   IN PKSPIN_LOCK SpinLock,
   IN KIRQL NewIrql);
-#define KeReleaseSpinLock(a,b)  KfReleaseSpinLock(a,b)
+#define KeReleaseSpinLock(a,b) KfReleaseSpinLock(a,b)
 
 NTKERNELAPI
 VOID
 FASTCALL
 KefAcquireSpinLockAtDpcLevel(
-  IN PKSPIN_LOCK  SpinLock);
+  IN PKSPIN_LOCK SpinLock);
 #define KeAcquireSpinLockAtDpcLevel(SpinLock) KefAcquireSpinLockAtDpcLevel(SpinLock)
 
 NTKERNELAPI
 VOID
 FASTCALL
 KefReleaseSpinLockFromDpcLevel(
-  IN PKSPIN_LOCK  SpinLock);
+  IN PKSPIN_LOCK SpinLock);
 #define KeReleaseSpinLockFromDpcLevel(SpinLock) KefReleaseSpinLockFromDpcLevel(SpinLock)
 
 NTSYSAPI
 PKTHREAD
 NTAPI
-KeGetCurrentThread(
-  VOID);
+KeGetCurrentThread(VOID);
 
 NTKERNELAPI
 NTSTATUS
 NTAPI
 KeSaveFloatingPointState(
-  OUT PKFLOATING_SAVE  FloatSave);
+  OUT PKFLOATING_SAVE FloatSave);
 
 NTKERNELAPI
 NTSTATUS
 NTAPI
 KeRestoreFloatingPointState(
-  IN PKFLOATING_SAVE  FloatSave);
+  IN PKFLOATING_SAVE FloatSave);
 
 /* VOID
  * KeFlushIoBuffers(
@@ -5432,13 +5401,12 @@ VOID
 _KeQueryTickCount(
   OUT PLARGE_INTEGER CurrentCount)
 {
-    for (;;)
-    {
-        CurrentCount->HighPart = KeTickCount.High1Time;
-        CurrentCount->LowPart = KeTickCount.LowPart;
-        if (CurrentCount->HighPart == KeTickCount.High2Time) break;
-        YieldProcessor();
-    }
+  for (;;) {
+    CurrentCount->HighPart = KeTickCount.High1Time;
+    CurrentCount->LowPart = KeTickCount.LowPart;
+    if (CurrentCount->HighPart == KeTickCount.High2Time) break;
+    YieldProcessor();
+  }
 }
 #define KeQueryTickCount(CurrentCount) _KeQueryTickCount(CurrentCount)
 
@@ -5490,27 +5458,27 @@ FORCEINLINE
 KIRQL
 KeGetCurrentIrql(VOID)
 {
-    return (KIRQL)__readcr8();
+  return (KIRQL)__readcr8();
 }
 
 FORCEINLINE
 VOID
 KeLowerIrql(IN KIRQL NewIrql)
 {
-    ASSERT(KeGetCurrentIrql() >= NewIrql);
-    __writecr8(NewIrql);
+  ASSERT(KeGetCurrentIrql() >= NewIrql);
+  __writecr8(NewIrql);
 }
 
 FORCEINLINE
 KIRQL
 KfRaiseIrql(IN KIRQL NewIrql)
 {
-    KIRQL OldIrql;
+  KIRQL OldIrql;
 
-    OldIrql = __readcr8();
-    ASSERT(OldIrql <= NewIrql);
-    __writecr8(NewIrql);
-    return OldIrql;
+  OldIrql = __readcr8();
+  ASSERT(OldIrql <= NewIrql);
+  __writecr8(NewIrql);
+  return OldIrql;
 }
 #define KeRaiseIrql(a,b) *(b) = KfRaiseIrql(a)
 
@@ -5518,22 +5486,21 @@ FORCEINLINE
 KIRQL
 KeRaiseIrqlToDpcLevel(VOID)
 {
-    return KfRaiseIrql(DISPATCH_LEVEL);
+  return KfRaiseIrql(DISPATCH_LEVEL);
 }
 
 FORCEINLINE
 KIRQL
 KeRaiseIrqlToSynchLevel(VOID)
 {
-    return KfRaiseIrql(12); // SYNCH_LEVEL = IPI_LEVEL - 2
+  return KfRaiseIrql(12); // SYNCH_LEVEL = IPI_LEVEL - 2
 }
 
 FORCEINLINE
 PKTHREAD
-KeGetCurrentThread (
-  VOID)
+KeGetCurrentThread(VOID)
 {
-    return (struct _KTHREAD *)__readgsqword(0x188);
+  return (struct _KTHREAD *)__readgsqword(0x188);
 }
 
 /* x86 and x64 performs a 0x2C interrupt */
@@ -5571,8 +5538,7 @@ KeFlushWriteBuffer(VOID)
 NTSYSAPI
 PKTHREAD
 NTAPI
-KeGetCurrentThread(
-  VOID);
+KeGetCurrentThread(VOID);
 
 
 #elif defined(_M_PPC)
@@ -5602,15 +5568,15 @@ typedef struct _KFLOATING_SAVE {
 } KFLOATING_SAVE, *PKFLOATING_SAVE;
 
 typedef struct _KPCR_TIB {
-  PVOID  ExceptionList;         /* 00 */
-  PVOID  StackBase;             /* 04 */
-  PVOID  StackLimit;            /* 08 */
-  PVOID  SubSystemTib;          /* 0C */
+  PVOID ExceptionList;         /* 00 */
+  PVOID StackBase;             /* 04 */
+  PVOID StackLimit;            /* 08 */
+  PVOID SubSystemTib;          /* 0C */
   _ANONYMOUS_UNION union {
-    PVOID  FiberData;           /* 10 */
-    ULONG  Version;             /* 10 */
+    PVOID FiberData;           /* 10 */
+    ULONG Version;             /* 10 */
   } DUMMYUNIONNAME;
-  PVOID  ArbitraryUserPointer;  /* 14 */
+  PVOID ArbitraryUserPointer;  /* 14 */
   struct _KPCR_TIB *Self;       /* 18 */
 } KPCR_TIB, *PKPCR_TIB;         /* 1C */
 
@@ -5618,24 +5584,24 @@ typedef struct _KPCR_TIB {
 #define PCR_MAJOR_VERSION 1
 
 typedef struct _KPCR {
-  KPCR_TIB  Tib;                /* 00 */
-  struct _KPCR  *Self;          /* 1C */
-  struct _KPRCB  *Prcb;         /* 20 */
-  KIRQL  Irql;                  /* 24 */
-  ULONG  IRR;                   /* 28 */
-  ULONG  IrrActive;             /* 2C */
-  ULONG  IDR;                   /* 30 */
-  PVOID  KdVersionBlock;        /* 34 */
-  PUSHORT  IDT;                 /* 38 */
-  PUSHORT  GDT;                 /* 3C */
-  struct _KTSS  *TSS;           /* 40 */
-  USHORT  MajorVersion;         /* 44 */
-  USHORT  MinorVersion;         /* 46 */
-  KAFFINITY  SetMember;         /* 48 */
-  ULONG  StallScaleFactor;      /* 4C */
-  UCHAR  SpareUnused;           /* 50 */
-  UCHAR  Number;                /* 51 */
-} KPCR, *PKPCR;                 /* 54 */
+  KPCR_TIB Tib;                /* 00 */
+  struct _KPCR *Self;          /* 1C */
+  struct _KPRCB *Prcb;         /* 20 */
+  KIRQL Irql;                  /* 24 */
+  ULONG IRR;                   /* 28 */
+  ULONG IrrActive;             /* 2C */
+  ULONG IDR;                   /* 30 */
+  PVOID KdVersionBlock;        /* 34 */
+  PUSHORT IDT;                 /* 38 */
+  PUSHORT GDT;                 /* 3C */
+  struct _KTSS *TSS;           /* 40 */
+  USHORT MajorVersion;         /* 44 */
+  USHORT MinorVersion;         /* 46 */
+  KAFFINITY SetMember;         /* 48 */
+  ULONG StallScaleFactor;      /* 4C */
+  UCHAR SpareUnused;           /* 50 */
+  UCHAR Number;                /* 51 */
+} KPCR, *PKPCR;                /* 54 */
 
 #define KeGetPcr()                      PCR
 
@@ -5643,10 +5609,10 @@ typedef struct _KPCR {
 
 FORCEINLINE
 ULONG
-DDKAPI
+NTAPI
 KeGetCurrentProcessorNumber(VOID)
 {
-    ULONG Number;
+  ULONG Number;
   __asm__ __volatile__ (
     "lwz %0, %c1(12)\n"
     : "=r" (Number)
@@ -5659,27 +5625,25 @@ NTHALAPI
 VOID
 FASTCALL
 KfLowerIrql(
-  IN KIRQL  NewIrql);
+  IN KIRQL NewIrql);
 #define KeLowerIrql(a) KfLowerIrql(a)
 
 NTHALAPI
 KIRQL
 FASTCALL
 KfRaiseIrql(
-  IN KIRQL  NewIrql);
+  IN KIRQL NewIrql);
 #define KeRaiseIrql(a,b) *(b) = KfRaiseIrql(a)
 
 NTHALAPI
 KIRQL
 DDKAPI
-KeRaiseIrqlToDpcLevel(
-  VOID);
+KeRaiseIrqlToDpcLevel(VOID);
 
 NTHALAPI
 KIRQL
 DDKAPI
-KeRaiseIrqlToSynchLevel(
-    VOID);
+KeRaiseIrqlToSynchLevel(VOID);
 
 
 
@@ -5701,10 +5665,10 @@ typedef LONG SPFN_NUMBER, *PSPFN_NUMBER;
 #define HIGH_LEVEL                        31
 
 typedef struct _KPCR {
-    struct _KPRCB  *Prcb;         /* 20 */
-    KIRQL  Irql;                  /* 24 */
-    ULONG  IRR;                   /* 28 */
-    ULONG  IDR;                   /* 30 */
+  struct _KPRCB *Prcb;         /* 20 */
+  KIRQL Irql;                  /* 24 */
+  ULONG IRR;                   /* 28 */
+  ULONG IDR;                   /* 30 */
 } KPCR, *PKPCR;
 
 #define KeGetPcr()                      PCR
@@ -5717,7 +5681,7 @@ ULONG
 DDKAPI
 KeGetCurrentProcessorNumber(VOID)
 {
-    return 0;
+  return 0;
 }
 
 #define YieldProcessor() __asm__ __volatile__("nop");
@@ -5729,25 +5693,23 @@ NTKERNELAPI
 VOID
 NTAPI
 KfLowerIrql(
-  IN KIRQL  NewIrql);
+  IN KIRQL NewIrql);
 
 NTKERNELAPI
 KIRQL
 NTAPI
 KfRaiseIrql(
-  IN KIRQL  NewIrql);
+  IN KIRQL NewIrql);
 
 NTKERNELAPI
 KIRQL
 NTAPI
-KeRaiseIrqlToDpcLevel(
-  VOID);
+KeRaiseIrqlToDpcLevel(VOID);
 
 NTKERNELAPI
 KIRQL
-DDKAPI
-KeRaiseIrqlToSynchLevel(
-    VOID);
+NTAPI
+KeRaiseIrqlToSynchLevel(VOID);
 
 
 #elif defined(_M_ARM)
@@ -5771,8 +5733,8 @@ InitializeListHead(
 FORCEINLINE
 VOID
 InsertHeadList(
-  IN OUT PLIST_ENTRY  ListHead,
-  IN OUT PLIST_ENTRY  Entry)
+  IN OUT PLIST_ENTRY ListHead,
+  IN OUT PLIST_ENTRY Entry)
 {
   PLIST_ENTRY OldFlink;
   OldFlink = ListHead->Flink;
@@ -5785,8 +5747,8 @@ InsertHeadList(
 FORCEINLINE
 VOID
 InsertTailList(
-  IN OUT PLIST_ENTRY  ListHead,
-  IN OUT PLIST_ENTRY  Entry)
+  IN OUT PLIST_ENTRY ListHead,
+  IN OUT PLIST_ENTRY Entry)
 {
   PLIST_ENTRY OldBlink;
   OldBlink = ListHead->Blink;
@@ -5830,7 +5792,7 @@ PushEntryList(
 FORCEINLINE
 BOOLEAN
 RemoveEntryList(
-  IN PLIST_ENTRY  Entry)
+  IN PLIST_ENTRY Entry)
 {
   PLIST_ENTRY OldFlink;
   PLIST_ENTRY OldBlink;
@@ -5845,7 +5807,7 @@ RemoveEntryList(
 FORCEINLINE
 PLIST_ENTRY
 RemoveHeadList(
-  IN OUT PLIST_ENTRY  ListHead)
+  IN OUT PLIST_ENTRY ListHead)
 {
   PLIST_ENTRY Flink;
   PLIST_ENTRY Entry;
@@ -5860,7 +5822,7 @@ RemoveHeadList(
 FORCEINLINE
 PLIST_ENTRY
 RemoveTailList(
-  IN OUT PLIST_ENTRY  ListHead)
+  IN OUT PLIST_ENTRY ListHead)
 {
   PLIST_ENTRY Blink;
   PLIST_ENTRY Entry;
@@ -5876,10 +5838,10 @@ NTSYSAPI
 VOID
 NTAPI
 RtlAssert(
-    IN PVOID FailedAssertion,
-    IN PVOID FileName,
-    IN ULONG LineNumber,
-    IN PSTR Message);
+  IN PVOID FailedAssertion,
+  IN PVOID FileName,
+  IN ULONG LineNumber,
+  IN PSTR Message);
 
 /* VOID
  * RtlCopyMemory(
@@ -5897,9 +5859,9 @@ NTSYSAPI
 VOID
 NTAPI
 RtlCopyMemoryNonTemporal(
-    VOID UNALIGNED *Destination,
-    CONST VOID UNALIGNED *Source,
-    SIZE_T Length);
+  VOID UNALIGNED *Destination,
+  CONST VOID UNALIGNED *Source,
+  SIZE_T Length);
 #else
 #define RtlCopyMemoryNonTemporal RtlCopyMemory
 #endif
@@ -5936,21 +5898,21 @@ NTSYSAPI
 VOID
 NTAPI
 RtlFreeUnicodeString(
-    IN OUT PUNICODE_STRING UnicodeString);
+  IN OUT PUNICODE_STRING UnicodeString);
 
 NTSYSAPI
 NTSTATUS
 NTAPI
 RtlGUIDFromString(
-    IN PUNICODE_STRING GuidString,
-    OUT GUID *Guid);
+  IN PUNICODE_STRING GuidString,
+  OUT GUID *Guid);
 
 NTSYSAPI
 VOID
 NTAPI
 RtlInitUnicodeString(
-    IN OUT PUNICODE_STRING DestinationString,
-    IN PCWSTR SourceString OPTIONAL);
+  IN OUT PUNICODE_STRING DestinationString,
+  IN PCWSTR SourceString OPTIONAL);
 
 /* VOID
  * RtlMoveMemory(
@@ -5965,8 +5927,8 @@ NTSYSAPI
 NTSTATUS
 NTAPI
 RtlStringFromGUID(
-    IN REFGUID Guid,
-    OUT PUNICODE_STRING GuidString);
+  IN REFGUID Guid,
+  OUT PUNICODE_STRING GuidString);
 
 /* VOID
  * RtlZeroMemory(
@@ -5984,31 +5946,31 @@ NTSYSAPI
 BOOLEAN
 NTAPI
 RtlAreBitsClear(
-    IN PRTL_BITMAP BitMapHeader,
-    IN ULONG StartingIndex,
-    IN ULONG Length);
+  IN PRTL_BITMAP BitMapHeader,
+  IN ULONG StartingIndex,
+  IN ULONG Length);
 
 NTSYSAPI
 BOOLEAN
 NTAPI
 RtlAreBitsSet(
-    IN PRTL_BITMAP BitMapHeader,
-    IN ULONG StartingIndex,
-    IN ULONG Length);
+  IN PRTL_BITMAP BitMapHeader,
+  IN ULONG StartingIndex,
+  IN ULONG Length);
 
 NTSYSAPI
 NTSTATUS
 NTAPI
 RtlAnsiStringToUnicodeString(
-    IN OUT PUNICODE_STRING DestinationString,
-    IN PANSI_STRING SourceString,
-    IN BOOLEAN AllocateDestinationString);
+  IN OUT PUNICODE_STRING DestinationString,
+  IN PANSI_STRING SourceString,
+  IN BOOLEAN AllocateDestinationString);
 
 NTSYSAPI
 ULONG
 NTAPI
 RtlxAnsiStringToUnicodeSize(
-    IN PCANSI_STRING AnsiString);
+  IN PCANSI_STRING AnsiString);
 
 #define RtlAnsiStringToUnicodeSize(String) (               \
   NLS_MB_CODE_PAGE_TAG ?                                   \
@@ -6020,107 +5982,107 @@ NTSYSAPI
 NTSTATUS
 NTAPI
 RtlAppendUnicodeStringToString(
-    IN OUT PUNICODE_STRING Destination,
-    IN PCUNICODE_STRING Source);
+  IN OUT PUNICODE_STRING Destination,
+  IN PCUNICODE_STRING Source);
 
 NTSYSAPI
 NTSTATUS
 NTAPI
 RtlAppendUnicodeToString(
-    IN OUT PUNICODE_STRING Destination,
-    IN PCWSTR Source);
+  IN OUT PUNICODE_STRING Destination,
+  IN PCWSTR Source);
 
 NTSYSAPI
 NTSTATUS
 NTAPI
 RtlCheckRegistryKey(
-    IN ULONG RelativeTo,
-    IN PWSTR Path);
+  IN ULONG RelativeTo,
+  IN PWSTR Path);
 
 NTSYSAPI
 VOID
 NTAPI
 RtlClearAllBits(
-    IN PRTL_BITMAP BitMapHeader);
+  IN PRTL_BITMAP BitMapHeader);
 
 NTSYSAPI
 VOID
 NTAPI
 RtlClearBits(
-    IN PRTL_BITMAP BitMapHeader,
-    IN ULONG StartingIndex,
-    IN ULONG NumberToClear);
+  IN PRTL_BITMAP BitMapHeader,
+  IN ULONG StartingIndex,
+  IN ULONG NumberToClear);
 
 NTSYSAPI
 SIZE_T
 NTAPI
 RtlCompareMemory(
-    IN CONST VOID *Source1,
-    IN CONST VOID *Source2,
-    IN SIZE_T Length);
+  IN CONST VOID *Source1,
+  IN CONST VOID *Source2,
+  IN SIZE_T Length);
 
 NTSYSAPI
 LONG
 NTAPI
 RtlCompareUnicodeString(
-    IN PCUNICODE_STRING String1,
-    IN PCUNICODE_STRING String2,
-    IN BOOLEAN CaseInSensitive);
+  IN PCUNICODE_STRING String1,
+  IN PCUNICODE_STRING String2,
+  IN BOOLEAN CaseInSensitive);
 
 NTSYSAPI
 LONG
 NTAPI
 RtlCompareUnicodeStrings(
-    IN PCWCH String1,
-    IN SIZE_T String1Length,
-    IN PCWCH String2,
-    IN SIZE_T String2Length,
-    IN BOOLEAN CaseInSensitive);
+  IN PCWCH String1,
+  IN SIZE_T String1Length,
+  IN PCWCH String2,
+  IN SIZE_T String2Length,
+  IN BOOLEAN CaseInSensitive);
 
 NTSYSAPI
 VOID
 NTAPI
 RtlCopyUnicodeString(
-  IN OUT PUNICODE_STRING  DestinationString,
-  IN PCUNICODE_STRING  SourceString);
+  IN OUT PUNICODE_STRING DestinationString,
+  IN PCUNICODE_STRING SourceString);
 
 NTSYSAPI
 NTSTATUS
 NTAPI
 RtlCreateRegistryKey(
-    IN ULONG RelativeTo,
-    IN PWSTR Path);
+  IN ULONG RelativeTo,
+  IN PWSTR Path);
 
 NTSYSAPI
 NTSTATUS
 NTAPI
 RtlCreateSecurityDescriptor(
-    IN OUT PSECURITY_DESCRIPTOR SecurityDescriptor,
-    IN ULONG Revision);
+  IN OUT PSECURITY_DESCRIPTOR SecurityDescriptor,
+  IN ULONG Revision);
 
 NTSYSAPI
 NTSTATUS
 NTAPI
 RtlDeleteRegistryValue(
-    IN ULONG RelativeTo,
-    IN PCWSTR Path,
-    IN PCWSTR ValueName);
+  IN ULONG RelativeTo,
+  IN PCWSTR Path,
+  IN PCWSTR ValueName);
 
 NTSYSAPI
 BOOLEAN
 NTAPI
 RtlEqualUnicodeString(
-    IN CONST UNICODE_STRING *String1,
-    IN CONST UNICODE_STRING *String2,
-    IN BOOLEAN CaseInSensitive);
+  IN CONST UNICODE_STRING *String1,
+  IN CONST UNICODE_STRING *String2,
+  IN BOOLEAN CaseInSensitive);
 
 #if !defined(_AMD64_) && !defined(_IA64_)
 NTSYSAPI
 LARGE_INTEGER
 NTAPI
 RtlExtendedIntegerMultiply(
-    IN LARGE_INTEGER Multiplicand,
-    IN LONG Multiplier);
+  IN LARGE_INTEGER Multiplicand,
+  IN LONG Multiplier);
 
 NTSYSAPI
 LARGE_INTEGER
@@ -6145,137 +6107,137 @@ NTSYSAPI
 VOID
 NTAPI
 RtlFreeAnsiString(
-    IN PANSI_STRING AnsiString);
+  IN PANSI_STRING AnsiString);
 
 NTSYSAPI
 ULONG
 NTAPI
 RtlFindClearBits(
-    IN PRTL_BITMAP BitMapHeader,
-    IN ULONG NumberToFind,
-    IN ULONG HintIndex);
+  IN PRTL_BITMAP BitMapHeader,
+  IN ULONG NumberToFind,
+  IN ULONG HintIndex);
 
 NTSYSAPI
 ULONG
 NTAPI
 RtlFindClearBitsAndSet(
-    IN PRTL_BITMAP BitMapHeader,
-    IN ULONG NumberToFind,
-    IN ULONG HintIndex);
+  IN PRTL_BITMAP BitMapHeader,
+  IN ULONG NumberToFind,
+  IN ULONG HintIndex);
 
 NTSYSAPI
 ULONG
 NTAPI
 RtlFindFirstRunClear(
-    IN PRTL_BITMAP BitMapHeader,
-    OUT PULONG StartingIndex);
+  IN PRTL_BITMAP BitMapHeader,
+  OUT PULONG StartingIndex);
 
 NTSYSAPI
 ULONG
 NTAPI
 RtlFindClearRuns(
-    IN PRTL_BITMAP BitMapHeader,
-    OUT PRTL_BITMAP_RUN RunArray,
-    IN ULONG SizeOfRunArray,
-    IN BOOLEAN LocateLongestRuns);
+  IN PRTL_BITMAP BitMapHeader,
+  OUT PRTL_BITMAP_RUN RunArray,
+  IN ULONG SizeOfRunArray,
+  IN BOOLEAN LocateLongestRuns);
 
 NTSYSAPI
 ULONG
 NTAPI
 RtlFindLastBackwardRunClear(
-    IN PRTL_BITMAP BitMapHeader,
-    IN ULONG FromIndex,
-    OUT PULONG StartingRunIndex);
+  IN PRTL_BITMAP BitMapHeader,
+  IN ULONG FromIndex,
+  OUT PULONG StartingRunIndex);
 
 NTSYSAPI
 CCHAR
 NTAPI
 RtlFindLeastSignificantBit(
-    IN ULONGLONG Set);
+  IN ULONGLONG Set);
 
 NTSYSAPI
 ULONG
 NTAPI
 RtlFindLongestRunClear(
-    IN PRTL_BITMAP BitMapHeader,
-    OUT PULONG StartingIndex);
+  IN PRTL_BITMAP BitMapHeader,
+  OUT PULONG StartingIndex);
 
 NTSYSAPI
 CCHAR
 NTAPI
 RtlFindMostSignificantBit(
-    IN ULONGLONG Set);
+  IN ULONGLONG Set);
 
 NTSYSAPI
 ULONG
 NTAPI
 RtlFindNextForwardRunClear(
-    IN PRTL_BITMAP BitMapHeader,
-    IN ULONG FromIndex,
-    OUT PULONG StartingRunIndex);
+  IN PRTL_BITMAP BitMapHeader,
+  IN ULONG FromIndex,
+  OUT PULONG StartingRunIndex);
 
 NTSYSAPI
 ULONG
 NTAPI
 RtlFindSetBits(
-    IN PRTL_BITMAP BitMapHeader,
-    IN ULONG NumberToFind,
-    IN ULONG HintIndex);
+  IN PRTL_BITMAP BitMapHeader,
+  IN ULONG NumberToFind,
+  IN ULONG HintIndex);
 
 NTSYSAPI
 ULONG
 NTAPI
 RtlFindSetBitsAndClear(
-    IN PRTL_BITMAP BitMapHeader,
-    IN ULONG NumberToFind,
-    IN ULONG HintIndex);
+  IN PRTL_BITMAP BitMapHeader,
+  IN ULONG NumberToFind,
+  IN ULONG HintIndex);
 
 NTSYSAPI
 NTSTATUS
 NTAPI
 RtlHashUnicodeString(
-    IN CONST UNICODE_STRING *String,
-    IN BOOLEAN CaseInSensitive,
-    IN ULONG HashAlgorithm,
-    OUT PULONG HashValue);
+  IN CONST UNICODE_STRING *String,
+  IN BOOLEAN CaseInSensitive,
+  IN ULONG HashAlgorithm,
+  OUT PULONG HashValue);
 
 NTSYSAPI
 VOID
 NTAPI
 RtlInitAnsiString(
-    IN OUT PANSI_STRING DestinationString,
-    IN PCSZ SourceString);
+  IN OUT PANSI_STRING DestinationString,
+  IN PCSZ SourceString);
 
 NTSYSAPI
 VOID
 NTAPI
 RtlInitializeBitMap(
-    IN PRTL_BITMAP BitMapHeader,
-    IN PULONG BitMapBuffer,
-    IN ULONG SizeOfBitMap);
+  IN PRTL_BITMAP BitMapHeader,
+  IN PULONG BitMapBuffer,
+  IN ULONG SizeOfBitMap);
 
 NTSYSAPI
 VOID
 NTAPI
 RtlInitString(
-    IN OUT PSTRING DestinationString,
-    IN PCSZ SourceString);
+  IN OUT PSTRING DestinationString,
+  IN PCSZ SourceString);
 
 NTSYSAPI
 NTSTATUS
 NTAPI
 RtlIntegerToUnicodeString(
-    IN ULONG Value,
-    IN ULONG Base OPTIONAL,
-    IN OUT PUNICODE_STRING String);
+  IN ULONG Value,
+  IN ULONG Base OPTIONAL,
+  IN OUT PUNICODE_STRING String);
 
 NTSYSAPI
 NTSTATUS
 NTAPI
 RtlInt64ToUnicodeString(
-    IN ULONGLONG Value,
-    IN ULONG Base OPTIONAL,
-    IN OUT PUNICODE_STRING String);
+  IN ULONGLONG Value,
+  IN ULONG Base OPTIONAL,
+  IN OUT PUNICODE_STRING String);
 
 #ifdef _WIN64
 #define RtlIntPtrToUnicodeString(Value, Base, String) \
@@ -6296,37 +6258,37 @@ NTSYSAPI
 ULONG
 NTAPI
 RtlLengthSecurityDescriptor(
-    IN PSECURITY_DESCRIPTOR SecurityDescriptor);
+  IN PSECURITY_DESCRIPTOR SecurityDescriptor);
 
 NTSYSAPI
 ULONG
 NTAPI
 RtlNumberOfClearBits(
-    IN PRTL_BITMAP BitMapHeader);
+  IN PRTL_BITMAP BitMapHeader);
 
 NTSYSAPI
 ULONG
 NTAPI
 RtlNumberOfSetBits(
-    IN PRTL_BITMAP BitMapHeader);
+  IN PRTL_BITMAP BitMapHeader);
 
 NTSYSAPI
 NTSTATUS
 NTAPI
 RtlQueryRegistryValues(
-    IN ULONG RelativeTo,
-    IN PCWSTR Path,
-    IN PRTL_QUERY_REGISTRY_TABLE QueryTable,
-    IN PVOID Context,
-    IN PVOID Environment OPTIONAL);
+  IN ULONG RelativeTo,
+  IN PCWSTR Path,
+  IN PRTL_QUERY_REGISTRY_TABLE QueryTable,
+  IN PVOID Context,
+  IN PVOID Environment OPTIONAL);
 
 #define LONG_SIZE (sizeof(LONG))
 #define LONG_MASK (LONG_SIZE - 1)
 
 /* VOID
  * RtlRetrieveUlong(
- *       PULONG DestinationAddress,
- *       PULONG SourceAddress);
+ *    PULONG DestinationAddress,
+ *    PULONG SourceAddress);
  */
 #if defined(_AMD64_)
 #define RtlRetrieveUlong(DestAddress,SrcAddress) \
@@ -6348,8 +6310,8 @@ RtlQueryRegistryValues(
 
 /* VOID
  * RtlRetrieveUshort(
- *       PUSHORT DestinationAddress,
- *       PUSHORT SourceAddress);
+ *     PUSHORT DestinationAddress,
+ *    PUSHORT SourceAddress);
  */
 #if defined(_AMD64_)
 #define RtlRetrieveUshort(DestAddress,SrcAddress) \
@@ -6371,24 +6333,24 @@ NTSYSAPI
 VOID
 NTAPI
 RtlSetAllBits(
-    IN PRTL_BITMAP BitMapHeader);
+  IN PRTL_BITMAP BitMapHeader);
 
 NTSYSAPI
 VOID
 NTAPI
 RtlSetBits(
-    IN PRTL_BITMAP BitMapHeader,
-    IN ULONG StartingIndex,
-    IN ULONG NumberToSet);
+  IN PRTL_BITMAP BitMapHeader,
+  IN ULONG StartingIndex,
+  IN ULONG NumberToSet);
 
 NTSYSAPI
 NTSTATUS
 NTAPI
 RtlSetDaclSecurityDescriptor(
-    IN OUT PSECURITY_DESCRIPTOR SecurityDescriptor,
-    IN BOOLEAN DaclPresent,
-    IN PACL Dacl OPTIONAL,
-    IN BOOLEAN DaclDefaulted OPTIONAL);
+  IN OUT PSECURITY_DESCRIPTOR SecurityDescriptor,
+  IN BOOLEAN DaclPresent,
+  IN PACL Dacl OPTIONAL,
+  IN BOOLEAN DaclDefaulted OPTIONAL);
 
 /* VOID
  * RtlStoreUlong(
@@ -6467,41 +6429,41 @@ NTSYSAPI
 BOOLEAN
 NTAPI
 RtlTimeFieldsToTime(
-    IN PTIME_FIELDS TimeFields,
-    IN PLARGE_INTEGER Time);
+  IN PTIME_FIELDS TimeFields,
+  IN PLARGE_INTEGER Time);
 
 NTSYSAPI
 VOID
 NTAPI
 RtlTimeToTimeFields(
-    IN PLARGE_INTEGER Time,
-    IN PTIME_FIELDS TimeFields);
+  IN PLARGE_INTEGER Time,
+  IN PTIME_FIELDS TimeFields);
 
 NTSYSAPI
 ULONG
 FASTCALL
 RtlUlongByteSwap(
-    IN ULONG Source);
+  IN ULONG Source);
 
 NTSYSAPI
 ULONGLONG
 FASTCALL
 RtlUlonglongByteSwap(
-    IN ULONGLONG Source);
+  IN ULONGLONG Source);
 
 NTSYSAPI
 NTSTATUS
 NTAPI
 RtlUnicodeStringToAnsiString(
-    IN OUT PANSI_STRING DestinationString,
-    IN PCUNICODE_STRING SourceString,
-    IN BOOLEAN AllocateDestinationString);
+  IN OUT PANSI_STRING DestinationString,
+  IN PCUNICODE_STRING SourceString,
+  IN BOOLEAN AllocateDestinationString);
 
 NTSYSAPI
 ULONG
 NTAPI
 RtlxUnicodeStringToAnsiSize(
-    IN PCUNICODE_STRING UnicodeString);
+  IN PCUNICODE_STRING UnicodeString);
 
 #define RtlUnicodeStringToAnsiSize(String) (                  \
     NLS_MB_CODE_PAGE_TAG ?                                    \
@@ -6513,46 +6475,46 @@ NTSYSAPI
 NTSTATUS
 NTAPI
 RtlUnicodeStringToInteger(
-    IN PCUNICODE_STRING String,
-    IN ULONG Base OPTIONAL,
-    OUT PULONG Value);
+  IN PCUNICODE_STRING String,
+  IN ULONG Base OPTIONAL,
+  OUT PULONG Value);
 
 NTSYSAPI
 WCHAR
 NTAPI
 RtlUpcaseUnicodeChar(
-    IN WCHAR SourceCharacter);
+  IN WCHAR SourceCharacter);
 
 NTSYSAPI
 USHORT
 FASTCALL
 RtlUshortByteSwap(
-    IN USHORT Source);
+  IN USHORT Source);
 
 NTSYSAPI
 BOOLEAN
 NTAPI
 RtlValidRelativeSecurityDescriptor(
-    IN PSECURITY_DESCRIPTOR SecurityDescriptorInput,
-    IN ULONG SecurityDescriptorLength,
-    IN SECURITY_INFORMATION RequiredInformation);
+  IN PSECURITY_DESCRIPTOR SecurityDescriptorInput,
+  IN ULONG SecurityDescriptorLength,
+  IN SECURITY_INFORMATION RequiredInformation);
 
 NTSYSAPI
 BOOLEAN
 NTAPI
 RtlValidSecurityDescriptor(
-    IN PSECURITY_DESCRIPTOR SecurityDescriptor);
+  IN PSECURITY_DESCRIPTOR SecurityDescriptor);
 
 NTSYSAPI
 NTSTATUS
 NTAPI
 RtlWriteRegistryValue(
-    IN ULONG RelativeTo,
-    IN PCWSTR Path,
-    IN PCWSTR ValueName,
-    IN ULONG ValueType,
-    IN PVOID ValueData,
-    IN ULONG ValueLength);
+  IN ULONG RelativeTo,
+  IN PCWSTR Path,
+  IN PCWSTR ValueName,
+  IN ULONG ValueType,
+  IN PVOID ValueData,
+  IN ULONG ValueLength);
 
 #endif // (NTDDI_VERSION >= NTDDI_WIN2K)
 
@@ -6561,80 +6523,82 @@ NTSYSAPI
 VOID
 FASTCALL
 RtlPrefetchMemoryNonTemporal(
-    IN PVOID Source,
-    IN SIZE_T Length);
+  IN PVOID Source,
+  IN SIZE_T Length);
 #endif
 
 #if (NTDDI_VERSION >= NTDDI_WINXP)
+
 NTSYSAPI
 VOID
 NTAPI
 RtlClearBit(
-    PRTL_BITMAP BitMapHeader,
-    ULONG BitNumber);
+  PRTL_BITMAP BitMapHeader,
+  ULONG BitNumber);
 
 NTSYSAPI
 WCHAR
 NTAPI
 RtlDowncaseUnicodeChar(
-    IN WCHAR SourceCharacter);
+  IN WCHAR SourceCharacter);
 
 NTSYSAPI
 VOID
 NTAPI
 RtlSetBit(
-    PRTL_BITMAP BitMapHeader,
-    ULONG BitNumber);
+  PRTL_BITMAP BitMapHeader,
+  ULONG BitNumber);
 
 NTSYSAPI
 BOOLEAN
 NTAPI
 RtlTestBit(
-    IN PRTL_BITMAP BitMapHeader,
-    IN ULONG BitNumber);
+  IN PRTL_BITMAP BitMapHeader,
+  IN ULONG BitNumber);
 
 #endif // (NTDDI_VERSION >= NTDDI_WINXP)
 
 #if (NTDDI_VERSION >= NTDDI_VISTA)
+
 NTSYSAPI
 ULONG
 NTAPI
 RtlNumberOfSetBitsUlongPtr(
-    IN ULONG_PTR Target);
+  IN ULONG_PTR Target);
 
 NTSYSAPI
 ULONGLONG
 NTAPI
 RtlIoDecodeMemIoResource (
-    IN struct _IO_RESOURCE_DESCRIPTOR *Descriptor,
-    OUT PULONGLONG Alignment OPTIONAL,
-    OUT PULONGLONG MinimumAddress OPTIONAL,
-    OUT PULONGLONG MaximumAddress OPTIONAL);
+  IN struct _IO_RESOURCE_DESCRIPTOR *Descriptor,
+  OUT PULONGLONG Alignment OPTIONAL,
+  OUT PULONGLONG MinimumAddress OPTIONAL,
+  OUT PULONGLONG MaximumAddress OPTIONAL);
 
 NTSYSAPI
 NTSTATUS
 NTAPI
 RtlIoEncodeMemIoResource(
-    IN struct _IO_RESOURCE_DESCRIPTOR *Descriptor,
-    IN UCHAR Type,
-    IN ULONGLONG Length,
-    IN ULONGLONG Alignment,
-    IN ULONGLONG MinimumAddress,
-    IN ULONGLONG MaximumAddress);
+  IN struct _IO_RESOURCE_DESCRIPTOR *Descriptor,
+  IN UCHAR Type,
+  IN ULONGLONG Length,
+  IN ULONGLONG Alignment,
+  IN ULONGLONG MinimumAddress,
+  IN ULONGLONG MaximumAddress);
 
 NTSYSAPI
 ULONGLONG
 NTAPI
 RtlCmDecodeMemIoResource(
-    IN struct _CM_PARTIAL_RESOURCE_DESCRIPTOR *Descriptor,
-    OUT PULONGLONG Start OPTIONAL);
+  IN struct _CM_PARTIAL_RESOURCE_DESCRIPTOR *Descriptor,
+  OUT PULONGLONG Start OPTIONAL);
 
 NTSYSAPI
 NTSTATUS
 NTAPI
 RtlFindClosestEncodableLength(
-    IN ULONGLONG SourceLength,
-    OUT PULONGLONG TargetLength);
+  IN ULONGLONG SourceLength,
+  OUT PULONGLONG TargetLength);
 
 #endif
 
@@ -6646,9 +6610,9 @@ LARGE_INTEGER
 NTAPI_INLINE
 RtlConvertLongToLargeInteger(LONG SignedInteger)
 {
-    LARGE_INTEGER ret;
-    ret.QuadPart = SignedInteger;
-    return ret;
+  LARGE_INTEGER ret;
+  ret.QuadPart = SignedInteger;
+  return ret;
 }
 
 //DECLSPEC_DEPRECATED_DDK_WINXP
@@ -6658,9 +6622,9 @@ NTAPI_INLINE
 RtlConvertUlongToLargeInteger(
   ULONG UnsignedInteger)
 {
-    LARGE_INTEGER ret;
-    ret.QuadPart = UnsignedInteger;
-    return ret;
+  LARGE_INTEGER ret;
+  ret.QuadPart = UnsignedInteger;
+  return ret;
 }
 
 //DECLSPEC_DEPRECATED_DDK
@@ -6668,13 +6632,13 @@ static __inline
 ULONG
 NTAPI_INLINE
 RtlEnlargedUnsignedDivide(
-    IN ULARGE_INTEGER Dividend,
-    IN ULONG Divisor,
-    IN OUT PULONG Remainder)
+  IN ULARGE_INTEGER Dividend,
+  IN ULONG Divisor,
+  IN OUT PULONG Remainder)
 {
-    if (Remainder)
-        *Remainder = (ULONG)(Dividend.QuadPart % Divisor);
-    return (ULONG)(Dividend.QuadPart / Divisor);
+  if (Remainder)
+    *Remainder = (ULONG)(Dividend.QuadPart % Divisor);
+  return (ULONG)(Dividend.QuadPart / Divisor);
 }
 
 //DECLSPEC_DEPRECATED_DDK
@@ -6682,12 +6646,12 @@ static __inline
 LARGE_INTEGER
 NTAPI_INLINE
 RtlEnlargedUnsignedMultiply(
-    IN ULONG Multiplicand,
-    IN ULONG Multiplier)
+  IN ULONG Multiplicand,
+  IN ULONG Multiplier)
 {
-    LARGE_INTEGER ret;
-    ret.QuadPart = (ULONGLONG)Multiplicand * (ULONGLONG)Multiplier;
-    return ret;
+  LARGE_INTEGER ret;
+  ret.QuadPart = (ULONGLONG)Multiplicand * (ULONGLONG)Multiplier;
+  return ret;
 }
 
 //DECLSPEC_DEPRECATED_DDK
@@ -6695,35 +6659,36 @@ static __inline
 LARGE_INTEGER
 NTAPI_INLINE
 RtlEnlargedIntegerMultiply(
-    IN LONG Multiplicand,
-    IN LONG Multiplier)
+  IN LONG Multiplicand,
+  IN LONG Multiplier)
 {
-    LARGE_INTEGER ret;
-    ret.QuadPart = (LONGLONG)Multiplicand * (ULONGLONG)Multiplier;
-    return ret;
+  LARGE_INTEGER ret;
+  ret.QuadPart = (LONGLONG)Multiplicand * (ULONGLONG)Multiplier;
+  return ret;
 }
 
 FORCEINLINE
 VOID
-RtlInitEmptyAnsiString(OUT PANSI_STRING AnsiString,
-                       IN PCHAR Buffer,
-                       IN USHORT BufferSize)
+RtlInitEmptyAnsiString(
+  OUT PANSI_STRING AnsiString,
+  IN PCHAR Buffer,
+  IN USHORT BufferSize)
 {
-    AnsiString->Length = 0;
-    AnsiString->MaximumLength = BufferSize;
-    AnsiString->Buffer = Buffer;
+  AnsiString->Length = 0;
+  AnsiString->MaximumLength = BufferSize;
+  AnsiString->Buffer = Buffer;
 }
 
 FORCEINLINE
 VOID
 RtlInitEmptyUnicodeString(
-    OUT PUNICODE_STRING UnicodeString,
-    IN PWSTR Buffer,
-    IN USHORT BufferSize)
+  OUT PUNICODE_STRING UnicodeString,
+  IN PWSTR Buffer,
+  IN USHORT BufferSize)
 {
-    UnicodeString->Length = 0;
-    UnicodeString->MaximumLength = BufferSize;
-    UnicodeString->Buffer = Buffer;
+  UnicodeString->Length = 0;
+  UnicodeString->MaximumLength = BufferSize;
+  UnicodeString->Buffer = Buffer;
 }
 
 #if defined(_AMD64_) || defined(_IA64_)
@@ -6731,27 +6696,27 @@ static __inline
 LARGE_INTEGER
 NTAPI_INLINE
 RtlExtendedIntegerMultiply(
-    LARGE_INTEGER Multiplicand,
-    LONG Multiplier)
+  LARGE_INTEGER Multiplicand,
+  LONG Multiplier)
 {
-    LARGE_INTEGER ret;
-    ret.QuadPart = Multiplicand.QuadPart * Multiplier;
-    return ret;
+  LARGE_INTEGER ret;
+  ret.QuadPart = Multiplicand.QuadPart * Multiplier;
+  return ret;
 }
 
 static __inline
 LARGE_INTEGER
 NTAPI_INLINE
 RtlExtendedLargeIntegerDivide(
-    LARGE_INTEGER Dividend,
-    ULONG Divisor,
-    PULONG Remainder)
+  LARGE_INTEGER Dividend,
+  ULONG Divisor,
+  PULONG Remainder)
 {
-    LARGE_INTEGER ret;
-    ret.QuadPart = (ULONG64)Dividend.QuadPart / Divisor;
-    if (Remainder)
-        *Remainder = (ULONG)(Dividend.QuadPart % Divisor);
-    return ret;
+  LARGE_INTEGER ret;
+  ret.QuadPart = (ULONG64)Dividend.QuadPart / Divisor;
+  if (Remainder)
+    *Remainder = (ULONG)(Dividend.QuadPart % Divisor);
+  return ret;
 }
 #endif
 
@@ -6765,19 +6730,19 @@ static __inline
 LARGE_INTEGER
 NTAPI_INLINE
 RtlExtendedMagicDivide(
-    IN LARGE_INTEGER Dividend,
-    IN LARGE_INTEGER MagicDivisor,
-    IN CCHAR ShiftCount)
+  IN LARGE_INTEGER Dividend,
+  IN LARGE_INTEGER MagicDivisor,
+  IN CCHAR ShiftCount)
 {
-    LARGE_INTEGER ret;
-    ULONG64 ret64;
-    BOOLEAN Pos;
-    Pos = (Dividend.QuadPart >= 0);
-    ret64 = UnsignedMultiplyHigh(Pos ? Dividend.QuadPart : -Dividend.QuadPart,
-                                 MagicDivisor.QuadPart);
-    ret64 >>= ShiftCount;
-    ret.QuadPart = Pos ? ret64 : -ret64;
-    return ret;
+  LARGE_INTEGER ret;
+  ULONG64 ret64;
+  BOOLEAN Pos;
+  Pos = (Dividend.QuadPart >= 0);
+  ret64 = UnsignedMultiplyHigh(Pos ? Dividend.QuadPart : -Dividend.QuadPart,
+                               MagicDivisor.QuadPart);
+  ret64 >>= ShiftCount;
+  ret.QuadPart = Pos ? ret64 : -ret64;
+  return ret;
 }
 #endif
 
@@ -6786,12 +6751,12 @@ static __inline
 LARGE_INTEGER
 NTAPI_INLINE
 RtlLargeIntegerAdd(
-    IN LARGE_INTEGER Addend1,
-    IN LARGE_INTEGER Addend2)
+  IN LARGE_INTEGER Addend1,
+  IN LARGE_INTEGER Addend2)
 {
-    LARGE_INTEGER ret;
-    ret.QuadPart = Addend1.QuadPart + Addend2.QuadPart;
-    return ret;
+  LARGE_INTEGER ret;
+  ret.QuadPart = Addend1.QuadPart + Addend2.QuadPart;
+  return ret;
 }
 
 /* VOID
@@ -6808,12 +6773,12 @@ static __inline
 LARGE_INTEGER
 NTAPI_INLINE
 RtlLargeIntegerArithmeticShift(
-    IN LARGE_INTEGER LargeInteger,
-    IN CCHAR ShiftCount)
+  IN LARGE_INTEGER LargeInteger,
+  IN CCHAR ShiftCount)
 {
-    LARGE_INTEGER ret;
-    ret.QuadPart = LargeInteger.QuadPart >> ShiftCount;
-    return ret;
+  LARGE_INTEGER ret;
+  ret.QuadPart = LargeInteger.QuadPart >> ShiftCount;
+  return ret;
 }
 
 /* BOOLEAN
@@ -6827,36 +6792,35 @@ RtlLargeIntegerArithmeticShift(
 FORCEINLINE
 PVOID
 RtlSecureZeroMemory(
-    OUT PVOID Pointer,
-    IN SIZE_T Size)
+  OUT PVOID Pointer,
+  IN SIZE_T Size)
 {
-    volatile char* vptr = (volatile char*)Pointer;
+  volatile char* vptr = (volatile char*)Pointer;
 #if defined(_M_AMD64)
-    __stosb((PUCHAR)vptr, 0, Size);
+  __stosb((PUCHAR)vptr, 0, Size);
 #else
-    char * endptr = (char *)vptr + Size;
-    while (vptr < endptr)
-    {
-        *vptr = 0; vptr++;
-    }
+  char * endptr = (char *)vptr + Size;
+  while (vptr < endptr) {
+    *vptr = 0; vptr++;
+  }
 #endif
-     return Pointer;
+   return Pointer;
 }
 
 #if defined(_M_AMD64)
 FORCEINLINE
 ULONG
 RtlCheckBit(
-    IN PRTL_BITMAP BitMapHeader,
-    IN ULONG BitPosition)
+  IN PRTL_BITMAP BitMapHeader,
+  IN ULONG BitPosition)
 {
-    return BitTest((LONG CONST*)BitMapHeader->Buffer, BitPosition);
+  return BitTest((LONG CONST*)BitMapHeader->Buffer, BitPosition);
 }
 #else
 #define RtlCheckBit(BMH,BP) (((((PLONG)(BMH)->Buffer)[(BP)/32]) >> ((BP)%32)) & 0x1)
-#endif // defined(_M_AMD64)
+#endif /* defined(_M_AMD64) */
 
-#endif // !defined(MIDL_PASS)
+#endif /* !defined(MIDL_PASS) */
 
 /* Byte Swap Functions */
 #if (defined(_M_IX86) && (_MSC_FULL_VER > 13009037 || defined(__GNUC__))) || \
@@ -6958,25 +6922,21 @@ InitializeSListHead(
   OUT PSLIST_HEADER SListHead)
 {
 #if defined(_IA64_)
-    ULONG64 FeatureBits;
+  ULONG64 FeatureBits;
 #endif
 
 #if defined(_WIN64)
-    if (((ULONG_PTR)SListHead & 0xf) != 0)
-    {
-        RtlRaiseStatus(STATUS_DATATYPE_MISALIGNMENT);
-    }
+  if (((ULONG_PTR)SListHead & 0xf) != 0) {
+    RtlRaiseStatus(STATUS_DATATYPE_MISALIGNMENT);
+  }
 #endif
-
-    RtlZeroMemory(SListHead, sizeof(SLIST_HEADER));
-
+  RtlZeroMemory(SListHead, sizeof(SLIST_HEADER));
 #if defined(_IA64_)
-    FeatureBits = __getReg(CV_IA64_CPUID4);
-    if ((FeatureBits & KF_16BYTE_INSTR) != 0)
-    {
-        SListHead->Header16.HeaderType = 1;
-        SListHead->Header16.Init = 1;
-    }
+  FeatureBits = __getReg(CV_IA64_CPUID4);
+  if ((FeatureBits & KF_16BYTE_INSTR) != 0) {
+    SListHead->Header16.HeaderType = 1;
+    SListHead->Header16.Init = 1;
+  }
 #endif
 }
 
@@ -7002,14 +6962,14 @@ NTKERNELAPI
 PSLIST_ENTRY
 FASTCALL
 InterlockedPopEntrySList(
-    IN PSLIST_HEADER ListHead);
+  IN PSLIST_HEADER ListHead);
 
 NTKERNELAPI
 PSLIST_ENTRY
 FASTCALL
 InterlockedPushEntrySList(
-    IN PSLIST_HEADER ListHead,
-    IN PSLIST_ENTRY ListEntry);
+  IN PSLIST_HEADER ListHead,
+  IN PSLIST_ENTRY ListEntry);
 
 #define InterlockedFlushSList(ListHead) \
     ExInterlockedFlushSList(ListHead)
@@ -7041,16 +7001,15 @@ InterlockedPushEntrySList(
 NTHALAPI
 KIRQL
 NTAPI
-KeGetCurrentIrql(
-    VOID);
+KeGetCurrentIrql(VOID);
 
 NTKERNELAPI
 VOID
 NTAPI
 KeInitializeEvent(
-  OUT PRKEVENT  Event,
-  IN EVENT_TYPE  Type,
-  IN BOOLEAN  State);
+  OUT PRKEVENT Event,
+  IN EVENT_TYPE Type,
+  IN BOOLEAN State);
 
 NTKERNELAPI
 VOID
@@ -7086,7 +7045,7 @@ NTKERNELAPI
 VOID
 NTAPI
 KeSetSystemAffinityThread(
-    IN KAFFINITY Affinity);
+  IN KAFFINITY Affinity);
 
 NTKERNELAPI
 VOID
@@ -7098,22 +7057,22 @@ KeSetTargetProcessorDpc(
 NTKERNELAPI
 KAFFINITY
 NTAPI
-KeQueryActiveProcessors(
-  VOID);
+KeQueryActiveProcessors(VOID);
 #endif
 
 #if !defined(_M_AMD64)
+
 NTKERNELAPI
 ULONGLONG
 NTAPI
-KeQueryInterruptTime(
-  VOID);
+KeQueryInterruptTime(VOID);
 
 NTKERNELAPI
 VOID
 NTAPI
 KeQuerySystemTime(
-  OUT PLARGE_INTEGER  CurrentTime);
+  OUT PLARGE_INTEGER CurrentTime);
+
 #endif /* !_M_AMD64 */
 
 #if defined(_X86_) && (defined(_WDM_INCLUDED_) || defined(WIN9X_COMPAT_SPINLOCK))
@@ -7121,14 +7080,14 @@ NTKERNELAPI
 VOID
 NTAPI
 KeInitializeSpinLock(
-    IN PKSPIN_LOCK SpinLock);
+  IN PKSPIN_LOCK SpinLock);
 #else
 FORCEINLINE
 VOID
 KeInitializeSpinLock(IN PKSPIN_LOCK SpinLock)
 {
-    /* Clear the lock */
-    *SpinLock = 0;
+  /* Clear the lock */
+  *SpinLock = 0;
 }
 #endif
 
@@ -7137,11 +7096,11 @@ DECLSPEC_NORETURN
 VOID
 NTAPI
 KeBugCheckEx(
-  IN ULONG  BugCheckCode,
-  IN ULONG_PTR  BugCheckParameter1,
-  IN ULONG_PTR  BugCheckParameter2,
-  IN ULONG_PTR  BugCheckParameter3,
-  IN ULONG_PTR  BugCheckParameter4);
+  IN ULONG BugCheckCode,
+  IN ULONG_PTR BugCheckParameter1,
+  IN ULONG_PTR BugCheckParameter2,
+  IN ULONG_PTR BugCheckParameter3,
+  IN ULONG_PTR BugCheckParameter4);
 
 NTKERNELAPI
 BOOLEAN
@@ -7172,66 +7131,66 @@ NTKERNELAPI
 VOID
 NTAPI
 KeInitializeDeviceQueue(
-  OUT PKDEVICE_QUEUE  DeviceQueue);
+  OUT PKDEVICE_QUEUE DeviceQueue);
 
 NTKERNELAPI
 VOID
 NTAPI
 KeInitializeDpc(
-  OUT PRKDPC  Dpc,
-  IN PKDEFERRED_ROUTINE  DeferredRoutine,
-  IN PVOID  DeferredContext OPTIONAL);
+  OUT PRKDPC Dpc,
+  IN PKDEFERRED_ROUTINE DeferredRoutine,
+  IN PVOID DeferredContext OPTIONAL);
 
 NTKERNELAPI
 VOID
 NTAPI
 KeInitializeMutex(
-  OUT PRKMUTEX  Mutex,
-  IN ULONG  Level);
+  OUT PRKMUTEX Mutex,
+  IN ULONG Level);
 
 NTKERNELAPI
 VOID
 NTAPI
 KeInitializeSemaphore(
-  OUT PRKSEMAPHORE  Semaphore,
-  IN LONG  Count,
-  IN LONG  Limit);
+  OUT PRKSEMAPHORE Semaphore,
+  IN LONG Count,
+  IN LONG Limit);
 
 NTKERNELAPI
 VOID
 NTAPI
 KeInitializeTimer(
-  OUT PKTIMER  Timer);
+  OUT PKTIMER Timer);
 
 NTKERNELAPI
 VOID
 NTAPI
 KeInitializeTimerEx(
-  OUT PKTIMER  Timer,
-  IN TIMER_TYPE  Type);
+  OUT PKTIMER Timer,
+  IN TIMER_TYPE Type);
 
 NTKERNELAPI
 BOOLEAN
 NTAPI
 KeInsertByKeyDeviceQueue(
-  IN OUT PKDEVICE_QUEUE  DeviceQueue,
-  IN OUT PKDEVICE_QUEUE_ENTRY  DeviceQueueEntry,
-  IN ULONG  SortKey);
+  IN OUT PKDEVICE_QUEUE DeviceQueue,
+  IN OUT PKDEVICE_QUEUE_ENTRY DeviceQueueEntry,
+  IN ULONG SortKey);
 
 NTKERNELAPI
 BOOLEAN
 NTAPI
 KeInsertDeviceQueue(
-  IN OUT PKDEVICE_QUEUE  DeviceQueue,
-  IN OUT PKDEVICE_QUEUE_ENTRY  DeviceQueueEntry);
+  IN OUT PKDEVICE_QUEUE DeviceQueue,
+  IN OUT PKDEVICE_QUEUE_ENTRY DeviceQueueEntry);
 
 NTKERNELAPI
 BOOLEAN
 NTAPI
 KeInsertQueueDpc(
-  IN OUT PRKDPC  Dpc,
-  IN PVOID  SystemArgument1 OPTIONAL,
-  IN PVOID  SystemArgument2 OPTIONAL);
+  IN OUT PRKDPC Dpc,
+  IN PVOID SystemArgument1 OPTIONAL,
+  IN PVOID SystemArgument2 OPTIONAL);
 
 NTKERNELAPI
 VOID
@@ -7242,168 +7201,166 @@ NTHALAPI
 LARGE_INTEGER
 NTAPI
 KeQueryPerformanceCounter(
-  OUT PLARGE_INTEGER  PerformanceFrequency  OPTIONAL);
+  OUT PLARGE_INTEGER PerformanceFrequency OPTIONAL);
 
 NTKERNELAPI
 KPRIORITY
 NTAPI
 KeQueryPriorityThread(
-  IN PRKTHREAD  Thread);
+  IN PRKTHREAD Thread);
 
 NTKERNELAPI
 ULONG
 NTAPI
-KeQueryTimeIncrement(
-  VOID);
+KeQueryTimeIncrement(VOID);
 
 NTKERNELAPI
 LONG
 NTAPI
 KeReadStateEvent(
-  IN PRKEVENT  Event);
+  IN PRKEVENT Event);
 
 NTKERNELAPI
 LONG
 NTAPI
 KeReadStateMutex(
-  IN PRKMUTEX  Mutex);
-
+  IN PRKMUTEX Mutex);
 
 NTKERNELAPI
 LONG
 NTAPI
 KeReadStateSemaphore(
-  IN PRKSEMAPHORE  Semaphore);
+  IN PRKSEMAPHORE Semaphore);
 
 NTKERNELAPI
 BOOLEAN
 NTAPI
 KeReadStateTimer(
-  IN PKTIMER  Timer);
+  IN PKTIMER Timer);
 
 NTKERNELAPI
 BOOLEAN
 NTAPI
 KeRegisterBugCheckCallback(
-  OUT PKBUGCHECK_CALLBACK_RECORD  CallbackRecord,
-  IN PKBUGCHECK_CALLBACK_ROUTINE  CallbackRoutine,
-  IN PVOID  Buffer,
-  IN ULONG  Length,
-  IN PUCHAR  Component);
+  OUT PKBUGCHECK_CALLBACK_RECORD CallbackRecord,
+  IN PKBUGCHECK_CALLBACK_ROUTINE CallbackRoutine,
+  IN PVOID Buffer,
+  IN ULONG Length,
+  IN PUCHAR Component);
 
 NTKERNELAPI
 LONG
 NTAPI
 KeReleaseMutex(
-  IN OUT PRKMUTEX  Mutex,
-  IN BOOLEAN  Wait);
+  IN OUT PRKMUTEX Mutex,
+  IN BOOLEAN Wait);
 
 NTKERNELAPI
 LONG
 NTAPI
 KeReleaseSemaphore(
-  IN OUT PRKSEMAPHORE  Semaphore,
-  IN KPRIORITY  Increment,
-  IN LONG  Adjustment,
-  IN BOOLEAN  Wait);
+  IN OUT PRKSEMAPHORE Semaphore,
+  IN KPRIORITY Increment,
+  IN LONG Adjustment,
+  IN BOOLEAN Wait);
 
 NTKERNELAPI
 PKDEVICE_QUEUE_ENTRY
 NTAPI
 KeRemoveByKeyDeviceQueue(
-  IN OUT PKDEVICE_QUEUE  DeviceQueue,
-  IN ULONG  SortKey);
+  IN OUT PKDEVICE_QUEUE DeviceQueue,
+  IN ULONG SortKey);
 
 NTKERNELAPI
 PKDEVICE_QUEUE_ENTRY
 NTAPI
 KeRemoveDeviceQueue(
-  IN OUT PKDEVICE_QUEUE  DeviceQueue);
+  IN OUT PKDEVICE_QUEUE DeviceQueue);
 
 NTKERNELAPI
 BOOLEAN
 NTAPI
 KeRemoveEntryDeviceQueue(
-  IN OUT PKDEVICE_QUEUE  DeviceQueue,
-  IN OUT PKDEVICE_QUEUE_ENTRY  DeviceQueueEntry);
+  IN OUT PKDEVICE_QUEUE DeviceQueue,
+  IN OUT PKDEVICE_QUEUE_ENTRY DeviceQueueEntry);
 
 NTKERNELAPI
 BOOLEAN
 NTAPI
 KeRemoveQueueDpc(
-  IN OUT PRKDPC  Dpc);
+  IN OUT PRKDPC Dpc);
 
 NTKERNELAPI
 LONG
 NTAPI
 KeResetEvent(
-  IN OUT PRKEVENT  Event);
+  IN OUT PRKEVENT Event);
 
 NTKERNELAPI
 LONG
 NTAPI
 KeSetEvent(
-  IN OUT PRKEVENT  Event,
-  IN KPRIORITY  Increment,
-  IN BOOLEAN  Wait);
+  IN OUT PRKEVENT Event,
+  IN KPRIORITY Increment,
+  IN BOOLEAN Wait);
 
 NTKERNELAPI
 VOID
 NTAPI
 KeSetImportanceDpc(
-  IN OUT PRKDPC  Dpc,
-  IN KDPC_IMPORTANCE  Importance);
+  IN OUT PRKDPC Dpc,
+  IN KDPC_IMPORTANCE Importance);
 
 NTKERNELAPI
 KPRIORITY
 NTAPI
 KeSetPriorityThread(
-  IN OUT PKTHREAD  Thread,
-  IN KPRIORITY  Priority);
+  IN OUT PKTHREAD Thread,
+  IN KPRIORITY Priority);
 
 NTKERNELAPI
 BOOLEAN
 NTAPI
 KeSetTimer(
-  IN OUT PKTIMER  Timer,
-  IN LARGE_INTEGER  DueTime,
-  IN PKDPC  Dpc  OPTIONAL);
+  IN OUT PKTIMER Timer,
+  IN LARGE_INTEGER DueTime,
+  IN PKDPC Dpc OPTIONAL);
 
 NTKERNELAPI
 BOOLEAN
 NTAPI
 KeSetTimerEx(
-  IN OUT PKTIMER  Timer,
-  IN LARGE_INTEGER  DueTime,
-  IN LONG  Period  OPTIONAL,
-  IN PKDPC  Dpc  OPTIONAL);
+  IN OUT PKTIMER Timer,
+  IN LARGE_INTEGER DueTime,
+  IN LONG Period OPTIONAL,
+  IN PKDPC Dpc OPTIONAL);
 
 NTHALAPI
 VOID
 NTAPI
 KeStallExecutionProcessor(
-  IN ULONG  MicroSeconds);
+  IN ULONG MicroSeconds);
 
 NTKERNELAPI
 BOOLEAN
 NTAPI
 KeSynchronizeExecution(
-  IN OUT PKINTERRUPT    Interrupt,
-  IN PKSYNCHRONIZE_ROUTINE  SynchronizeRoutine,
-  IN PVOID  SynchronizeContext OPTIONAL);
+  IN OUT PKINTERRUPT Interrupt,
+  IN PKSYNCHRONIZE_ROUTINE SynchronizeRoutine,
+  IN PVOID SynchronizeContext OPTIONAL);
 
 NTKERNELAPI
 NTSTATUS
 NTAPI
 KeWaitForMultipleObjects(
-  IN ULONG  Count,
-  IN PVOID  Object[],
-  IN WAIT_TYPE  WaitType,
-  IN KWAIT_REASON  WaitReason,
-  IN KPROCESSOR_MODE  WaitMode,
-  IN BOOLEAN  Alertable,
-  IN PLARGE_INTEGER  Timeout  OPTIONAL,
-  OUT PKWAIT_BLOCK  WaitBlockArray  OPTIONAL);
+  IN ULONG Count,
+  IN PVOID Object[],
+  IN WAIT_TYPE WaitType,
+  IN KWAIT_REASON WaitReason,
+  IN KPROCESSOR_MODE WaitMode,
+  IN BOOLEAN Alertable,
+  IN PLARGE_INTEGER Timeout OPTIONAL,
+  OUT PKWAIT_BLOCK WaitBlockArray OPTIONAL);
 
 #define KeWaitForMutexObject KeWaitForSingleObject
 
@@ -7411,11 +7368,11 @@ NTKERNELAPI
 NTSTATUS
 NTAPI
 KeWaitForSingleObject(
-  IN PVOID  Object,
-  IN KWAIT_REASON  WaitReason,
-  IN KPROCESSOR_MODE  WaitMode,
-  IN BOOLEAN  Alertable,
-  IN PLARGE_INTEGER  Timeout  OPTIONAL);
+  IN PVOID Object,
+  IN KWAIT_REASON WaitReason,
+  IN KPROCESSOR_MODE WaitMode,
+  IN BOOLEAN Alertable,
+  IN PLARGE_INTEGER Timeout OPTIONAL);
 
 #endif /* (NTDDI_VERSION >= NTDDI_WIN2K) */
 
@@ -7432,14 +7389,14 @@ NTKERNELAPI
 VOID
 FASTCALL
 KeAcquireInStackQueuedSpinLockAtDpcLevel(
-  IN OUT PKSPIN_LOCK  SpinLock,
-  OUT PKLOCK_QUEUE_HANDLE  LockHandle);
+  IN OUT PKSPIN_LOCK SpinLock,
+  OUT PKLOCK_QUEUE_HANDLE LockHandle);
 
 NTKERNELAPI
 KIRQL
 NTAPI
 KeAcquireInterruptSpinLock(
-  IN OUT PKINTERRUPT  Interrupt);
+  IN OUT PKINTERRUPT Interrupt);
 
 NTKERNELAPI
 BOOLEAN
@@ -7462,14 +7419,14 @@ NTKERNELAPI
 VOID
 FASTCALL
 KeReleaseInStackQueuedSpinLockFromDpcLevel(
-  IN PKLOCK_QUEUE_HANDLE  LockHandle);
+  IN PKLOCK_QUEUE_HANDLE LockHandle);
 
 NTKERNELAPI
 VOID
 NTAPI
 KeReleaseInterruptSpinLock(
-  IN OUT PKINTERRUPT  Interrupt,
-  IN KIRQL  OldIrql);
+  IN OUT PKINTERRUPT Interrupt,
+  IN KIRQL OldIrql);
 
 NTKERNELAPI
 PKDEVICE_QUEUE_ENTRY
@@ -7506,13 +7463,10 @@ KeRegisterBugCheckReasonCallback(
 #endif /* (NTDDI_VERSION >= NTDDI_WINXPSP1) */
 
 #if (NTDDI_VERSION >= NTDDI_WINXPSP2)
-
 NTKERNELAPI
 VOID
 NTAPI
-KeFlushQueuedDpcs(
-  VOID);
-
+KeFlushQueuedDpcs(VOID);
 #endif /* (NTDDI_VERSION >= NTDDI_WINXPSP2) */
 
 #if (NTDDI_VERSION >= NTDDI_WS03)
@@ -7577,64 +7531,53 @@ KeTryToAcquireSpinLockAtDpcLevel(
 NTKERNELAPI
 BOOLEAN
 NTAPI
-KeAreAllApcsDisabled(
-  VOID);
+KeAreAllApcsDisabled(VOID);
 
 NTKERNELAPI
 VOID
 FASTCALL
 KeAcquireGuardedMutex(
-    IN OUT PKGUARDED_MUTEX GuardedMutex
-);
+  IN OUT PKGUARDED_MUTEX GuardedMutex);
 
 NTKERNELAPI
 VOID
 FASTCALL
 KeAcquireGuardedMutexUnsafe(
-    IN OUT PKGUARDED_MUTEX GuardedMutex
-);
+  IN OUT PKGUARDED_MUTEX GuardedMutex);
 
 NTKERNELAPI
 VOID
 NTAPI
-KeEnterGuardedRegion(
-    VOID
-);
+KeEnterGuardedRegion(VOID);
 
 NTKERNELAPI
 VOID
 NTAPI
-KeLeaveGuardedRegion(
-    VOID
-);
+KeLeaveGuardedRegion(VOID);
 
 NTKERNELAPI
 VOID
 FASTCALL
 KeInitializeGuardedMutex(
-    OUT PKGUARDED_MUTEX GuardedMutex
-);
+  OUT PKGUARDED_MUTEX GuardedMutex);
 
 NTKERNELAPI
 VOID
 FASTCALL
 KeReleaseGuardedMutexUnsafe(
-    IN OUT PKGUARDED_MUTEX GuardedMutex
-);
+  IN OUT PKGUARDED_MUTEX GuardedMutex);
 
 NTKERNELAPI
 VOID
 FASTCALL
 KeReleaseGuardedMutex(
-    IN OUT PKGUARDED_MUTEX GuardedMutex
-);
+  IN OUT PKGUARDED_MUTEX GuardedMutex);
 
 NTKERNELAPI
 BOOLEAN
 FASTCALL
 KeTryToAcquireGuardedMutex(
-    IN OUT PKGUARDED_MUTEX GuardedMutex
-);
+  IN OUT PKGUARDED_MUTEX GuardedMutex);
 
 #endif /* (NTDDI_VERSION >= NTDDI_WS03SP1) */
 
@@ -7675,11 +7618,10 @@ KeQueryActiveProcessorCount(
 NTKERNELAPI
 ULONG
 NTAPI
-KeQueryMaximumProcessorCount(
-  VOID);
+KeQueryMaximumProcessorCount(VOID);
 #endif
 
-#endif /*  (NTDDI_VERSION >= NTDDI_VISTA) */
+#endif /* (NTDDI_VERSION >= NTDDI_VISTA) */
 
 #if (NTDDI_VERSION >= NTDDI_WS08)
 
@@ -7742,8 +7684,7 @@ KeSetCoalescableTimer(
 NTKERNELAPI
 ULONGLONG
 NTAPI
-KeQueryUnbiasedInterruptTime(
-  VOID);
+KeQueryUnbiasedInterruptTime(VOID);
 
 NTKERNELAPI
 ULONG
@@ -7760,19 +7701,17 @@ KeQueryMaximumProcessorCountEx(
 NTKERNELAPI
 USHORT
 NTAPI
-KeQueryActiveGroupCount(
-  VOID);
+KeQueryActiveGroupCount(VOID);
 
 NTKERNELAPI
 USHORT
 NTAPI
-KeQueryMaximumGroupCount(
-  VOID);
+KeQueryMaximumGroupCount(VOID);
 
 NTKERNELAPI
 KAFFINITY
 NTAPI
-KeQueryGroupAffinity 
+KeQueryGroupAffinity(
   IN USHORT GroupNumber);
 
 NTKERNELAPI
@@ -7798,14 +7737,12 @@ KeQueryNodeMaximumProcessorCount(
 NTKERNELAPI
 USHORT
 NTAPI
-KeQueryHighestNodeNumber(
-  VOID);
+KeQueryHighestNodeNumber(VOID);
 
 NTKERNELAPI
 USHORT
 NTAPI
-KeGetCurrentNodeNumber(
-  VOID);
+KeGetCurrentNodeNumber(VOID);
 
 NTKERNELAPI
 NTSTATUS
@@ -7829,7 +7766,7 @@ NTAPI
 KeRestoreExtendedProcessorState(
   IN PXSTATE_SAVE XStateSave);
 
-#endif /*  (NTDDI_VERSION >= NTDDI_WIN7) */
+#endif /* (NTDDI_VERSION >= NTDDI_WIN7) */
 
 #if !defined(_IA64_)
 NTHALAPI
@@ -7864,7 +7801,7 @@ KeFlushWriteBuffer(VOID);
 
 #define PAGED_CODE()
 
-#endif
+#endif /* DBG */
 
 #define PAGED_CODE_LOCKED() NOP_FUNCTION;
 
@@ -7872,9 +7809,7 @@ KeFlushWriteBuffer(VOID);
  *                       Memory manager Functions                             *
  ******************************************************************************/
 
-/*
- * Alignment Macros
- */
+/* Alignment Macros */
 #define ALIGN_DOWN_BY(size, align) \
     ((ULONG_PTR)(size) & ~((ULONG_PTR)(align) - 1))
 
@@ -8032,56 +7967,56 @@ NTKERNELAPI
 PVOID
 NTAPI
 MmAllocateContiguousMemory(
-  IN SIZE_T  NumberOfBytes,
-  IN PHYSICAL_ADDRESS  HighestAcceptableAddress);
+  IN SIZE_T NumberOfBytes,
+  IN PHYSICAL_ADDRESS HighestAcceptableAddress);
 
 NTKERNELAPI
 PVOID
 NTAPI
 MmAllocateContiguousMemorySpecifyCache(
-  IN SIZE_T  NumberOfBytes,
-  IN PHYSICAL_ADDRESS  LowestAcceptableAddress,
-  IN PHYSICAL_ADDRESS  HighestAcceptableAddress,
-  IN PHYSICAL_ADDRESS  BoundaryAddressMultiple  OPTIONAL,
-  IN MEMORY_CACHING_TYPE  CacheType);
+  IN SIZE_T NumberOfBytes,
+  IN PHYSICAL_ADDRESS LowestAcceptableAddress,
+  IN PHYSICAL_ADDRESS HighestAcceptableAddress,
+  IN PHYSICAL_ADDRESS BoundaryAddressMultiple OPTIONAL,
+  IN MEMORY_CACHING_TYPE CacheType);
 
 NTKERNELAPI
 PMDL
 NTAPI
 MmAllocatePagesForMdl(
-  IN PHYSICAL_ADDRESS  LowAddress,
-  IN PHYSICAL_ADDRESS  HighAddress,
-  IN PHYSICAL_ADDRESS  SkipBytes,
-  IN SIZE_T  TotalBytes);
+  IN PHYSICAL_ADDRESS LowAddress,
+  IN PHYSICAL_ADDRESS HighAddress,
+  IN PHYSICAL_ADDRESS SkipBytes,
+  IN SIZE_T TotalBytes);
 
 NTKERNELAPI
 VOID
 NTAPI
 MmBuildMdlForNonPagedPool(
-  IN OUT PMDLX  MemoryDescriptorList);
+  IN OUT PMDLX MemoryDescriptorList);
 
 //DECLSPEC_DEPRECATED_DDK
 NTKERNELAPI
 PMDL
 NTAPI
 MmCreateMdl(
-  IN PMDL  MemoryDescriptorList  OPTIONAL,
-  IN PVOID  Base,
-  IN SIZE_T  Length);
+  IN PMDL MemoryDescriptorList OPTIONAL,
+  IN PVOID Base,
+  IN SIZE_T Length);
 
 NTKERNELAPI
 VOID
 NTAPI
 MmFreeContiguousMemory(
-  IN PVOID  BaseAddress);
+  IN PVOID BaseAddress);
 
 NTKERNELAPI
 VOID
 NTAPI
 MmFreeContiguousMemorySpecifyCache(
-  IN PVOID  BaseAddress,
-  IN SIZE_T  NumberOfBytes,
-  IN MEMORY_CACHING_TYPE  CacheType);
+  IN PVOID BaseAddress,
+  IN SIZE_T NumberOfBytes,
+  IN MEMORY_CACHING_TYPE CacheType);
 
 NTKERNELAPI
 VOID
@@ -8093,7 +8028,7 @@ NTKERNELAPI
 PVOID
 NTAPI
 MmGetSystemRoutineAddress(
-  IN PUNICODE_STRING  SystemRoutineName);
+  IN PUNICODE_STRING SystemRoutineName);
 
 NTKERNELAPI
 LOGICAL
@@ -8105,22 +8040,22 @@ NTKERNELAPI
 PVOID
 NTAPI
 MmLockPagableDataSection(
-  IN PVOID  AddressWithinSection);
+  IN PVOID AddressWithinSection);
 
 NTKERNELAPI
 PVOID
 NTAPI
 MmMapIoSpace(
-  IN PHYSICAL_ADDRESS  PhysicalAddress,
-  IN SIZE_T  NumberOfBytes,
-  IN MEMORY_CACHING_TYPE  CacheEnable);
+  IN PHYSICAL_ADDRESS PhysicalAddress,
+  IN SIZE_T NumberOfBytes,
+  IN MEMORY_CACHING_TYPE CacheEnable);
 
 NTKERNELAPI
 PVOID
 NTAPI
 MmMapLockedPages(
-  IN PMDL  MemoryDescriptorList,
-  IN KPROCESSOR_MODE  AccessMode);
+  IN PMDL MemoryDescriptorList,
+  IN KPROCESSOR_MODE AccessMode);
 
 NTKERNELAPI
 PVOID
@@ -8137,71 +8072,70 @@ NTKERNELAPI
 PVOID
 NTAPI
 MmPageEntireDriver(
-  IN PVOID  AddressWithinSection);
+  IN PVOID AddressWithinSection);
 
 NTKERNELAPI
 VOID
 NTAPI
 MmProbeAndLockPages(
-  IN OUT PMDL  MemoryDescriptorList,
-  IN KPROCESSOR_MODE  AccessMode,
-  IN LOCK_OPERATION  Operation);
+  IN OUT PMDL MemoryDescriptorList,
+  IN KPROCESSOR_MODE AccessMode,
+  IN LOCK_OPERATION Operation);
 
 NTKERNELAPI
 MM_SYSTEMSIZE
 NTAPI
-MmQuerySystemSize(
-  VOID);
+MmQuerySystemSize(VOID);
 
 NTKERNELAPI
 VOID
 NTAPI
 MmResetDriverPaging(
-  IN PVOID  AddressWithinSection);
+  IN PVOID AddressWithinSection);
 
 NTKERNELAPI
 SIZE_T
 NTAPI
 MmSizeOfMdl(
-  IN PVOID  Base,
-  IN SIZE_T  Length);
+  IN PVOID Base,
+  IN SIZE_T Length);
 
 NTKERNELAPI
 VOID
 NTAPI
 MmUnlockPagableImageSection(
-  IN PVOID  ImageSectionHandle);
+  IN PVOID ImageSectionHandle);
 
 NTKERNELAPI
 VOID
 NTAPI
 MmUnlockPages(
-  IN OUT PMDL  MemoryDescriptorList);
+  IN OUT PMDL MemoryDescriptorList);
 
 NTKERNELAPI
 VOID
 NTAPI
 MmUnmapIoSpace(
-  IN PVOID  BaseAddress,
-  IN SIZE_T  NumberOfBytes);
+  IN PVOID BaseAddress,
+  IN SIZE_T NumberOfBytes);
 
 NTKERNELAPI
 VOID
 NTAPI
 MmProbeAndLockProcessPages(
-  IN OUT PMDL  MemoryDescriptorList,
-  IN PEPROCESS  Process,
-  IN KPROCESSOR_MODE  AccessMode,
-  IN LOCK_OPERATION  Operation);
+  IN OUT PMDL MemoryDescriptorList,
+  IN PEPROCESS Process,
+  IN KPROCESSOR_MODE AccessMode,
+  IN LOCK_OPERATION Operation);
 
 NTKERNELAPI
 VOID
 NTAPI
 MmUnmapLockedPages(
-  IN PVOID  BaseAddress,
-  IN PMDL  MemoryDescriptorList);
+  IN PVOID BaseAddress,
+  IN PMDL MemoryDescriptorList);
 
-#endif
+#endif /* (NTDDI_VERSION >= NTDDI_WIN2K) */
 
 #if (NTDDI_VERSION >= NTDDI_WINXP)
 
@@ -8209,54 +8143,54 @@ NTKERNELAPI
 NTSTATUS
 NTAPI
 MmAdvanceMdl(
-  IN OUT PMDL  Mdl,
-  IN ULONG  NumberOfBytes);
+  IN OUT PMDL Mdl,
+  IN ULONG NumberOfBytes);
 
 NTKERNELAPI
 PVOID
 NTAPI
 MmAllocateMappingAddress(
-  IN SIZE_T  NumberOfBytes,
-  IN ULONG  PoolTag);
+  IN SIZE_T NumberOfBytes,
+  IN ULONG PoolTag);
 
 NTKERNELAPI
 VOID
 NTAPI
 MmFreeMappingAddress(
-  IN PVOID  BaseAddress,
-  IN ULONG  PoolTag);
+  IN PVOID BaseAddress,
+  IN ULONG PoolTag);
 
 NTKERNELAPI
 NTSTATUS
 NTAPI
 MmIsVerifierEnabled(
-  OUT PULONG  VerifierFlags);
+  OUT PULONG VerifierFlags);
 
 NTKERNELAPI
 PVOID
 NTAPI
 MmMapLockedPagesWithReservedMapping(
-  IN PVOID  MappingAddress,
-  IN ULONG  PoolTag,
-  IN PMDL  MemoryDescriptorList,
-  IN MEMORY_CACHING_TYPE  CacheType);
+  IN PVOID MappingAddress,
+  IN ULONG PoolTag,
+  IN PMDL MemoryDescriptorList,
+  IN MEMORY_CACHING_TYPE CacheType);
 
 NTKERNELAPI
 NTSTATUS
 NTAPI
 MmProtectMdlSystemAddress(
-  IN PMDL  MemoryDescriptorList,
-  IN ULONG  NewProtect);
+  IN PMDL MemoryDescriptorList,
+  IN ULONG NewProtect);
 
 NTKERNELAPI
 VOID
 NTAPI
 MmUnmapReservedMapping(
-  IN PVOID  BaseAddress,
-  IN ULONG  PoolTag,
-  IN PMDL  MemoryDescriptorList);
+  IN PVOID BaseAddress,
+  IN ULONG PoolTag,
+  IN PMDL MemoryDescriptorList);
 
-#endif
+#endif /* (NTDDI_VERSION >= NTDDI_WINXP) */
 
 #if (NTDDI_VERSION >= NTDDI_WS03SP1)
 NTKERNELAPI
@@ -8281,42 +8215,42 @@ NTKERNELAPI
 BOOLEAN
 NTAPI
 SeAccessCheck(
-  IN PSECURITY_DESCRIPTOR  SecurityDescriptor,
-  IN PSECURITY_SUBJECT_CONTEXT  SubjectSecurityContext,
-  IN BOOLEAN  SubjectContextLocked,
-  IN ACCESS_MASK  DesiredAccess,
-  IN ACCESS_MASK  PreviouslyGrantedAccess,
-  OUT PPRIVILEGE_SET  *Privileges  OPTIONAL,
-  IN PGENERIC_MAPPING  GenericMapping,
-  IN KPROCESSOR_MODE  AccessMode,
-  OUT PACCESS_MASK  GrantedAccess,
-  OUT PNTSTATUS  AccessStatus);
+  IN PSECURITY_DESCRIPTOR SecurityDescriptor,
+  IN PSECURITY_SUBJECT_CONTEXT SubjectSecurityContext,
+  IN BOOLEAN SubjectContextLocked,
+  IN ACCESS_MASK DesiredAccess,
+  IN ACCESS_MASK PreviouslyGrantedAccess,
+  OUT PPRIVILEGE_SET *Privileges OPTIONAL,
+  IN PGENERIC_MAPPING GenericMapping,
+  IN KPROCESSOR_MODE AccessMode,
+  OUT PACCESS_MASK GrantedAccess,
+  OUT PNTSTATUS AccessStatus);
 
 NTKERNELAPI
 NTSTATUS
 NTAPI
 SeAssignSecurity(
-  IN PSECURITY_DESCRIPTOR  ParentDescriptor  OPTIONAL,
-  IN PSECURITY_DESCRIPTOR  ExplicitDescriptor  OPTIONAL,
-  OUT PSECURITY_DESCRIPTOR  *NewDescriptor,
-  IN BOOLEAN  IsDirectoryObject,
-  IN PSECURITY_SUBJECT_CONTEXT  SubjectContext,
-  IN PGENERIC_MAPPING  GenericMapping,
-  IN POOL_TYPE  PoolType);
+  IN PSECURITY_DESCRIPTOR ParentDescriptor OPTIONAL,
+  IN PSECURITY_DESCRIPTOR ExplicitDescriptor OPTIONAL,
+  OUT PSECURITY_DESCRIPTOR *NewDescriptor,
+  IN BOOLEAN IsDirectoryObject,
+  IN PSECURITY_SUBJECT_CONTEXT SubjectContext,
+  IN PGENERIC_MAPPING GenericMapping,
+  IN POOL_TYPE PoolType);
 
 NTKERNELAPI
 NTSTATUS
 NTAPI
 SeAssignSecurityEx(
-  IN PSECURITY_DESCRIPTOR  ParentDescriptor  OPTIONAL,
-  IN PSECURITY_DESCRIPTOR  ExplicitDescriptor  OPTIONAL,
-  OUT PSECURITY_DESCRIPTOR  *NewDescriptor,
-  IN GUID  *ObjectType  OPTIONAL,
-  IN BOOLEAN  IsDirectoryObject,
-  IN ULONG  AutoInheritFlags,
-  IN PSECURITY_SUBJECT_CONTEXT  SubjectContext,
-  IN PGENERIC_MAPPING  GenericMapping,
-  IN POOL_TYPE  PoolType);
+  IN PSECURITY_DESCRIPTOR ParentDescriptor OPTIONAL,
+  IN PSECURITY_DESCRIPTOR ExplicitDescriptor OPTIONAL,
+  OUT PSECURITY_DESCRIPTOR *NewDescriptor,
+  IN GUID *ObjectType OPTIONAL,
+  IN BOOLEAN IsDirectoryObject,
+  IN ULONG AutoInheritFlags,
+  IN PSECURITY_SUBJECT_CONTEXT SubjectContext,
+  IN PGENERIC_MAPPING GenericMapping,
+  IN POOL_TYPE PoolType);
 
 NTKERNELAPI
 NTSTATUS
@@ -8413,15 +8347,15 @@ NTKERNELAPI
 NTSTATUS
 NTAPI
 CmRegisterCallback(
-  IN PEX_CALLBACK_FUNCTION  Function,
-  IN PVOID  Context  OPTIONAL,
-  OUT PLARGE_INTEGER  Cookie);
+  IN PEX_CALLBACK_FUNCTION Function,
+  IN PVOID Context OPTIONAL,
+  OUT PLARGE_INTEGER Cookie);
 
 NTKERNELAPI
 NTSTATUS
 NTAPI
 CmUnRegisterCallback(
-  IN LARGE_INTEGER  Cookie);
+  IN LARGE_INTEGER Cookie);
 #endif
 
 
@@ -8571,9 +8505,9 @@ NTKERNELAPI
 VOID
 NTAPI
 WRITE_REGISTER_BUFFER_ULONG(
-  IN PULONG  Register,
-  IN PULONG  Buffer,
-  IN ULONG  Count);
+  IN PULONG Register,
+  IN PULONG Buffer,
+  IN ULONG Count);
 
 NTKERNELAPI
 VOID
@@ -8601,8 +8535,8 @@ NTKERNELAPI
 VOID
 NTAPI
 WRITE_REGISTER_USHORT(
-  IN PUSHORT  Register,
-  IN USHORT  Value);
+  IN PUSHORT Register,
+  IN USHORT Value);
 
 #else
 
@@ -8613,17 +8547,17 @@ READ_PORT_BUFFER_UCHAR(
   IN PUCHAR Buffer,
   IN ULONG Count)
 {
-    __inbytestring((USHORT)(ULONG_PTR)Port, Buffer, Count);
+  __inbytestring((USHORT)(ULONG_PTR)Port, Buffer, Count);
 }
 
 FORCEINLINE
 VOID
 READ_PORT_BUFFER_ULONG(
-  IN PULONG  Port,
-  IN PULONG  Buffer,
-  IN ULONG  Count)
+  IN PULONG Port,
+  IN PULONG Buffer,
+  IN ULONG Count)
 {
-    __indwordstring((USHORT)(ULONG_PTR)Port, Buffer, Count);
+  __indwordstring((USHORT)(ULONG_PTR)Port, Buffer, Count);
 }
 
 FORCEINLINE
@@ -8633,7 +8567,7 @@ READ_PORT_BUFFER_USHORT(
   IN PUSHORT Buffer,
   IN ULONG Count)
 {
-    __inwordstring((USHORT)(ULONG_PTR)Port, Buffer, Count);
+  __inwordstring((USHORT)(ULONG_PTR)Port, Buffer, Count);
 }
 
 FORCEINLINE
@@ -8641,7 +8575,7 @@ UCHAR
 READ_PORT_UCHAR(
   IN PUCHAR Port)
 {
-    return __inbyte((USHORT)(ULONG_PTR)Port);
+  return __inbyte((USHORT)(ULONG_PTR)Port);
 }
 
 FORCEINLINE
@@ -8649,7 +8583,7 @@ ULONG
 READ_PORT_ULONG(
   IN PULONG Port)
 {
-    return __indword((USHORT)(ULONG_PTR)Port);
+  return __indword((USHORT)(ULONG_PTR)Port);
 }
 
 FORCEINLINE
@@ -8657,7 +8591,7 @@ USHORT
 READ_PORT_USHORT(
   IN PUSHORT Port)
 {
-    return __inword((USHORT)(ULONG_PTR)Port);
+  return __inword((USHORT)(ULONG_PTR)Port);
 }
 
 FORCEINLINE
@@ -8667,27 +8601,27 @@ READ_REGISTER_BUFFER_UCHAR(
   IN PUCHAR Buffer,
   IN ULONG Count)
 {
-    __movsb(Register, Buffer, Count);
+  __movsb(Register, Buffer, Count);
 }
 
 FORCEINLINE
 VOID
 READ_REGISTER_BUFFER_ULONG(
-  IN PULONG  Register,
-  IN PULONG  Buffer,
-  IN ULONG  Count)
+  IN PULONG Register,
+  IN PULONG Buffer,
+  IN ULONG Count)
 {
-    __movsd(Register, Buffer, Count);
+  __movsd(Register, Buffer, Count);
 }
 
 FORCEINLINE
 VOID
 READ_REGISTER_BUFFER_USHORT(
-  IN PUSHORT  Register,
-  IN PUSHORT  Buffer,
-  IN ULONG  Count)
+  IN PUSHORT Register,
+  IN PUSHORT Buffer,
+  IN ULONG Count)
 {
-    __movsw(Register, Buffer, Count);
+  __movsw(Register, Buffer, Count);
 }
 
 FORCEINLINE
@@ -8695,7 +8629,7 @@ UCHAR
 READ_REGISTER_UCHAR(
   IN volatile UCHAR *Register)
 {
-    return *Register;
+  return *Register;
 }
 
 FORCEINLINE
@@ -8703,7 +8637,7 @@ ULONG
 READ_REGISTER_ULONG(
   IN volatile ULONG *Register)
 {
-    return *Register;
+  return *Register;
 }
 
 FORCEINLINE
@@ -8711,7 +8645,7 @@ USHORT
 READ_REGISTER_USHORT(
   IN volatile USHORT *Register)
 {
-    return *Register;
+  return *Register;
 }
 
 FORCEINLINE
@@ -8721,7 +8655,7 @@ WRITE_PORT_BUFFER_UCHAR(
   IN PUCHAR Buffer,
   IN ULONG Count)
 {
-    __outbytestring((USHORT)(ULONG_PTR)Port, Buffer, Count);
+  __outbytestring((USHORT)(ULONG_PTR)Port, Buffer, Count);
 }
 
 FORCEINLINE
@@ -8731,7 +8665,7 @@ WRITE_PORT_BUFFER_ULONG(
   IN PULONG Buffer,
   IN ULONG Count)
 {
-    __outdwordstring((USHORT)(ULONG_PTR)Port, Buffer, Count);
+  __outdwordstring((USHORT)(ULONG_PTR)Port, Buffer, Count);
 }
 
 FORCEINLINE
@@ -8741,7 +8675,7 @@ WRITE_PORT_BUFFER_USHORT(
   IN PUSHORT Buffer,
   IN ULONG Count)
 {
-    __outwordstring((USHORT)(ULONG_PTR)Port, Buffer, Count);
+  __outwordstring((USHORT)(ULONG_PTR)Port, Buffer, Count);
 }
 
 FORCEINLINE
@@ -8750,7 +8684,7 @@ WRITE_PORT_UCHAR(
   IN PUCHAR Port,
   IN UCHAR Value)
 {
-    __outbyte((USHORT)(ULONG_PTR)Port, Value);
+  __outbyte((USHORT)(ULONG_PTR)Port, Value);
 }
 
 FORCEINLINE
@@ -8759,7 +8693,7 @@ WRITE_PORT_ULONG(
   IN PULONG Port,
   IN ULONG Value)
 {
-    __outdword((USHORT)(ULONG_PTR)Port, Value);
+  __outdword((USHORT)(ULONG_PTR)Port, Value);
 }
 
 FORCEINLINE
@@ -8768,7 +8702,7 @@ WRITE_PORT_USHORT(
   IN PUSHORT Port,
   IN USHORT Value)
 {
-    __outword((USHORT)(ULONG_PTR)Port, Value);
+  __outword((USHORT)(ULONG_PTR)Port, Value);
 }
 
 FORCEINLINE
@@ -8778,9 +8712,9 @@ WRITE_REGISTER_BUFFER_UCHAR(
   IN PUCHAR Buffer,
   IN ULONG Count)
 {
-    LONG Synch;
-    __movsb(Register, Buffer, Count);
-    InterlockedOr(&Synch, 1);
+  LONG Synch;
+  __movsb(Register, Buffer, Count);
+  InterlockedOr(&Synch, 1);
 }
 
 FORCEINLINE
@@ -8790,9 +8724,9 @@ WRITE_REGISTER_BUFFER_ULONG(
   IN PULONG Buffer,
   IN ULONG Count)
 {
-    LONG Synch;
-    __movsd(Register, Buffer, Count);
-    InterlockedOr(&Synch, 1);
+  LONG Synch;
+  __movsd(Register, Buffer, Count);
+  InterlockedOr(&Synch, 1);
 }
 
 FORCEINLINE
@@ -8802,9 +8736,9 @@ WRITE_REGISTER_BUFFER_USHORT(
   IN PUSHORT Buffer,
   IN ULONG Count)
 {
-    LONG Synch;
-    __movsw(Register, Buffer, Count);
-    InterlockedOr(&Synch, 1);
+  LONG Synch;
+  __movsw(Register, Buffer, Count);
+  InterlockedOr(&Synch, 1);
 }
 
 FORCEINLINE
@@ -8813,9 +8747,9 @@ WRITE_REGISTER_UCHAR(
   IN volatile UCHAR *Register,
   IN UCHAR Value)
 {
-    LONG Synch;
-    *Register = Value;
-    InterlockedOr(&Synch, 1);
+  LONG Synch;
+  *Register = Value;
+  InterlockedOr(&Synch, 1);
 }
 
 FORCEINLINE
@@ -8824,9 +8758,9 @@ WRITE_REGISTER_ULONG(
   IN volatile ULONG *Register,
   IN ULONG Value)
 {
-    LONG Synch;
-    *Register = Value;
-    InterlockedOr(&Synch, 1);
+  LONG Synch;
+  *Register = Value;
+  InterlockedOr(&Synch, 1);
 }
 
 FORCEINLINE
@@ -8835,9 +8769,9 @@ WRITE_REGISTER_USHORT(
   IN volatile USHORT *Register,
   IN USHORT Value)
 {
-    LONG Sync;
-    *Register = Value;
-    InterlockedOr(&Sync, 1);
+  LONG Sync;
+  *Register = Value;
+  InterlockedOr(&Sync, 1);
 }
 #endif
 
@@ -8849,111 +8783,113 @@ WRITE_REGISTER_USHORT(
 FORCEINLINE
 NTSTATUS
 IoAllocateAdapterChannel(
-    IN PDMA_ADAPTER DmaAdapter,
-    IN PDEVICE_OBJECT DeviceObject,
-    IN ULONG NumberOfMapRegisters,
-    IN PDRIVER_CONTROL ExecutionRoutine,
-    IN PVOID Context)
+  IN PDMA_ADAPTER DmaAdapter,
+  IN PDEVICE_OBJECT DeviceObject,
+  IN ULONG NumberOfMapRegisters,
+  IN PDRIVER_CONTROL ExecutionRoutine,
+  IN PVOID Context)
 {
-    PALLOCATE_ADAPTER_CHANNEL AllocateAdapterChannel;
-    AllocateAdapterChannel =
-        *(DmaAdapter)->DmaOperations->AllocateAdapterChannel;
-    ASSERT(AllocateAdapterChannel);
-    return AllocateAdapterChannel(DmaAdapter,
-                                  DeviceObject,
-                                  NumberOfMapRegisters,
-                                  ExecutionRoutine,
-                                  Context );
+  PALLOCATE_ADAPTER_CHANNEL AllocateAdapterChannel;
+  AllocateAdapterChannel =
+      *(DmaAdapter)->DmaOperations->AllocateAdapterChannel;
+  ASSERT(AllocateAdapterChannel);
+  return AllocateAdapterChannel(DmaAdapter,
+                                DeviceObject,
+                                NumberOfMapRegisters,
+                                ExecutionRoutine,
+                                Context );
 }
 
 FORCEINLINE
 BOOLEAN
 NTAPI
 IoFlushAdapterBuffers(
-    IN PDMA_ADAPTER DmaAdapter,
-    IN PMDL Mdl,
-    IN PVOID MapRegisterBase,
-    IN PVOID CurrentVa,
-    IN ULONG Length,
-    IN BOOLEAN WriteToDevice)
+  IN PDMA_ADAPTER DmaAdapter,
+  IN PMDL Mdl,
+  IN PVOID MapRegisterBase,
+  IN PVOID CurrentVa,
+  IN ULONG Length,
+  IN BOOLEAN WriteToDevice)
 {
-    PFLUSH_ADAPTER_BUFFERS FlushAdapterBuffers;
-    FlushAdapterBuffers = *(DmaAdapter)->DmaOperations->FlushAdapterBuffers;
-    ASSERT(FlushAdapterBuffers);
-    return FlushAdapterBuffers(DmaAdapter,
-                               Mdl,
-                               MapRegisterBase,
-                               CurrentVa,
-                               Length,
-                               WriteToDevice);
+  PFLUSH_ADAPTER_BUFFERS FlushAdapterBuffers;
+  FlushAdapterBuffers = *(DmaAdapter)->DmaOperations->FlushAdapterBuffers;
+  ASSERT(FlushAdapterBuffers);
+  return FlushAdapterBuffers(DmaAdapter,
+                             Mdl,
+                             MapRegisterBase,
+                             CurrentVa,
+                             Length,
+                             WriteToDevice);
 }
 
 FORCEINLINE
 VOID
 NTAPI
 IoFreeAdapterChannel(
-    IN PDMA_ADAPTER DmaAdapter)
+  IN PDMA_ADAPTER DmaAdapter)
 {
-    PFREE_ADAPTER_CHANNEL FreeAdapterChannel;
-    FreeAdapterChannel = *(DmaAdapter)->DmaOperations->FreeAdapterChannel;
-    ASSERT(FreeAdapterChannel);
-    FreeAdapterChannel(DmaAdapter);
+  PFREE_ADAPTER_CHANNEL FreeAdapterChannel;
+  FreeAdapterChannel = *(DmaAdapter)->DmaOperations->FreeAdapterChannel;
+  ASSERT(FreeAdapterChannel);
+  FreeAdapterChannel(DmaAdapter);
 }
 
 FORCEINLINE
 VOID
 NTAPI
 IoFreeMapRegisters(
-    IN PDMA_ADAPTER DmaAdapter,
-    IN PVOID MapRegisterBase,
-    IN ULONG NumberOfMapRegisters)
+  IN PDMA_ADAPTER DmaAdapter,
+  IN PVOID MapRegisterBase,
+  IN ULONG NumberOfMapRegisters)
 {
-    PFREE_MAP_REGISTERS FreeMapRegisters;
-    FreeMapRegisters = *(DmaAdapter)->DmaOperations->FreeMapRegisters;
-    ASSERT(FreeMapRegisters);
-    FreeMapRegisters(DmaAdapter, MapRegisterBase, NumberOfMapRegisters);
+  PFREE_MAP_REGISTERS FreeMapRegisters;
+  FreeMapRegisters = *(DmaAdapter)->DmaOperations->FreeMapRegisters;
+  ASSERT(FreeMapRegisters);
+  FreeMapRegisters(DmaAdapter, MapRegisterBase, NumberOfMapRegisters);
 }
 
 FORCEINLINE
 PHYSICAL_ADDRESS
 NTAPI
 IoMapTransfer(
-    IN PDMA_ADAPTER DmaAdapter,
-    IN PMDL Mdl,
-    IN PVOID MapRegisterBase,
-    IN PVOID CurrentVa,
-    IN OUT PULONG Length,
-    IN BOOLEAN WriteToDevice)
+  IN PDMA_ADAPTER DmaAdapter,
+  IN PMDL Mdl,
+  IN PVOID MapRegisterBase,
+  IN PVOID CurrentVa,
+  IN OUT PULONG Length,
+  IN BOOLEAN WriteToDevice)
 {
-    PMAP_TRANSFER MapTransfer;
-
-    MapTransfer = *(DmaAdapter)->DmaOperations->MapTransfer;
-    ASSERT(MapTransfer);
-    return MapTransfer(DmaAdapter,
-                       Mdl,
-                       MapRegisterBase,
-                       CurrentVa,
-                       Length,
-                       WriteToDevice);
+  PMAP_TRANSFER MapTransfer;
+
+  MapTransfer = *(DmaAdapter)->DmaOperations->MapTransfer;
+  ASSERT(MapTransfer);
+  return MapTransfer(DmaAdapter,
+                     Mdl,
+                     MapRegisterBase,
+                     CurrentVa,
+                     Length,
+                     WriteToDevice);
 }
 #endif
 
 #if (NTDDI_VERSION >= NTDDI_WIN2K)
+
 NTKERNELAPI
 VOID
 NTAPI
 IoAcquireCancelSpinLock(
-  OUT PKIRQL  Irql);
+  OUT PKIRQL Irql);
 
 NTKERNELAPI
 NTSTATUS
 NTAPI
 IoAcquireRemoveLockEx(
-  IN PIO_REMOVE_LOCK  RemoveLock,
-  IN PVOID  Tag  OPTIONAL,
-  IN PCSTR  File,
-  IN ULONG  Line,
-  IN ULONG  RemlockSize);
+  IN PIO_REMOVE_LOCK RemoveLock,
+  IN PVOID Tag OPTIONAL,
+  IN PCSTR File,
+  IN ULONG Line,
+  IN ULONG RemlockSize);
+
 #endif
 
 /*
@@ -8995,108 +8931,108 @@ NTKERNELAPI
 NTSTATUS
 NTAPI
 IoAllocateDriverObjectExtension(
-  IN PDRIVER_OBJECT  DriverObject,
-  IN PVOID  ClientIdentificationAddress,
-  IN ULONG  DriverObjectExtensionSize,
-  OUT PVOID  *DriverObjectExtension);
+  IN PDRIVER_OBJECT DriverObject,
+  IN PVOID ClientIdentificationAddress,
+  IN ULONG DriverObjectExtensionSize,
+  OUT PVOID *DriverObjectExtension);
 
 NTKERNELAPI
 PVOID
 NTAPI
 IoAllocateErrorLogEntry(
-  IN PVOID  IoObject,
-  IN UCHAR  EntrySize);
+  IN PVOID IoObject,
+  IN UCHAR EntrySize);
 
 NTKERNELAPI
 PIRP
 NTAPI
 IoAllocateIrp(
-  IN CCHAR  StackSize,
-  IN BOOLEAN  ChargeQuota);
+  IN CCHAR StackSize,
+  IN BOOLEAN ChargeQuota);
 
 NTKERNELAPI
 PMDL
 NTAPI
 IoAllocateMdl(
-  IN PVOID  VirtualAddress OPTIONAL,
-  IN ULONG  Length,
-  IN BOOLEAN  SecondaryBuffer,
-  IN BOOLEAN  ChargeQuota,
-  IN OUT PIRP  Irp  OPTIONAL);
+  IN PVOID VirtualAddress OPTIONAL,
+  IN ULONG Length,
+  IN BOOLEAN SecondaryBuffer,
+  IN BOOLEAN ChargeQuota,
+  IN OUT PIRP Irp OPTIONAL);
 
 NTKERNELAPI
 PIO_WORKITEM
 NTAPI
 IoAllocateWorkItem(
-  IN PDEVICE_OBJECT  DeviceObject);
+  IN PDEVICE_OBJECT DeviceObject);
 
 NTKERNELAPI
 NTSTATUS
 NTAPI
 IoAttachDevice(
-  IN PDEVICE_OBJECT  SourceDevice,
-  IN PUNICODE_STRING  TargetDevice,
-  OUT PDEVICE_OBJECT  *AttachedDevice);
+  IN PDEVICE_OBJECT SourceDevice,
+  IN PUNICODE_STRING TargetDevice,
+  OUT PDEVICE_OBJECT *AttachedDevice);
 
 NTKERNELAPI
 PDEVICE_OBJECT
 NTAPI
 IoAttachDeviceToDeviceStack(
-  IN PDEVICE_OBJECT  SourceDevice,
-  IN PDEVICE_OBJECT  TargetDevice);
+  IN PDEVICE_OBJECT SourceDevice,
+  IN PDEVICE_OBJECT TargetDevice);
 
 NTKERNELAPI
 PIRP
 NTAPI
 IoBuildAsynchronousFsdRequest(
-  IN ULONG  MajorFunction,
-  IN PDEVICE_OBJECT  DeviceObject,
-  IN OUT PVOID  Buffer  OPTIONAL,
-  IN ULONG  Length  OPTIONAL,
-  IN PLARGE_INTEGER  StartingOffset  OPTIONAL,
-  IN PIO_STATUS_BLOCK  IoStatusBlock  OPTIONAL);
+  IN ULONG MajorFunction,
+  IN PDEVICE_OBJECT DeviceObject,
+  IN OUT PVOID Buffer OPTIONAL,
+  IN ULONG Length OPTIONAL,
+  IN PLARGE_INTEGER StartingOffset OPTIONAL,
+  IN PIO_STATUS_BLOCK IoStatusBlock OPTIONAL);
 
 NTKERNELAPI
 PIRP
 NTAPI
 IoBuildDeviceIoControlRequest(
-  IN ULONG  IoControlCode,
-  IN PDEVICE_OBJECT  DeviceObject,
-  IN PVOID  InputBuffer  OPTIONAL,
-  IN ULONG  InputBufferLength,
-  OUT PVOID  OutputBuffer  OPTIONAL,
-  IN ULONG  OutputBufferLength,
-  IN BOOLEAN  InternalDeviceIoControl,
-  IN PKEVENT  Event,
-  OUT PIO_STATUS_BLOCK  IoStatusBlock);
+  IN ULONG IoControlCode,
+  IN PDEVICE_OBJECT DeviceObject,
+  IN PVOID InputBuffer OPTIONAL,
+  IN ULONG InputBufferLength,
+  OUT PVOID OutputBuffer OPTIONAL,
+  IN ULONG OutputBufferLength,
+  IN BOOLEAN InternalDeviceIoControl,
+  IN PKEVENT Event,
+  OUT PIO_STATUS_BLOCK IoStatusBlock);
 
 NTKERNELAPI
 VOID
 NTAPI
 IoBuildPartialMdl(
-  IN PMDL  SourceMdl,
-  IN OUT PMDL  TargetMdl,
-  IN PVOID  VirtualAddress,
-  IN ULONG  Length);
+  IN PMDL SourceMdl,
+  IN OUT PMDL TargetMdl,
+  IN PVOID VirtualAddress,
+  IN ULONG Length);
 
 NTKERNELAPI
 PIRP
 NTAPI
 IoBuildSynchronousFsdRequest(
-  IN ULONG  MajorFunction,
-  IN PDEVICE_OBJECT  DeviceObject,
-  IN OUT PVOID  Buffer  OPTIONAL,
-  IN ULONG  Length  OPTIONAL,
-  IN PLARGE_INTEGER  StartingOffset  OPTIONAL,
-  IN PKEVENT  Event,
-  OUT PIO_STATUS_BLOCK  IoStatusBlock);
+  IN ULONG MajorFunction,
+  IN PDEVICE_OBJECT DeviceObject,
+  IN OUT PVOID Buffer OPTIONAL,
+  IN ULONG Length OPTIONAL,
+  IN PLARGE_INTEGER StartingOffset OPTIONAL,
+  IN PKEVENT Event,
+  OUT PIO_STATUS_BLOCK IoStatusBlock);
 
 NTKERNELAPI
 NTSTATUS
 FASTCALL
 IofCallDriver(
-  IN PDEVICE_OBJECT  DeviceObject,
-  IN OUT PIRP  Irp);
+  IN PDEVICE_OBJECT DeviceObject,
+  IN OUT PIRP Irp);
 #define IoCallDriver IofCallDriver
 
 NTKERNELAPI
@@ -9111,52 +9047,52 @@ NTKERNELAPI
 BOOLEAN
 NTAPI
 IoCancelIrp(
-  IN PIRP  Irp);
+  IN PIRP Irp);
 
 NTKERNELAPI
 NTSTATUS
 NTAPI
 IoCheckShareAccess(
-  IN ACCESS_MASK  DesiredAccess,
-  IN ULONG  DesiredShareAccess,
-  IN OUT PFILE_OBJECT  FileObject,
-  IN OUT PSHARE_ACCESS  ShareAccess,
-  IN BOOLEAN  Update);
+  IN ACCESS_MASK DesiredAccess,
+  IN ULONG DesiredShareAccess,
+  IN OUT PFILE_OBJECT FileObject,
+  IN OUT PSHARE_ACCESS ShareAccess,
+  IN BOOLEAN Update);
 
 NTKERNELAPI
 VOID
 FASTCALL
 IofCompleteRequest(
-  IN PIRP  Irp,
-  IN CCHAR  PriorityBoost);
+  IN PIRP Irp,
+  IN CCHAR PriorityBoost);
 
 NTKERNELAPI
 NTSTATUS
 NTAPI
 IoConnectInterrupt(
-  OUT PKINTERRUPT  *InterruptObject,
-  IN PKSERVICE_ROUTINE  ServiceRoutine,
-  IN PVOID  ServiceContext OPTIONAL,
-  IN PKSPIN_LOCK  SpinLock  OPTIONAL,
-  IN ULONG  Vector,
-  IN KIRQL  Irql,
-  IN KIRQL  SynchronizeIrql,
-  IN KINTERRUPT_MODE    InterruptMode,
-  IN BOOLEAN  ShareVector,
-  IN KAFFINITY  ProcessorEnableMask,
-  IN BOOLEAN  FloatingSave);
+  OUT PKINTERRUPT *InterruptObject,
+  IN PKSERVICE_ROUTINE ServiceRoutine,
+  IN PVOID ServiceContext OPTIONAL,
+  IN PKSPIN_LOCK SpinLock OPTIONAL,
+  IN ULONG Vector,
+  IN KIRQL Irql,
+  IN KIRQL SynchronizeIrql,
+  IN KINTERRUPT_MODE InterruptMode,
+  IN BOOLEAN ShareVector,
+  IN KAFFINITY ProcessorEnableMask,
+  IN BOOLEAN FloatingSave);
 
 NTKERNELAPI
 NTSTATUS
 NTAPI
 IoCreateDevice(
-  IN PDRIVER_OBJECT  DriverObject,
-  IN ULONG  DeviceExtensionSize,
-  IN PUNICODE_STRING  DeviceName  OPTIONAL,
-  IN DEVICE_TYPE  DeviceType,
-  IN ULONG  DeviceCharacteristics,
-  IN BOOLEAN  Exclusive,
-  OUT PDEVICE_OBJECT  *DeviceObject);
+  IN PDRIVER_OBJECT DriverObject,
+  IN ULONG DeviceExtensionSize,
+  IN PUNICODE_STRING DeviceName OPTIONAL,
+  IN DEVICE_TYPE DeviceType,
+  IN ULONG DeviceCharacteristics,
+  IN BOOLEAN Exclusive,
+  OUT PDEVICE_OBJECT *DeviceObject);
 
 NTKERNELAPI
 NTSTATUS
@@ -9181,53 +9117,53 @@ NTKERNELAPI
 PKEVENT
 NTAPI
 IoCreateNotificationEvent(
-  IN PUNICODE_STRING  EventName,
-  OUT PHANDLE  EventHandle);
+  IN PUNICODE_STRING EventName,
+  OUT PHANDLE EventHandle);
 
 NTKERNELAPI
 NTSTATUS
 NTAPI
 IoCreateSymbolicLink(
-  IN PUNICODE_STRING  SymbolicLinkName,
-  IN PUNICODE_STRING  DeviceName);
+  IN PUNICODE_STRING SymbolicLinkName,
+  IN PUNICODE_STRING DeviceName);
 
 NTKERNELAPI
 PKEVENT
 NTAPI
 IoCreateSynchronizationEvent(
-  IN PUNICODE_STRING  EventName,
-  OUT PHANDLE  EventHandle);
+  IN PUNICODE_STRING EventName,
+  OUT PHANDLE EventHandle);
 
 NTKERNELAPI
 NTSTATUS
 NTAPI
 IoCreateUnprotectedSymbolicLink(
-  IN PUNICODE_STRING  SymbolicLinkName,
-  IN PUNICODE_STRING  DeviceName);
+  IN PUNICODE_STRING SymbolicLinkName,
+  IN PUNICODE_STRING DeviceName);
 
 NTKERNELAPI
 VOID
 NTAPI
 IoDeleteDevice(
-  IN PDEVICE_OBJECT  DeviceObject);
+  IN PDEVICE_OBJECT DeviceObject);
 
 NTKERNELAPI
 NTSTATUS
 NTAPI
 IoDeleteSymbolicLink(
-  IN PUNICODE_STRING  SymbolicLinkName);
+  IN PUNICODE_STRING SymbolicLinkName);
 
 NTKERNELAPI
 VOID
 NTAPI
 IoDetachDevice(
-  IN OUT PDEVICE_OBJECT  TargetDevice);
+  IN OUT PDEVICE_OBJECT TargetDevice);
 
 NTKERNELAPI
 VOID
 NTAPI
 IoDisconnectInterrupt(
-  IN PKINTERRUPT  InterruptObject);
+  IN PKINTERRUPT InterruptObject);
 
 NTKERNELAPI
 VOID
@@ -9257,359 +9193,357 @@ NTKERNELAPI
 PDEVICE_OBJECT
 NTAPI
 IoGetAttachedDeviceReference(
-  IN PDEVICE_OBJECT  DeviceObject);
+  IN PDEVICE_OBJECT DeviceObject);
 
 NTKERNELAPI
 NTSTATUS
 NTAPI
 IoGetBootDiskInformation(
-  IN OUT PBOOTDISK_INFORMATION  BootDiskInformation,
-  IN ULONG  Size);
+  IN OUT PBOOTDISK_INFORMATION BootDiskInformation,
+  IN ULONG Size);
 
 NTKERNELAPI
 NTSTATUS
 NTAPI
 IoGetDeviceInterfaceAlias(
-  IN PUNICODE_STRING  SymbolicLinkName,
-  IN CONST GUID  *AliasInterfaceClassGuid,
-  OUT PUNICODE_STRING  AliasSymbolicLinkName);
+  IN PUNICODE_STRING SymbolicLinkName,
+  IN CONST GUID *AliasInterfaceClassGuid,
+  OUT PUNICODE_STRING AliasSymbolicLinkName);
 
 NTKERNELAPI
 PEPROCESS
 NTAPI
-IoGetCurrentProcess(
-  VOID);
+IoGetCurrentProcess(VOID);
 
 NTKERNELAPI
 NTSTATUS
 NTAPI
 IoGetDeviceInterfaces(
-  IN CONST GUID  *InterfaceClassGuid,
-  IN PDEVICE_OBJECT  PhysicalDeviceObject  OPTIONAL,
-  IN ULONG  Flags,
-  OUT PWSTR  *SymbolicLinkList);
+  IN CONST GUID *InterfaceClassGuid,
+  IN PDEVICE_OBJECT PhysicalDeviceObject OPTIONAL,
+  IN ULONG Flags,
+  OUT PWSTR *SymbolicLinkList);
 
 NTKERNELAPI
 NTSTATUS
 NTAPI
 IoGetDeviceObjectPointer(
-  IN PUNICODE_STRING  ObjectName,
-  IN ACCESS_MASK  DesiredAccess,
-  OUT PFILE_OBJECT  *FileObject,
-  OUT PDEVICE_OBJECT  *DeviceObject);
+  IN PUNICODE_STRING ObjectName,
+  IN ACCESS_MASK DesiredAccess,
+  OUT PFILE_OBJECT *FileObject,
+  OUT PDEVICE_OBJECT *DeviceObject);
 
 NTKERNELAPI
 NTSTATUS
 NTAPI
 IoGetDeviceProperty(
-  IN PDEVICE_OBJECT  DeviceObject,
-  IN DEVICE_REGISTRY_PROPERTY  DeviceProperty,
-  IN ULONG  BufferLength,
-  OUT PVOID  PropertyBuffer,
-  OUT PULONG  ResultLength);
+  IN PDEVICE_OBJECT DeviceObject,
+  IN DEVICE_REGISTRY_PROPERTY DeviceProperty,
+  IN ULONG BufferLength,
+  OUT PVOID PropertyBuffer,
+  OUT PULONG ResultLength);
 
 NTKERNELAPI
 PDMA_ADAPTER
 NTAPI
 IoGetDmaAdapter(
-  IN PDEVICE_OBJECT  PhysicalDeviceObject OPTIONAL,
-  IN PDEVICE_DESCRIPTION  DeviceDescription,
-  IN OUT PULONG  NumberOfMapRegisters);
+  IN PDEVICE_OBJECT PhysicalDeviceObject OPTIONAL,
+  IN PDEVICE_DESCRIPTION DeviceDescription,
+  IN OUT PULONG NumberOfMapRegisters);
 
 NTKERNELAPI
 PVOID
 NTAPI
 IoGetDriverObjectExtension(
-  IN PDRIVER_OBJECT  DriverObject,
-  IN PVOID  ClientIdentificationAddress);
+  IN PDRIVER_OBJECT DriverObject,
+  IN PVOID ClientIdentificationAddress);
 
 NTKERNELAPI
 PVOID
 NTAPI
-IoGetInitialStack(
-  VOID);
+IoGetInitialStack(VOID);
 
 NTKERNELAPI
 PDEVICE_OBJECT
 NTAPI
 IoGetRelatedDeviceObject(
-  IN PFILE_OBJECT  FileObject);
+  IN PFILE_OBJECT FileObject);
 
 NTKERNELAPI
 VOID
 NTAPI
 IoQueueWorkItem(
-  IN PIO_WORKITEM  IoWorkItem,
-  IN PIO_WORKITEM_ROUTINE  WorkerRoutine,
-  IN WORK_QUEUE_TYPE  QueueType,
-  IN PVOID  Context OPTIONAL);
+  IN PIO_WORKITEM IoWorkItem,
+  IN PIO_WORKITEM_ROUTINE WorkerRoutine,
+  IN WORK_QUEUE_TYPE QueueType,
+  IN PVOID Context OPTIONAL);
 
 NTKERNELAPI
 VOID
 NTAPI
 IoInitializeIrp(
-  IN OUT PIRP  Irp,
-  IN USHORT  PacketSize,
-  IN CCHAR  StackSize);
+  IN OUT PIRP Irp,
+  IN USHORT PacketSize,
+  IN CCHAR StackSize);
 
 NTKERNELAPI
 VOID
 NTAPI
 IoInitializeRemoveLockEx(
-  IN  PIO_REMOVE_LOCK Lock,
-  IN  ULONG   AllocateTag,
-  IN  ULONG   MaxLockedMinutes,
-  IN  ULONG   HighWatermark,
-  IN  ULONG   RemlockSize);
+  IN PIO_REMOVE_LOCK Lock,
+  IN ULONG AllocateTag,
+  IN ULONG MaxLockedMinutes,
+  IN ULONG HighWatermark,
+  IN ULONG RemlockSize);
 
 NTKERNELAPI
 NTSTATUS
 NTAPI
 IoInitializeTimer(
-  IN PDEVICE_OBJECT  DeviceObject,
-  IN PIO_TIMER_ROUTINE  TimerRoutine,
-  IN PVOID  Context OPTIONAL);
+  IN PDEVICE_OBJECT DeviceObject,
+  IN PIO_TIMER_ROUTINE TimerRoutine,
+  IN PVOID Context OPTIONAL);
 
 NTKERNELAPI
 VOID
 NTAPI
 IoInvalidateDeviceRelations(
-  IN PDEVICE_OBJECT  DeviceObject,
-  IN DEVICE_RELATION_TYPE  Type);
+  IN PDEVICE_OBJECT DeviceObject,
+  IN DEVICE_RELATION_TYPE Type);
 
 NTKERNELAPI
 VOID
 NTAPI
 IoInvalidateDeviceState(
-  IN PDEVICE_OBJECT  PhysicalDeviceObject);
+  IN PDEVICE_OBJECT PhysicalDeviceObject);
 
 NTKERNELAPI
 BOOLEAN
 NTAPI
 IoIsWdmVersionAvailable(
-  IN UCHAR  MajorVersion,
-  IN UCHAR  MinorVersion);
+  IN UCHAR MajorVersion,
+  IN UCHAR MinorVersion);
 
 NTKERNELAPI
 NTSTATUS
 NTAPI
 IoOpenDeviceInterfaceRegistryKey(
-  IN PUNICODE_STRING  SymbolicLinkName,
-  IN ACCESS_MASK  DesiredAccess,
-  OUT PHANDLE  DeviceInterfaceKey);
+  IN PUNICODE_STRING SymbolicLinkName,
+  IN ACCESS_MASK DesiredAccess,
+  OUT PHANDLE DeviceInterfaceKey);
 
 NTKERNELAPI
 NTSTATUS
 NTAPI
 IoOpenDeviceRegistryKey(
-  IN PDEVICE_OBJECT  DeviceObject,
-  IN ULONG  DevInstKeyType,
-  IN ACCESS_MASK  DesiredAccess,
-  OUT PHANDLE  DevInstRegKey);
+  IN PDEVICE_OBJECT DeviceObject,
+  IN ULONG DevInstKeyType,
+  IN ACCESS_MASK DesiredAccess,
+  OUT PHANDLE DevInstRegKey);
 
 NTKERNELAPI
 NTSTATUS
 NTAPI
 IoRegisterDeviceInterface(
-  IN PDEVICE_OBJECT  PhysicalDeviceObject,
-  IN CONST GUID  *InterfaceClassGuid,
-  IN PUNICODE_STRING  ReferenceString  OPTIONAL,
-  OUT PUNICODE_STRING  SymbolicLinkName);
+  IN PDEVICE_OBJECT PhysicalDeviceObject,
+  IN CONST GUID *InterfaceClassGuid,
+  IN PUNICODE_STRING ReferenceString OPTIONAL,
+  OUT PUNICODE_STRING SymbolicLinkName);
 
 NTKERNELAPI
 NTSTATUS
 NTAPI
 IoRegisterPlugPlayNotification(
-  IN IO_NOTIFICATION_EVENT_CATEGORY  EventCategory,
-  IN ULONG  EventCategoryFlags,
-  IN PVOID  EventCategoryData  OPTIONAL,
-  IN PDRIVER_OBJECT  DriverObject,
-  IN PDRIVER_NOTIFICATION_CALLBACK_ROUTINE  CallbackRoutine,
-  IN OUT PVOID  Context OPTIONAL,
-  OUT PVOID  *NotificationEntry);
+  IN IO_NOTIFICATION_EVENT_CATEGORY EventCategory,
+  IN ULONG EventCategoryFlags,
+  IN PVOID EventCategoryData OPTIONAL,
+  IN PDRIVER_OBJECT DriverObject,
+  IN PDRIVER_NOTIFICATION_CALLBACK_ROUTINE CallbackRoutine,
+  IN OUT PVOID Context OPTIONAL,
+  OUT PVOID *NotificationEntry);
 
 NTKERNELAPI
 NTSTATUS
 NTAPI
 IoRegisterShutdownNotification(
-  IN PDEVICE_OBJECT  DeviceObject);
+  IN PDEVICE_OBJECT DeviceObject);
 
 NTKERNELAPI
 VOID
 NTAPI
 IoReleaseCancelSpinLock(
-  IN KIRQL  Irql);
+  IN KIRQL Irql);
 
 NTKERNELAPI
 VOID
 NTAPI
 IoReleaseRemoveLockAndWaitEx(
-  IN PIO_REMOVE_LOCK  RemoveLock,
-  IN PVOID  Tag OPTIONAL,
-  IN ULONG  RemlockSize);
+  IN PIO_REMOVE_LOCK RemoveLock,
+  IN PVOID Tag OPTIONAL,
+  IN ULONG RemlockSize);
 
 NTKERNELAPI
 VOID
 NTAPI
 IoReleaseRemoveLockEx(
-  IN PIO_REMOVE_LOCK  RemoveLock,
-  IN PVOID  Tag OPTIONAL,
-  IN ULONG  RemlockSize);
+  IN PIO_REMOVE_LOCK RemoveLock,
+  IN PVOID Tag OPTIONAL,
+  IN ULONG RemlockSize);
 
 NTKERNELAPI
 VOID
 NTAPI
 IoRemoveShareAccess(
-  IN PFILE_OBJECT  FileObject,
-  IN OUT PSHARE_ACCESS  ShareAccess);
+  IN PFILE_OBJECT FileObject,
+  IN OUT PSHARE_ACCESS ShareAccess);
 
 NTKERNELAPI
 NTSTATUS
 NTAPI
 IoReportTargetDeviceChange(
-  IN PDEVICE_OBJECT  PhysicalDeviceObject,
-  IN PVOID  NotificationStructure);
+  IN PDEVICE_OBJECT PhysicalDeviceObject,
+  IN PVOID NotificationStructure);
 
 NTKERNELAPI
 NTSTATUS
 NTAPI
 IoReportTargetDeviceChangeAsynchronous(
-  IN PDEVICE_OBJECT  PhysicalDeviceObject,
-  IN PVOID  NotificationStructure,
-  IN PDEVICE_CHANGE_COMPLETE_CALLBACK  Callback  OPTIONAL,
-  IN PVOID  Context  OPTIONAL);
+  IN PDEVICE_OBJECT PhysicalDeviceObject,
+  IN PVOID NotificationStructure,
+  IN PDEVICE_CHANGE_COMPLETE_CALLBACK Callback OPTIONAL,
+  IN PVOID Context OPTIONAL);
 
 NTKERNELAPI
 VOID
 NTAPI
 IoRequestDeviceEject(
-  IN PDEVICE_OBJECT  PhysicalDeviceObject);
+  IN PDEVICE_OBJECT PhysicalDeviceObject);
 
 NTKERNELAPI
 VOID
 NTAPI
 IoReuseIrp(
-  IN OUT PIRP  Irp,
-  IN NTSTATUS  Status);
+  IN OUT PIRP Irp,
+  IN NTSTATUS Status);
 
 NTKERNELAPI
 NTSTATUS
 NTAPI
 IoSetDeviceInterfaceState(
-  IN PUNICODE_STRING  SymbolicLinkName,
-  IN BOOLEAN  Enable);
+  IN PUNICODE_STRING SymbolicLinkName,
+  IN BOOLEAN Enable);
 
 NTKERNELAPI
 VOID
 NTAPI
 IoSetShareAccess(
-  IN ACCESS_MASK  DesiredAccess,
-  IN ULONG  DesiredShareAccess,
-  IN OUT PFILE_OBJECT  FileObject,
-  OUT PSHARE_ACCESS  ShareAccess);
+  IN ACCESS_MASK DesiredAccess,
+  IN ULONG DesiredShareAccess,
+  IN OUT PFILE_OBJECT FileObject,
+  OUT PSHARE_ACCESS ShareAccess);
 
 NTKERNELAPI
 VOID
 NTAPI
 IoStartNextPacket(
-  IN PDEVICE_OBJECT  DeviceObject,
-  IN BOOLEAN  Cancelable);
+  IN PDEVICE_OBJECT DeviceObject,
+  IN BOOLEAN Cancelable);
 
 NTKERNELAPI
 VOID
 NTAPI
 IoStartNextPacketByKey(
-  IN PDEVICE_OBJECT  DeviceObject,
-  IN BOOLEAN  Cancelable,
-  IN ULONG  Key);
+  IN PDEVICE_OBJECT DeviceObject,
+  IN BOOLEAN Cancelable,
+  IN ULONG Key);
 
 NTKERNELAPI
 VOID
 NTAPI
 IoStartPacket(
-  IN PDEVICE_OBJECT  DeviceObject,
-  IN PIRP  Irp,
-  IN PULONG  Key  OPTIONAL,
-  IN PDRIVER_CANCEL  CancelFunction  OPTIONAL);
+  IN PDEVICE_OBJECT DeviceObject,
+  IN PIRP Irp,
+  IN PULONG Key OPTIONAL,
+  IN PDRIVER_CANCEL CancelFunction OPTIONAL);
 
 NTKERNELAPI
 VOID
 NTAPI
 IoStartTimer(
-  IN PDEVICE_OBJECT  DeviceObject);
+  IN PDEVICE_OBJECT DeviceObject);
 
 NTKERNELAPI
 VOID
 NTAPI
 IoStopTimer(
-  IN PDEVICE_OBJECT  DeviceObject);
+  IN PDEVICE_OBJECT DeviceObject);
 
 NTKERNELAPI
 NTSTATUS
 NTAPI
 IoUnregisterPlugPlayNotification(
-  IN PVOID  NotificationEntry);
+  IN PVOID NotificationEntry);
 
 NTKERNELAPI
 VOID
 NTAPI
 IoUnregisterShutdownNotification(
-  IN PDEVICE_OBJECT  DeviceObject);
+  IN PDEVICE_OBJECT DeviceObject);
 
 NTKERNELAPI
 VOID
 NTAPI
 IoUpdateShareAccess(
-  IN PFILE_OBJECT  FileObject,
-  IN OUT PSHARE_ACCESS  ShareAccess);
+  IN PFILE_OBJECT FileObject,
+  IN OUT PSHARE_ACCESS ShareAccess);
 
 NTKERNELAPI
 NTSTATUS
 NTAPI
 IoWMIAllocateInstanceIds(
-  IN GUID  *Guid,
-  IN ULONG  InstanceCount,
-  OUT ULONG  *FirstInstanceId);
+  IN GUID *Guid,
+  IN ULONG InstanceCount,
+  OUT ULONG *FirstInstanceId);
 
 NTKERNELAPI
 NTSTATUS
 NTAPI
 IoWMIQuerySingleInstanceMultiple(
-  IN PVOID  *DataBlockObjectList,
-  IN PUNICODE_STRING  InstanceNames,
-  IN ULONG  ObjectCount,
-  IN OUT ULONG  *InOutBufferSize,
-  OUT PVOID  OutBuffer);
+  IN PVOID *DataBlockObjectList,
+  IN PUNICODE_STRING InstanceNames,
+  IN ULONG ObjectCount,
+  IN OUT ULONG *InOutBufferSize,
+  OUT PVOID OutBuffer);
 
 NTKERNELAPI
 NTSTATUS
 NTAPI
 IoWMIRegistrationControl(
-  IN PDEVICE_OBJECT  DeviceObject,
-  IN ULONG  Action);
+  IN PDEVICE_OBJECT DeviceObject,
+  IN ULONG Action);
 
 NTKERNELAPI
 NTSTATUS
 NTAPI
 IoWMISuggestInstanceName(
-  IN PDEVICE_OBJECT  PhysicalDeviceObject OPTIONAL,
-  IN PUNICODE_STRING  SymbolicLinkName OPTIONAL,
-  IN BOOLEAN  CombineNames,
-  OUT PUNICODE_STRING  SuggestedInstanceName);
+  IN PDEVICE_OBJECT PhysicalDeviceObject OPTIONAL,
+  IN PUNICODE_STRING SymbolicLinkName OPTIONAL,
+  IN BOOLEAN CombineNames,
+  OUT PUNICODE_STRING SuggestedInstanceName);
 
 NTKERNELAPI
 NTSTATUS
 NTAPI
 IoWMIWriteEvent(
-  IN PVOID  WnodeEventItem);
+  IN PVOID WnodeEventItem);
 
 NTKERNELAPI
 VOID
 NTAPI
 IoWriteErrorLogEntry(
-  IN PVOID  ElEntry);
+  IN PVOID ElEntry);
 
-#endif
+#endif /* (NTDDI_VERSION >= NTDDI_WIN2K) */
 
 #if (NTDDI_VERSION >= NTDDI_WINXP)
 
@@ -9644,15 +9578,15 @@ NTKERNELAPI
 PIRP
 NTAPI
 IoCsqRemoveNextIrp(
-  IN PIO_CSQ  Csq,
-  IN PVOID  PeekContext);
+  IN PIO_CSQ Csq,
+  IN PVOID PeekContext);
 
 NTKERNELAPI
 BOOLEAN
 NTAPI
 IoForwardIrpSynchronously(
-  IN PDEVICE_OBJECT  DeviceObject,
-  IN PIRP  Irp);
+  IN PDEVICE_OBJECT DeviceObject,
+  IN PIRP Irp);
 
 #define IoForwardAndCatchIrp IoForwardIrpSynchronously
 
@@ -9660,118 +9594,118 @@ NTKERNELAPI
 VOID
 NTAPI
 IoFreeErrorLogEntry(
-  PVOID  ElEntry);
+  PVOID ElEntry);
 
 NTKERNELAPI
 NTSTATUS
 NTAPI
 IoSetCompletionRoutineEx(
-  IN PDEVICE_OBJECT  DeviceObject,
-  IN PIRP  Irp,
-  IN PIO_COMPLETION_ROUTINE  CompletionRoutine,
-  IN PVOID  Context,
-  IN BOOLEAN  InvokeOnSuccess,
-  IN BOOLEAN  InvokeOnError,
-  IN BOOLEAN  InvokeOnCancel);
+  IN PDEVICE_OBJECT DeviceObject,
+  IN PIRP Irp,
+  IN PIO_COMPLETION_ROUTINE CompletionRoutine,
+  IN PVOID Context,
+  IN BOOLEAN InvokeOnSuccess,
+  IN BOOLEAN InvokeOnError,
+  IN BOOLEAN InvokeOnCancel);
 
 VOID
 NTAPI
 IoSetStartIoAttributes(
-  IN PDEVICE_OBJECT  DeviceObject,
-  IN BOOLEAN  DeferredStartIo,
-  IN BOOLEAN  NonCancelable);
+  IN PDEVICE_OBJECT DeviceObject,
+  IN BOOLEAN DeferredStartIo,
+  IN BOOLEAN NonCancelable);
 
 NTKERNELAPI
 NTSTATUS
 NTAPI
 IoWMIDeviceObjectToInstanceName(
-  IN PVOID  DataBlockObject,
-  IN PDEVICE_OBJECT  DeviceObject,
-  OUT PUNICODE_STRING  InstanceName);
+  IN PVOID DataBlockObject,
+  IN PDEVICE_OBJECT DeviceObject,
+  OUT PUNICODE_STRING InstanceName);
 
 NTKERNELAPI
 NTSTATUS
 NTAPI
 IoWMIExecuteMethod(
-  IN PVOID  DataBlockObject,
-  IN PUNICODE_STRING  InstanceName,
-  IN ULONG  MethodId,
-  IN ULONG  InBufferSize,
-  IN OUT PULONG  OutBufferSize,
-  IN OUT  PUCHAR  InOutBuffer);
+  IN PVOID DataBlockObject,
+  IN PUNICODE_STRING InstanceName,
+  IN ULONG MethodId,
+  IN ULONG InBufferSize,
+  IN OUT PULONG OutBufferSize,
+  IN OUT  PUCHAR InOutBuffer);
 
 NTKERNELAPI
 NTSTATUS
 NTAPI
 IoWMIHandleToInstanceName(
-  IN PVOID  DataBlockObject,
-  IN HANDLE  FileHandle,
-  OUT PUNICODE_STRING  InstanceName);
+  IN PVOID DataBlockObject,
+  IN HANDLE FileHandle,
+  OUT PUNICODE_STRING InstanceName);
 
 NTKERNELAPI
 NTSTATUS
 NTAPI
 IoWMIOpenBlock(
-  IN GUID  *DataBlockGuid,
-  IN ULONG  DesiredAccess,
-  OUT PVOID  *DataBlockObject);
+  IN GUID *DataBlockGuid,
+  IN ULONG DesiredAccess,
+  OUT PVOID *DataBlockObject);
 
 NTKERNELAPI
 NTSTATUS
 NTAPI
 IoWMIQueryAllData(
-  IN PVOID  DataBlockObject,
-  IN OUT ULONG  *InOutBufferSize,
-  OUT PVOID  OutBuffer);
+  IN PVOID DataBlockObject,
+  IN OUT ULONG *InOutBufferSize,
+  OUT PVOID OutBuffer);
 
 NTKERNELAPI
 NTSTATUS
 NTAPI
 IoWMIQueryAllDataMultiple(
-  IN PVOID  *DataBlockObjectList,
-  IN ULONG  ObjectCount,
-  IN OUT ULONG  *InOutBufferSize,
-  OUT PVOID  OutBuffer);
+  IN PVOID *DataBlockObjectList,
+  IN ULONG ObjectCount,
+  IN OUT ULONG *InOutBufferSize,
+  OUT PVOID OutBuffer);
 
 NTKERNELAPI
 NTSTATUS
 NTAPI
 IoWMIQuerySingleInstance(
-  IN PVOID  DataBlockObject,
-  IN PUNICODE_STRING  InstanceName,
-  IN OUT ULONG  *InOutBufferSize,
+  IN PVOID DataBlockObject,
+  IN PUNICODE_STRING InstanceName,
+  IN OUT ULONG *InOutBufferSize,
   OUT PVOID OutBuffer);
 
 NTKERNELAPI
 NTSTATUS
 NTAPI
 IoWMISetNotificationCallback(
-  IN OUT PVOID  Object,
-  IN WMI_NOTIFICATION_CALLBACK  Callback,
-  IN PVOID  Context OPTIONAL);
+  IN OUT PVOID Object,
+  IN WMI_NOTIFICATION_CALLBACK Callback,
+  IN PVOID Context OPTIONAL);
 
 NTKERNELAPI
 NTSTATUS
 NTAPI
 IoWMISetSingleInstance(
-  IN PVOID  DataBlockObject,
-  IN PUNICODE_STRING  InstanceName,
-  IN ULONG  Version,
-  IN ULONG  ValueBufferSize,
-  IN PVOID  ValueBuffer);
+  IN PVOID DataBlockObject,
+  IN PUNICODE_STRING InstanceName,
+  IN ULONG Version,
+  IN ULONG ValueBufferSize,
+  IN PVOID ValueBuffer);
 
 NTKERNELAPI
 NTSTATUS
 NTAPI
 IoWMISetSingleItem(
-  IN PVOID  DataBlockObject,
-  IN PUNICODE_STRING  InstanceName,
-  IN ULONG  DataItemId,
-  IN ULONG  Version,
-  IN ULONG  ValueBufferSize,
-  IN PVOID  ValueBuffer);
+  IN PVOID DataBlockObject,
+  IN PUNICODE_STRING InstanceName,
+  IN ULONG DataItemId,
+  IN ULONG Version,
+  IN ULONG ValueBufferSize,
+  IN PVOID ValueBuffer);
 
-#endif
+#endif /* (NTDDI_VERSION >= NTDDI_WINXP) */
 
 #if defined(_WIN64)
 NTKERNELAPI
@@ -9793,7 +9727,7 @@ IoWMIDeviceObjectToProviderId(
 
 FORCEINLINE
 VOID
-IoSkipCurrentIrpStackLocation (
+IoSkipCurrentIrpStackLocation(
   IN OUT PIRP Irp)
 {
   ASSERT(Irp->CurrentLocation <= Irp->StackCount);
@@ -9803,7 +9737,7 @@ IoSkipCurrentIrpStackLocation (
 
 FORCEINLINE
 VOID
-IoSetNextIrpStackLocation (
+IoSetNextIrpStackLocation(
   IN OUT PIRP Irp)
 {
   ASSERT(Irp->CurrentLocation > 0);
@@ -9892,12 +9826,10 @@ IoSetCompletionRoutine(
   IoReleaseRemoveLockAndWaitEx(_RemoveLock, _Tag, sizeof(IO_REMOVE_LOCK))
 
 #if defined(_WIN64)
-
 NTKERNELAPI
 BOOLEAN
 IoIs32bitProcess(
-  IN PIRP  Irp  OPTIONAL);
-
+  IN PIRP Irp OPTIONAL);
 #endif
 
 #define PLUGPLAY_REGKEY_DEVICE                            1
@@ -9985,13 +9917,12 @@ NTKERNELAPI
 VOID
 NTAPI
 IoGetStackLimits(
-  OUT PULONG_PTR  LowLimit,
-  OUT PULONG_PTR  HighLimit);
+  OUT PULONG_PTR LowLimit,
+  OUT PULONG_PTR HighLimit);
 
 FORCEINLINE
 ULONG_PTR
-IoGetRemainingStackSize(
-  VOID)
+IoGetRemainingStackSize(VOID)
 {
   ULONG_PTR End, Begin;
   ULONG_PTR Result;
@@ -10013,17 +9944,17 @@ NTKERNELAPI
 NTSTATUS
 NTAPI
 PoCallDriver(
-  IN struct _DEVICE_OBJECT  *DeviceObject,
-  IN OUT struct _IRP  *Irp);
+  IN struct _DEVICE_OBJECT *DeviceObject,
+  IN OUT struct _IRP *Irp);
 
 NTKERNELAPI
 PULONG
 NTAPI
 PoRegisterDeviceForIdleDetection(
-  IN struct _DEVICE_OBJECT  *DeviceObject,
-  IN ULONG  ConservationIdleTime,
-  IN ULONG  PerformanceIdleTime,
-  IN DEVICE_POWER_STATE  State);
+  IN struct _DEVICE_OBJECT *DeviceObject,
+  IN ULONG ConservationIdleTime,
+  IN ULONG PerformanceIdleTime,
+  IN DEVICE_POWER_STATE State);
 
 NTKERNELAPI
 PVOID
@@ -10036,26 +9967,26 @@ NTKERNELAPI
 NTSTATUS
 NTAPI
 PoRequestPowerIrp(
-  IN struct _DEVICE_OBJECT  *DeviceObject,
-  IN UCHAR  MinorFunction,
-  IN POWER_STATE  PowerState,
-  IN PREQUEST_POWER_COMPLETE  CompletionFunction OPTIONAL,
-  IN PVOID  Context OPTIONAL,
-  OUT struct _IRP  **Irp OPTIONAL);
+  IN struct _DEVICE_OBJECT *DeviceObject,
+  IN UCHAR MinorFunction,
+  IN POWER_STATE PowerState,
+  IN PREQUEST_POWER_COMPLETE CompletionFunction OPTIONAL,
+  IN PVOID Context OPTIONAL,
+  OUT struct _IRP **Irp OPTIONAL);
 
 NTKERNELAPI
 POWER_STATE
 NTAPI
 PoSetPowerState(
-  IN struct _DEVICE_OBJECT  *DeviceObject,
-  IN POWER_STATE_TYPE  Type,
-  IN POWER_STATE  State);
+  IN struct _DEVICE_OBJECT *DeviceObject,
+  IN POWER_STATE_TYPE Type,
+  IN POWER_STATE State);
 
 NTKERNELAPI
 VOID
 NTAPI
 PoSetSystemState(
-  IN EXECUTION_STATE  Flags);
+  IN EXECUTION_STATE Flags);
 
 NTKERNELAPI
 VOID
@@ -10110,16 +10041,15 @@ PoUnregisterPowerSettingCallback(
 #endif /* (NTDDI_VERSION >= NTDDI_VISTA) */
 
 #if (NTDDI_VERSION >= NTDDI_VISTASP1)
-
 NTKERNELAPI
 VOID
 NTAPI
 PoSetDeviceBusyEx(
   IN OUT PULONG IdlePointer);
-
 #endif /* (NTDDI_VERSION >= NTDDI_VISTASP1) */
 
 #if (NTDDI_VERSION >= NTDDI_WIN7)
+
 NTKERNELAPI
 VOID
 NTAPI
@@ -10210,25 +10140,25 @@ FORCEINLINE
 USHORT
 ExQueryDepthSList(IN PSLIST_HEADER ListHead)
 {
-    return (USHORT)(ListHead->Alignment & 0xffff);
+  return (USHORT)(ListHead->Alignment & 0xffff);
 }
 #endif
 
 NTKERNELAPI
 PSLIST_ENTRY
 ExpInterlockedFlushSList(
-    PSLIST_HEADER ListHead);
+  PSLIST_HEADER ListHead);
 
 NTKERNELAPI
 PSLIST_ENTRY
 ExpInterlockedPopEntrySList(
-    PSLIST_HEADER ListHead);
+  PSLIST_HEADER ListHead);
 
 NTKERNELAPI
 PSLIST_ENTRY
 ExpInterlockedPushEntrySList(
-    PSLIST_HEADER ListHead,
-    PSLIST_ENTRY ListEntry);
+  PSLIST_HEADER ListHead,
+  PSLIST_ENTRY ListEntry);
 
 #define ExInterlockedFlushSList(Head) \
     ExpInterlockedFlushSList(Head)
@@ -10237,7 +10167,7 @@ ExpInterlockedPushEntrySList(
 #define ExInterlockedPushEntrySList(Head, Entry, Lock) \
     ExpInterlockedPushEntrySList(Head, Entry)
 
-#else // !defined(_WIN64)
+#else /* !defined(_WIN64) */
 
 #define ExQueryDepthSList(listhead) (listhead)->Depth
 
@@ -10245,31 +10175,31 @@ NTKERNELAPI
 PSINGLE_LIST_ENTRY
 FASTCALL
 ExInterlockedFlushSList(
-    IN PSLIST_HEADER ListHead);
+  IN PSLIST_HEADER ListHead);
 
 #if defined(_WIN2K_COMPAT_SLIST_USAGE) && defined(_X86_)
 NTKERNELAPI
 PSINGLE_LIST_ENTRY 
 FASTCALL
 ExInterlockedPopEntrySList(
-    IN PSLIST_HEADER ListHead,
-    IN PKSPIN_LOCK Lock);
+  IN PSLIST_HEADER ListHead,
+  IN PKSPIN_LOCK Lock);
 
 NTKERNELAPI
 PSINGLE_LIST_ENTRY 
 FASTCALL
 ExInterlockedPushEntrySList(
-    IN PSLIST_HEADER ListHead,
-    IN PSINGLE_LIST_ENTRY ListEntry,
-    IN PKSPIN_LOCK Lock);
+  IN PSLIST_HEADER ListHead,
+  IN PSINGLE_LIST_ENTRY ListEntry,
+  IN PKSPIN_LOCK Lock);
 #else
 #define ExInterlockedPopEntrySList(_ListHead, _Lock) \
     InterlockedPopEntrySList(_ListHead)
 #define ExInterlockedPushEntrySList(_ListHead, _ListEntry, _Lock) \
     InterlockedPushEntrySList(_ListHead, _ListEntry)
-#endif // _WIN2K_COMPAT_SLIST_USAGE
+#endif /* _WIN2K_COMPAT_SLIST_USAGE */
 
-#endif // !defined(_WIN64)
+#endif /* !defined(_WIN64) */
 
 /* ERESOURCE_THREAD
  * ExGetCurrentResourceThread(
@@ -10310,66 +10240,66 @@ NTKERNELAPI
 VOID
 FASTCALL
 ExAcquireFastMutex(
-    IN OUT PFAST_MUTEX FastMutex);
+  IN OUT PFAST_MUTEX FastMutex);
 
 NTKERNELAPI
 VOID
 FASTCALL
 ExReleaseFastMutex(
-    IN OUT PFAST_MUTEX FastMutex);
+  IN OUT PFAST_MUTEX FastMutex);
 
 NTKERNELAPI
 BOOLEAN
 FASTCALL
 ExTryToAcquireFastMutex(
-    IN OUT PFAST_MUTEX FastMutex);
+  IN OUT PFAST_MUTEX FastMutex);
 
 NTKERNELAPI
 VOID
 FASTCALL
 ExAcquireFastMutexUnsafe(
-    IN OUT PFAST_MUTEX FastMutex);
+  IN OUT PFAST_MUTEX FastMutex);
 
 NTKERNELAPI
 VOID
 FASTCALL
 ExReleaseFastMutexUnsafe(
-    IN OUT PFAST_MUTEX FastMutex);
+  IN OUT PFAST_MUTEX FastMutex);
 
 NTKERNELAPI
 BOOLEAN
 NTAPI
 ExAcquireResourceExclusiveLite(
-    IN PERESOURCE Resource,
-    IN BOOLEAN Wait);
+  IN PERESOURCE Resource,
+  IN BOOLEAN Wait);
 
 NTKERNELAPI
 BOOLEAN
 NTAPI
 ExAcquireResourceSharedLite(
-    IN PERESOURCE Resource,
-    IN BOOLEAN Wait);
+  IN PERESOURCE Resource,
+  IN BOOLEAN Wait);
 
 NTKERNELAPI
 BOOLEAN
 NTAPI
 ExAcquireSharedStarveExclusive(
-    IN PERESOURCE Resource,
-    IN BOOLEAN Wait);
+  IN PERESOURCE Resource,
+  IN BOOLEAN Wait);
 
 NTKERNELAPI
 BOOLEAN
 NTAPI
 ExAcquireSharedWaitForExclusive(
-    IN PERESOURCE Resource,
-    IN BOOLEAN Wait);
+  IN PERESOURCE Resource,
+  IN BOOLEAN Wait);
 
 NTKERNELAPI
 PVOID
 NTAPI
 ExAllocatePool(
-    IN POOL_TYPE PoolType,
-    IN SIZE_T NumberOfBytes);
+  IN POOL_TYPE PoolType,
+  IN SIZE_T NumberOfBytes);
 
 #ifdef POOL_TAGGING
 #define ExAllocatePool(p,n) ExAllocatePoolWithTag(p,n,' kdD')
@@ -10379,8 +10309,8 @@ NTKERNELAPI
 PVOID
 NTAPI
 ExAllocatePoolWithQuota(
-    IN POOL_TYPE PoolType,
-    IN SIZE_T NumberOfBytes);
+  IN POOL_TYPE PoolType,
+  IN SIZE_T NumberOfBytes);
 
 #ifdef POOL_TAGGING
 #define ExAllocatePoolWithQuota(p,n) ExAllocatePoolWithQuotaTag(p,n,' kdD')
@@ -10390,9 +10320,9 @@ NTKERNELAPI
 PVOID
 NTAPI
 ExAllocatePoolWithQuotaTag(
-  IN POOL_TYPE  PoolType,
-  IN SIZE_T  NumberOfBytes,
-  IN ULONG  Tag);
+  IN POOL_TYPE PoolType,
+  IN SIZE_T NumberOfBytes,
+  IN ULONG Tag);
 
 #ifndef POOL_TAGGING
 #define ExAllocatePoolWithQuotaTag(a,b,c) ExAllocatePoolWithQuota(a,b)
@@ -10402,57 +10332,57 @@ NTKERNELAPI
 PVOID
 NTAPI
 ExAllocatePoolWithTag(
-    IN POOL_TYPE PoolType,
-    IN SIZE_T NumberOfBytes,
-    IN ULONG Tag);
+  IN POOL_TYPE PoolType,
+  IN SIZE_T NumberOfBytes,
+  IN ULONG Tag);
 
 NTKERNELAPI
 PVOID
 NTAPI
 ExAllocatePoolWithTagPriority(
-    IN POOL_TYPE PoolType,
-    IN SIZE_T NumberOfBytes,
-    IN ULONG Tag,
-    IN EX_POOL_PRIORITY Priority);
+  IN POOL_TYPE PoolType,
+  IN SIZE_T NumberOfBytes,
+  IN ULONG Tag,
+  IN EX_POOL_PRIORITY Priority);
 
 NTKERNELAPI
 VOID
 NTAPI
 ExConvertExclusiveToSharedLite(
-    IN PERESOURCE Resource);
+  IN PERESOURCE Resource);
 
 NTKERNELAPI
 NTSTATUS
 NTAPI
 ExCreateCallback(
-    OUT PCALLBACK_OBJECT *CallbackObject,
-    IN POBJECT_ATTRIBUTES ObjectAttributes,
-    IN BOOLEAN Create,
-    IN BOOLEAN AllowMultipleCallbacks);
+  OUT PCALLBACK_OBJECT *CallbackObject,
+  IN POBJECT_ATTRIBUTES ObjectAttributes,
+  IN BOOLEAN Create,
+  IN BOOLEAN AllowMultipleCallbacks);
 
 NTKERNELAPI
 VOID
 NTAPI
 ExDeleteNPagedLookasideList(
-    IN PNPAGED_LOOKASIDE_LIST Lookaside);
+  IN PNPAGED_LOOKASIDE_LIST Lookaside);
 
 NTKERNELAPI
 VOID
 NTAPI
 ExDeletePagedLookasideList(
-    IN PPAGED_LOOKASIDE_LIST Lookaside);
+  IN PPAGED_LOOKASIDE_LIST Lookaside);
 
 NTKERNELAPI
 NTSTATUS
 NTAPI
 ExDeleteResourceLite(
-    IN PERESOURCE Resource);
+  IN PERESOURCE Resource);
 
 NTKERNELAPI
 VOID
 NTAPI
 ExFreePool(
-    IN PVOID P);
+  IN PVOID P);
 
 #ifdef POOL_TAGGING
 #define ExFreePool(P) ExFreePoolWithTag(P, 0)
@@ -10462,64 +10392,63 @@ NTKERNELAPI
 VOID
 NTAPI
 ExFreePoolWithTag(
-    IN PVOID P,
-    IN ULONG Tag);
+  IN PVOID P,
+  IN ULONG Tag);
 
 NTKERNELAPI
 ULONG
 NTAPI
 ExGetExclusiveWaiterCount(
-    IN PERESOURCE Resource);
+  IN PERESOURCE Resource);
 
 NTKERNELAPI
 KPROCESSOR_MODE
 NTAPI
-ExGetPreviousMode(
-    VOID);
+ExGetPreviousMode(VOID);
 
 NTKERNELAPI
 ULONG
 NTAPI
 ExGetSharedWaiterCount(
-    IN PERESOURCE Resource);
+  IN PERESOURCE Resource);
 
 NTKERNELAPI
 VOID
 NTAPI
 ExInitializeNPagedLookasideList(
-    IN PNPAGED_LOOKASIDE_LIST Lookaside,
-    IN PALLOCATE_FUNCTION Allocate OPTIONAL,
-    IN PFREE_FUNCTION Free OPTIONAL,
-    IN ULONG Flags,
-    IN SIZE_T Size,
-    IN ULONG Tag,
-    IN USHORT Depth);
+  IN PNPAGED_LOOKASIDE_LIST Lookaside,
+  IN PALLOCATE_FUNCTION Allocate OPTIONAL,
+  IN PFREE_FUNCTION Free OPTIONAL,
+  IN ULONG Flags,
+  IN SIZE_T Size,
+  IN ULONG Tag,
+  IN USHORT Depth);
 
 NTKERNELAPI
 VOID
 NTAPI
 ExInitializePagedLookasideList(
-    IN PPAGED_LOOKASIDE_LIST Lookaside,
-    IN PALLOCATE_FUNCTION Allocate OPTIONAL,
-    IN PFREE_FUNCTION Free OPTIONAL,
-    IN ULONG Flags,
-    IN SIZE_T Size,
-    IN ULONG Tag,
-    IN USHORT Depth);
+  IN PPAGED_LOOKASIDE_LIST Lookaside,
+  IN PALLOCATE_FUNCTION Allocate OPTIONAL,
+  IN PFREE_FUNCTION Free OPTIONAL,
+  IN ULONG Flags,
+  IN SIZE_T Size,
+  IN ULONG Tag,
+  IN USHORT Depth);
 
 NTKERNELAPI
 NTSTATUS
 NTAPI
 ExInitializeResourceLite(
-    IN PERESOURCE Resource);
+  IN PERESOURCE Resource);
 
 NTKERNELAPI
 LARGE_INTEGER
 NTAPI
 ExInterlockedAddLargeInteger(
-    IN PLARGE_INTEGER Addend,
-    IN LARGE_INTEGER Increment,
-    IN PKSPIN_LOCK Lock);
+  IN PLARGE_INTEGER Addend,
+  IN LARGE_INTEGER Increment,
+  IN PKSPIN_LOCK Lock);
 
 #if defined(_WIN64)
 #define ExInterlockedAddLargeStatistic(Addend, Increment) \
@@ -10533,89 +10462,96 @@ NTKERNELAPI
 ULONG
 FASTCALL
 ExInterlockedAddUlong(
-    IN PULONG Addend,
-    IN ULONG Increment,
-    PKSPIN_LOCK Lock);
+  IN PULONG Addend,
+  IN ULONG Increment,
+  PKSPIN_LOCK Lock);
 
 #if defined(_AMD64_) || defined(_IA64_)
+
 #define ExInterlockedCompareExchange64(Destination, Exchange, Comperand, Lock) \
     InterlockedCompareExchange64(Destination, *(Exchange), *(Comperand))
+
 #elif defined(_X86_)
+
 NTKERNELAPI
 LONGLONG
 FASTCALL
 ExfInterlockedCompareExchange64(
-    IN OUT LONGLONG volatile *Destination,
-    IN PLONGLONG Exchange,
-    IN PLONGLONG Comperand);
+  IN OUT LONGLONG volatile *Destination,
+  IN PLONGLONG Exchange,
+  IN PLONGLONG Comperand);
+
 #define ExInterlockedCompareExchange64(Destination, Exchange, Comperand, Lock) \
     ExfInterlockedCompareExchange64(Destination, Exchange, Comperand)
+
 #else
+
 NTKERNELAPI
 LONGLONG
 FASTCALL
 ExInterlockedCompareExchange64(
-    IN OUT LONGLONG volatile *Destination,
-    IN PLONGLONG Exchange,
-    IN PLONGLONG Comparand,
-    IN PKSPIN_LOCK Lock);
-#endif
+  IN OUT LONGLONG volatile *Destination,
+  IN PLONGLONG Exchange,
+  IN PLONGLONG Comparand,
+  IN PKSPIN_LOCK Lock);
+
+#endif /* defined(_AMD64_) || defined(_IA64_) */
 
 NTKERNELAPI
 PLIST_ENTRY
 FASTCALL
 ExInterlockedInsertHeadList(
-    IN PLIST_ENTRY ListHead,
-    IN PLIST_ENTRY ListEntry,
-    IN PKSPIN_LOCK Lock);
+  IN PLIST_ENTRY ListHead,
+  IN PLIST_ENTRY ListEntry,
+  IN PKSPIN_LOCK Lock);
 
 NTKERNELAPI
 PLIST_ENTRY
 FASTCALL
 ExInterlockedInsertTailList(
-    IN PLIST_ENTRY ListHead,
-    IN PLIST_ENTRY ListEntry,
-    IN PKSPIN_LOCK Lock);
+  IN PLIST_ENTRY ListHead,
+  IN PLIST_ENTRY ListEntry,
+  IN PKSPIN_LOCK Lock);
 
 NTKERNELAPI
 PSINGLE_LIST_ENTRY
 FASTCALL
 ExInterlockedPopEntryList(
-    IN PSINGLE_LIST_ENTRY ListHead,
-    IN PKSPIN_LOCK Lock);
+  IN PSINGLE_LIST_ENTRY ListHead,
+  IN PKSPIN_LOCK Lock);
 
 NTKERNELAPI
 PSINGLE_LIST_ENTRY
 FASTCALL
 ExInterlockedPushEntryList(
-    IN PSINGLE_LIST_ENTRY ListHead,
-    IN PSINGLE_LIST_ENTRY ListEntry,
-    IN PKSPIN_LOCK Lock);
+  IN PSINGLE_LIST_ENTRY ListHead,
+  IN PSINGLE_LIST_ENTRY ListEntry,
+  IN PKSPIN_LOCK Lock);
 
 NTKERNELAPI
 PLIST_ENTRY
 FASTCALL
 ExInterlockedRemoveHeadList(
-    IN PLIST_ENTRY ListHead,
-    IN PKSPIN_LOCK Lock);
+  IN PLIST_ENTRY ListHead,
+  IN PKSPIN_LOCK Lock);
 
 NTKERNELAPI
 BOOLEAN
 NTAPI
 ExIsProcessorFeaturePresent(
-    IN ULONG ProcessorFeature);
+  IN ULONG ProcessorFeature);
 
 NTKERNELAPI
 BOOLEAN
 NTAPI
 ExIsResourceAcquiredExclusiveLite(
-    IN PERESOURCE Resource);
+  IN PERESOURCE Resource);
 
 NTKERNELAPI
 ULONG
 NTAPI
 ExIsResourceAcquiredSharedLite(
-    IN PERESOURCE Resource);
+  IN PERESOURCE Resource);
 
 #define ExIsResourceAcquiredLite ExIsResourceAcquiredSharedLite
 
@@ -10623,243 +10559,247 @@ NTKERNELAPI
 VOID
 NTAPI
 ExLocalTimeToSystemTime(
-    IN PLARGE_INTEGER LocalTime,
-    OUT PLARGE_INTEGER SystemTime);
+  IN PLARGE_INTEGER LocalTime,
+  OUT PLARGE_INTEGER SystemTime);
 
 NTKERNELAPI
 VOID
 NTAPI
 ExNotifyCallback(
-    IN PCALLBACK_OBJECT CallbackObject,
-    IN PVOID Argument1,
-    IN PVOID Argument2);
+  IN PCALLBACK_OBJECT CallbackObject,
+  IN PVOID Argument1,
+  IN PVOID Argument2);
 
 NTKERNELAPI
 VOID
 NTAPI
 ExQueueWorkItem(
-    IN PWORK_QUEUE_ITEM WorkItem,
-    IN WORK_QUEUE_TYPE QueueType);
+  IN PWORK_QUEUE_ITEM WorkItem,
+  IN WORK_QUEUE_TYPE QueueType);
 
 NTKERNELAPI
 DECLSPEC_NORETURN
 VOID
 NTAPI
 ExRaiseStatus(
-    IN NTSTATUS Status);
+  IN NTSTATUS Status);
 
 NTKERNELAPI
 PVOID
 NTAPI
 ExRegisterCallback(
-    IN PCALLBACK_OBJECT CallbackObject,
-    IN PCALLBACK_FUNCTION CallbackFunction,
-    IN PVOID CallbackContext);
+  IN PCALLBACK_OBJECT CallbackObject,
+  IN PCALLBACK_FUNCTION CallbackFunction,
+  IN PVOID CallbackContext);
 
 NTKERNELAPI
 NTSTATUS
 NTAPI
 ExReinitializeResourceLite(
-    IN PERESOURCE Resource);
+  IN PERESOURCE Resource);
 
 NTKERNELAPI
 VOID
 NTAPI
 ExReleaseResourceForThreadLite(
-    IN PERESOURCE Resource,
-    IN ERESOURCE_THREAD ResourceThreadId);
+  IN PERESOURCE Resource,
+  IN ERESOURCE_THREAD ResourceThreadId);
 
 NTKERNELAPI
 VOID
 FASTCALL
 ExReleaseResourceLite(
-    IN PERESOURCE Resource);
+  IN PERESOURCE Resource);
 
 NTKERNELAPI
 VOID
 NTAPI
 ExSetResourceOwnerPointer(
-    IN PERESOURCE Resource,
-    IN PVOID OwnerPointer);
+  IN PERESOURCE Resource,
+  IN PVOID OwnerPointer);
 
 NTKERNELAPI
 ULONG
 NTAPI
 ExSetTimerResolution(
-    IN ULONG DesiredTime,
-    IN BOOLEAN SetResolution);
+  IN ULONG DesiredTime,
+  IN BOOLEAN SetResolution);
 
 NTKERNELAPI
 VOID
 NTAPI
 ExSystemTimeToLocalTime(
-    IN PLARGE_INTEGER SystemTime,
-    OUT PLARGE_INTEGER LocalTime);
+  IN PLARGE_INTEGER SystemTime,
+  OUT PLARGE_INTEGER LocalTime);
 
 NTKERNELAPI
 VOID
 NTAPI
 ExUnregisterCallback(
-    IN PVOID CbRegistration);
+  IN PVOID CbRegistration);
 
-
-#endif // (NTDDI_VERSION >= NTDDI_WIN2K)
+#endif /* (NTDDI_VERSION >= NTDDI_WIN2K) */
 
 #if (NTDDI_VERSION >= NTDDI_WINXP)
+
 NTKERNELAPI
 BOOLEAN
 FASTCALL
 ExAcquireRundownProtection(
-    IN OUT PEX_RUNDOWN_REF RunRef);
+  IN OUT PEX_RUNDOWN_REF RunRef);
 
 NTKERNELAPI
 VOID
 FASTCALL
 ExInitializeRundownProtection(
-    OUT PEX_RUNDOWN_REF RunRef);
+  OUT PEX_RUNDOWN_REF RunRef);
 
 NTKERNELAPI
 VOID
 FASTCALL
 ExReInitializeRundownProtection(
-    OUT PEX_RUNDOWN_REF RunRef);
+  OUT PEX_RUNDOWN_REF RunRef);
 
 NTKERNELAPI
 VOID
 FASTCALL
 ExReleaseRundownProtection(
-    IN OUT PEX_RUNDOWN_REF RunRef);
+  IN OUT PEX_RUNDOWN_REF RunRef);
 
 NTKERNELAPI
 VOID
 FASTCALL
 ExRundownCompleted(
-    OUT PEX_RUNDOWN_REF RunRef);
+  OUT PEX_RUNDOWN_REF RunRef);
 
 NTKERNELAPI
 BOOLEAN
 NTAPI
 ExVerifySuite(
-    IN SUITE_TYPE SuiteType);
+  IN SUITE_TYPE SuiteType);
 
 NTKERNELAPI
 VOID
 FASTCALL
 ExWaitForRundownProtectionRelease(
-    IN OUT PEX_RUNDOWN_REF RunRef);
+  IN OUT PEX_RUNDOWN_REF RunRef);
 
-#endif // (NTDDI_VERSION >= NTDDI_WINXP)
+#endif /* (NTDDI_VERSION >= NTDDI_WINXP) */
 
 #if (NTDDI_VERSION >= NTDDI_WINXPSP2)
+
 NTKERNELAPI
 BOOLEAN
 FASTCALL
 ExAcquireRundownProtectionEx(
-    IN OUT PEX_RUNDOWN_REF RunRef,
-    IN ULONG Count);
+  IN OUT PEX_RUNDOWN_REF RunRef,
+  IN ULONG Count);
 
 NTKERNELAPI
 VOID
 FASTCALL
 ExReleaseRundownProtectionEx(
-    IN OUT PEX_RUNDOWN_REF RunRef,
-    IN ULONG Count);
-#endif // (NTDDI_VERSION >= NTDDI_WINXPSP2)
+  IN OUT PEX_RUNDOWN_REF RunRef,
+  IN ULONG Count);
+
+#endif /* (NTDDI_VERSION >= NTDDI_WINXPSP2) */
 
 #if (NTDDI_VERSION >= NTDDI_WS03SP1)
+
 NTKERNELAPI
 PEX_RUNDOWN_REF_CACHE_AWARE
 NTAPI
 ExAllocateCacheAwareRundownProtection(
-    IN POOL_TYPE PoolType,
-    IN ULONG PoolTag);
+  IN POOL_TYPE PoolType,
+  IN ULONG PoolTag);
 
 NTKERNELAPI
 SIZE_T
 NTAPI
 ExSizeOfRundownProtectionCacheAware(VOID);
-#endif // (NTDDI_VERSION >= NTDDI_WS03SP1)
+
+#endif /* (NTDDI_VERSION >= NTDDI_WS03SP1) */
 
 #if (NTDDI_VERSION >= NTDDI_VISTA)
 NTKERNELAPI
 NTSTATUS
 NTAPI
 ExInitializeLookasideListEx(
-    OUT PLOOKASIDE_LIST_EX Lookaside,
-    IN PALLOCATE_FUNCTION_EX Allocate OPTIONAL,
-    IN PFREE_FUNCTION_EX Free OPTIONAL,
-    IN POOL_TYPE PoolType,
-    IN ULONG Flags,
-    IN SIZE_T Size,
-    IN ULONG Tag,
-    IN USHORT Depth);
+  OUT PLOOKASIDE_LIST_EX Lookaside,
+  IN PALLOCATE_FUNCTION_EX Allocate OPTIONAL,
+  IN PFREE_FUNCTION_EX Free OPTIONAL,
+  IN POOL_TYPE PoolType,
+  IN ULONG Flags,
+  IN SIZE_T Size,
+  IN ULONG Tag,
+  IN USHORT Depth);
 #endif
 
 #if !defined(MIDL_PASS)
 
 static __inline PVOID
 ExAllocateFromNPagedLookasideList(
-    IN PNPAGED_LOOKASIDE_LIST Lookaside)
+  IN PNPAGED_LOOKASIDE_LIST Lookaside)
 {
-    PVOID Entry;
-
-    Lookaside->L.TotalAllocates++;
-    Entry = InterlockedPopEntrySList(&Lookaside->L.ListHead);
-    if (Entry == NULL) {
-        Lookaside->L.AllocateMisses++;
-        Entry = (Lookaside->L.Allocate)(Lookaside->L.Type,
-                                        Lookaside->L.Size,
-                                        Lookaside->L.Tag);
-    }
-    return Entry;
+  PVOID Entry;
+
+  Lookaside->L.TotalAllocates++;
+  Entry = InterlockedPopEntrySList(&Lookaside->L.ListHead);
+  if (Entry == NULL) {
+    Lookaside->L.AllocateMisses++;
+    Entry = (Lookaside->L.Allocate)(Lookaside->L.Type,
+                                    Lookaside->L.Size,
+                                    Lookaside->L.Tag);
+  }
+  return Entry;
 }
 
 static __inline PVOID
 ExAllocateFromPagedLookasideList(
-    IN PPAGED_LOOKASIDE_LIST Lookaside)
+  IN PPAGED_LOOKASIDE_LIST Lookaside)
 {
-    PVOID Entry;
-
-    Lookaside->L.TotalAllocates++;
-    Entry = InterlockedPopEntrySList(&Lookaside->L.ListHead);
-    if (Entry == NULL) {
-        Lookaside->L.AllocateMisses++;
-        Entry = (Lookaside->L.Allocate)(Lookaside->L.Type,
-                                        Lookaside->L.Size,
-                                        Lookaside->L.Tag);
-    }
-    return Entry;
+  PVOID Entry;
+
+  Lookaside->L.TotalAllocates++;
+  Entry = InterlockedPopEntrySList(&Lookaside->L.ListHead);
+  if (Entry == NULL) {
+    Lookaside->L.AllocateMisses++;
+    Entry = (Lookaside->L.Allocate)(Lookaside->L.Type,
+                                    Lookaside->L.Size,
+                                    Lookaside->L.Tag);
+  }
+  return Entry;
 }
 
 static __inline VOID
 ExFreeToNPagedLookasideList(
-    IN PNPAGED_LOOKASIDE_LIST Lookaside,
-    IN PVOID  Entry)
+  IN PNPAGED_LOOKASIDE_LIST Lookaside,
+  IN PVOID Entry)
 {
-    Lookaside->L.TotalFrees++;
-    if (ExQueryDepthSList(&Lookaside->L.ListHead) >= Lookaside->L.Depth) {
-        Lookaside->L.FreeMisses++;
-        (Lookaside->L.Free)(Entry);
-    } else {
-        InterlockedPushEntrySList(&Lookaside->L.ListHead, (PSLIST_ENTRY)Entry);
-    }
+  Lookaside->L.TotalFrees++;
+  if (ExQueryDepthSList(&Lookaside->L.ListHead) >= Lookaside->L.Depth) {
+    Lookaside->L.FreeMisses++;
+    (Lookaside->L.Free)(Entry);
+  } else {
+    InterlockedPushEntrySList(&Lookaside->L.ListHead, (PSLIST_ENTRY)Entry);
+  }
 }
 
 static __inline VOID
 ExFreeToPagedLookasideList(
-    IN PPAGED_LOOKASIDE_LIST Lookaside,
-    IN PVOID  Entry)
+  IN PPAGED_LOOKASIDE_LIST Lookaside,
+  IN PVOID Entry)
 {
-    Lookaside->L.TotalFrees++;
-    if (ExQueryDepthSList(&Lookaside->L.ListHead) >= Lookaside->L.Depth) {
-        Lookaside->L.FreeMisses++;
-        (Lookaside->L.Free)(Entry);
-    } else {
-        InterlockedPushEntrySList(&Lookaside->L.ListHead, (PSLIST_ENTRY)Entry);
-    }
+  Lookaside->L.TotalFrees++;
+  if (ExQueryDepthSList(&Lookaside->L.ListHead) >= Lookaside->L.Depth) {
+    Lookaside->L.FreeMisses++;
+    (Lookaside->L.Free)(Entry);
+  } else {
+    InterlockedPushEntrySList(&Lookaside->L.ListHead, (PSLIST_ENTRY)Entry);
+  }
 }
 
-#endif // !defined(MIDL_PASS)
+#endif /* !defined(MIDL_PASS) */
 
 
 /******************************************************************************
@@ -10905,7 +10845,7 @@ NTKERNELAPI
 NTSTATUS
 NTAPI
 ObReferenceObjectByPointer(
-  IN PVOID  Object,
+  IN PVOID Object,
   IN ACCESS_MASK DesiredAccess,
   IN POBJECT_TYPE ObjectType OPTIONAL,
   IN KPROCESSOR_MODE AccessMode);
@@ -10937,8 +10877,7 @@ ObReleaseObjectSecurity(
 FORCEINLINE
 PETHREAD
 NTAPI
-PsGetCurrentThread (
-  VOID)
+PsGetCurrentThread(VOID)
 {
   return (PETHREAD)KeGetCurrentThread();
 }
@@ -10951,19 +10890,19 @@ NTKERNELAPI
 NTSTATUS
 NTAPI
 PsCreateSystemThread(
-  OUT PHANDLE  ThreadHandle,
-  IN ULONG  DesiredAccess,
-  IN POBJECT_ATTRIBUTES  ObjectAttributes  OPTIONAL,
-  IN HANDLE  ProcessHandle  OPTIONAL,
-  OUT PCLIENT_ID  ClientId  OPTIONAL,
-  IN PKSTART_ROUTINE  StartRoutine,
-  IN PVOID  StartContext OPTIONAL);
+  OUT PHANDLE ThreadHandle,
+  IN ULONG DesiredAccess,
+  IN POBJECT_ATTRIBUTES ObjectAttributes OPTIONAL,
+  IN HANDLE ProcessHandle OPTIONAL,
+  OUT PCLIENT_ID ClientId OPTIONAL,
+  IN PKSTART_ROUTINE StartRoutine,
+  IN PVOID StartContext OPTIONAL);
 
 NTKERNELAPI
 NTSTATUS
 NTAPI
 PsTerminateSystemThread(
-  IN NTSTATUS  ExitStatus);
+  IN NTSTATUS ExitStatus);
 
 #endif
 
@@ -10978,10 +10917,10 @@ NTKERNELAPI
 NTSTATUS
 DDKCDECLAPI
 WmiTraceMessage(
-  IN TRACEHANDLE  LoggerHandle,
-  IN ULONG  MessageFlags,
-  IN LPGUID  MessageGuid,
-  IN USHORT  MessageNumber,
+  IN TRACEHANDLE LoggerHandle,
+  IN ULONG MessageFlags,
+  IN LPGUID MessageGuid,
+  IN USHORT MessageNumber,
   IN ...);
 #endif
 
@@ -10993,11 +10932,11 @@ NTKERNELAPI
 NTSTATUS
 NTAPI
 WmiQueryTraceInformation(
-  IN TRACE_INFORMATION_CLASS  TraceInformationClass,
-  OUT PVOID  TraceInformation,
-  IN ULONG  TraceInformationLength,
-  OUT PULONG  RequiredLength OPTIONAL,
-  IN PVOID  Buffer OPTIONAL);
+  IN TRACE_INFORMATION_CLASS TraceInformationClass,
+  OUT PVOID TraceInformation,
+  IN ULONG TraceInformationLength,
+  OUT PULONG RequiredLength OPTIONAL,
+  IN PVOID Buffer OPTIONAL);
 
 #if 0
 /* FIXME: Get va_list from where? */
@@ -11005,11 +10944,11 @@ NTKERNELAPI
 NTSTATUS
 DDKCDECLAPI
 WmiTraceMessageVa(
-  IN TRACEHANDLE  LoggerHandle,
-  IN ULONG  MessageFlags,
-  IN LPGUID  MessageGuid,
-  IN USHORT  MessageNumber,
-  IN va_list  MessageArgList);
+  IN TRACEHANDLE LoggerHandle,
+  IN ULONG MessageFlags,
+  IN LPGUID MessageGuid,
+  IN USHORT MessageNumber,
+  IN va_list MessageArgList);
 #endif
 
 #endif
@@ -11022,7 +10961,7 @@ WmiTraceMessageVa(
 ULONG
 DDKCDECLAPI
 DbgPrint(
-  IN PCSTR  Format,
+  IN PCSTR Format,
   IN ...);
 #endif
 
@@ -11048,21 +10987,21 @@ DbgPrint(
 
 extern NTKERNELAPI BOOLEAN KdDebuggerNotPresent;
 extern NTKERNELAPI BOOLEAN KdDebuggerEnabled;
-#define KD_DEBUGGER_ENABLED     KdDebuggerEnabled
+#define KD_DEBUGGER_ENABLED KdDebuggerEnabled
 #define KD_DEBUGGER_NOT_PRESENT KdDebuggerNotPresent
 
 #elif defined(_NTDDK_) || defined(_NTIFS_) || defined(_NTHAL_) || defined(_WDMDDK_) || defined(_NTOSP_)
 
 extern NTKERNELAPI PBOOLEAN KdDebuggerNotPresent;
 extern NTKERNELAPI PBOOLEAN KdDebuggerEnabled;
-#define KD_DEBUGGER_ENABLED     *KdDebuggerEnabled
+#define KD_DEBUGGER_ENABLED *KdDebuggerEnabled
 #define KD_DEBUGGER_NOT_PRESENT *KdDebuggerNotPresent
 
 #else
 
 extern BOOLEAN KdDebuggerNotPresent;
 extern BOOLEAN KdDebuggerEnabled;
-#define KD_DEBUGGER_ENABLED     KdDebuggerEnabled
+#define KD_DEBUGGER_ENABLED KdDebuggerEnabled
 #define KD_DEBUGGER_NOT_PRESENT KdDebuggerNotPresent
 
 #endif
@@ -11090,45 +11029,42 @@ vDbgPrintExWithPrefix(
   IN va_list ap);
 
 #endif
-#endif // _VA_LIST_DEFINED
+#endif /* _VA_LIST_DEFINED */
 
 #if (NTDDI_VERSION >= NTDDI_WIN2K)
 
 NTKERNELAPI
 NTSTATUS
 NTAPI
-KdDisableDebugger(
-  VOID);
+KdDisableDebugger(VOID);
 
 NTKERNELAPI
 NTSTATUS
 NTAPI
-KdEnableDebugger(
-  VOID);
+KdEnableDebugger(VOID);
 
 #if (_MSC_FULL_VER >= 150030729) && !defined(IMPORT_NATIVE_DBG_BREAK)
 #define DbgBreakPoint __debugbreak
 #else
 VOID
 NTAPI
-DbgBreakPoint(
-  VOID);
+DbgBreakPoint(VOID);
 #endif
 
 NTSYSAPI
 VOID
 NTAPI
 DbgBreakPointWithStatus(
-  IN ULONG  Status);
+  IN ULONG Status);
 
 NTSYSAPI
 ULONG
 DDKCDECLAPI
 DbgPrintReturnControlC(
-  IN PCCH  Format,
+  IN PCCH Format,
   IN ...);
 
-#endif
+#endif /* (NTDDI_VERSION >= NTDDI_WIN2K) */
 
 #if (NTDDI_VERSION >= NTDDI_WINXP)
 
@@ -11136,37 +11072,33 @@ NTSYSAPI
 ULONG
 DDKCDECLAPI
 DbgPrintEx(
-  IN ULONG  ComponentId,
-  IN ULONG  Level,
-  IN PCSTR  Format,
+  IN ULONG ComponentId,
+  IN ULONG Level,
+  IN PCSTR Format,
   IN ...);
 
 NTSYSAPI
 NTSTATUS
 NTAPI
 DbgQueryDebugFilterState(
-  IN ULONG  ComponentId,
-  IN ULONG  Level);
+  IN ULONG ComponentId,
+  IN ULONG Level);
 
 NTSYSAPI
 NTSTATUS
 NTAPI
 DbgSetDebugFilterState(
-  IN ULONG  ComponentId,
-  IN ULONG  Level,
-  IN BOOLEAN  State);
+  IN ULONG ComponentId,
+  IN ULONG Level,
+  IN BOOLEAN State);
 
 #endif
 
 #if (NTDDI_VERSION >= NTDDI_WS03)
-
 NTKERNELAPI
 BOOLEAN
 NTAPI
-KdRefreshDebuggerNotPresent(
-    VOID
-);
-
+KdRefreshDebuggerNotPresent(VOID);
 #endif
 
 #if (NTDDI_VERSION >= NTDDI_WS03SP1)
@@ -11188,9 +11120,9 @@ PVOID
 NTAPI
 HalAllocateCommonBuffer(
   IN PDMA_ADAPTER DmaAdapter,
-  IN ULONG  Length,
-  OUT PPHYSICAL_ADDRESS  LogicalAddress,
-  IN BOOLEAN  CacheEnabled)
+  IN ULONG Length,
+  OUT PPHYSICAL_ADDRESS LogicalAddress,
+  IN BOOLEAN CacheEnabled)
 {
   PALLOCATE_COMMON_BUFFER allocateCommonBuffer;
   PVOID commonBuffer;
@@ -11206,10 +11138,10 @@ VOID
 NTAPI
 HalFreeCommonBuffer(
   IN PDMA_ADAPTER DmaAdapter,
-  IN ULONG  Length,
-  IN PHYSICAL_ADDRESS  LogicalAddress,
-  IN PVOID  VirtualAddress,
-  IN BOOLEAN  CacheEnabled)
+  IN ULONG Length,
+  IN PHYSICAL_ADDRESS LogicalAddress,
+  IN PVOID VirtualAddress,
+  IN BOOLEAN CacheEnabled)
 {
   PFREE_COMMON_BUFFER freeCommonBuffer;
 
@@ -11296,43 +11228,43 @@ NTSYSAPI
 NTSTATUS
 NTAPI
 ZwClose(
-  IN HANDLE  Handle);
+  IN HANDLE Handle);
 
 NTSYSAPI
 NTSTATUS
 NTAPI
 ZwCreateDirectoryObject(
-  OUT PHANDLE  DirectoryHandle,
-  IN ACCESS_MASK  DesiredAccess,
-  IN POBJECT_ATTRIBUTES  ObjectAttributes);
+  OUT PHANDLE DirectoryHandle,
+  IN ACCESS_MASK DesiredAccess,
+  IN POBJECT_ATTRIBUTES ObjectAttributes);
 
 NTSYSAPI
 NTSTATUS
 NTAPI
 ZwCreateFile(
-  OUT PHANDLE  FileHandle,
-  IN ACCESS_MASK  DesiredAccess,
-  IN POBJECT_ATTRIBUTES  ObjectAttributes,
-  OUT PIO_STATUS_BLOCK  IoStatusBlock,
-  IN PLARGE_INTEGER  AllocationSize  OPTIONAL,
-  IN ULONG  FileAttributes,
-  IN ULONG  ShareAccess,
-  IN ULONG  CreateDisposition,
-  IN ULONG  CreateOptions,
-  IN PVOID  EaBuffer  OPTIONAL,
-  IN ULONG  EaLength);
+  OUT PHANDLE FileHandle,
+  IN ACCESS_MASK DesiredAccess,
+  IN POBJECT_ATTRIBUTES ObjectAttributes,
+  OUT PIO_STATUS_BLOCK IoStatusBlock,
+  IN PLARGE_INTEGER AllocationSize OPTIONAL,
+  IN ULONG FileAttributes,
+  IN ULONG ShareAccess,
+  IN ULONG CreateDisposition,
+  IN ULONG CreateOptions,
+  IN PVOID EaBuffer OPTIONAL,
+  IN ULONG EaLength);
 
 NTSYSAPI
 NTSTATUS
 NTAPI
 ZwCreateKey(
-  OUT PHANDLE  KeyHandle,
-  IN ACCESS_MASK  DesiredAccess,
-  IN POBJECT_ATTRIBUTES  ObjectAttributes,
-  IN ULONG  TitleIndex,
-  IN PUNICODE_STRING  Class  OPTIONAL,
-  IN ULONG  CreateOptions,
-  OUT PULONG  Disposition  OPTIONAL);
+  OUT PHANDLE KeyHandle,
+  IN ACCESS_MASK DesiredAccess,
+  IN POBJECT_ATTRIBUTES ObjectAttributes,
+  IN ULONG TitleIndex,
+  IN PUNICODE_STRING Class OPTIONAL,
+  IN ULONG CreateOptions,
+  OUT PULONG Disposition OPTIONAL);
 
 NTSYSAPI
 NTSTATUS
@@ -11356,7 +11288,7 @@ NTSYSAPI
 NTSTATUS
 NTAPI
 ZwDeleteValueKey(
-  IN HANDLE  KeyHandle,
+  IN HANDLE KeyHandle,
   IN PUNICODE_STRING ValueName);
 
 NTSYSAPI
@@ -11385,7 +11317,7 @@ NTSYSAPI
 NTSTATUS
 NTAPI
 ZwFlushKey(
-  IN HANDLE  KeyHandle);
+  IN HANDLE KeyHandle);
 
 NTSYSAPI
 NTSTATUS
@@ -11397,22 +11329,22 @@ NTSYSAPI
 NTSTATUS
 NTAPI
 ZwMakeTemporaryObject(
-  IN HANDLE  Handle);
+  IN HANDLE Handle);
 
 NTSYSAPI
 NTSTATUS
 NTAPI
 ZwMapViewOfSection(
-  IN HANDLE  SectionHandle,
-  IN HANDLE  ProcessHandle,
-  IN OUT PVOID  *BaseAddress,
-  IN ULONG_PTR  ZeroBits,
-  IN SIZE_T  CommitSize,
-  IN OUT PLARGE_INTEGER  SectionOffset  OPTIONAL,
-  IN OUT PSIZE_T  ViewSize,
-  IN SECTION_INHERIT  InheritDisposition,
-  IN ULONG  AllocationType,
-  IN ULONG  Protect);
+  IN HANDLE SectionHandle,
+  IN HANDLE ProcessHandle,
+  IN OUT PVOID *BaseAddress,
+  IN ULONG_PTR ZeroBits,
+  IN SIZE_T CommitSize,
+  IN OUT PLARGE_INTEGER SectionOffset OPTIONAL,
+  IN OUT PSIZE_T ViewSize,
+  IN SECTION_INHERIT InheritDisposition,
+  IN ULONG AllocationType,
+  IN ULONG Protect);
 
 NTSYSAPI
 NTSTATUS
@@ -11429,35 +11361,35 @@ NTSYSAPI
 NTSTATUS
 NTAPI
 ZwOpenKey(
-  OUT PHANDLE  KeyHandle,
-  IN ACCESS_MASK  DesiredAccess,
-  IN POBJECT_ATTRIBUTES  ObjectAttributes);
+  OUT PHANDLE KeyHandle,
+  IN ACCESS_MASK DesiredAccess,
+  IN POBJECT_ATTRIBUTES ObjectAttributes);
 
 NTSYSAPI
 NTSTATUS
 NTAPI
 ZwOpenSection(
-  OUT PHANDLE  SectionHandle,
-  IN ACCESS_MASK  DesiredAccess,
-  IN POBJECT_ATTRIBUTES  ObjectAttributes);
+  OUT PHANDLE SectionHandle,
+  IN ACCESS_MASK DesiredAccess,
+  IN POBJECT_ATTRIBUTES ObjectAttributes);
 
 NTSYSAPI
 NTSTATUS
 NTAPI
 ZwOpenSymbolicLinkObject(
-  OUT PHANDLE  LinkHandle,
-  IN ACCESS_MASK  DesiredAccess,
-  IN POBJECT_ATTRIBUTES  ObjectAttributes);
+  OUT PHANDLE LinkHandle,
+  IN ACCESS_MASK DesiredAccess,
+  IN POBJECT_ATTRIBUTES ObjectAttributes);
 
 NTSYSAPI
 NTSTATUS
 NTAPI
 ZwQueryInformationFile(
-  IN HANDLE  FileHandle,
-  OUT PIO_STATUS_BLOCK  IoStatusBlock,
-  OUT PVOID  FileInformation,
-  IN ULONG  Length,
-  IN FILE_INFORMATION_CLASS  FileInformationClass);
+  IN HANDLE FileHandle,
+  OUT PIO_STATUS_BLOCK IoStatusBlock,
+  OUT PVOID FileInformation,
+  IN ULONG Length,
+  IN FILE_INFORMATION_CLASS FileInformationClass);
 
 NTSYSAPI
 NTSTATUS
@@ -11473,9 +11405,9 @@ NTSYSAPI
 NTSTATUS
 NTAPI
 ZwQuerySymbolicLinkObject(
-  IN HANDLE  LinkHandle,
-  IN OUT PUNICODE_STRING  LinkTarget,
-  OUT PULONG  ReturnedLength  OPTIONAL);
+  IN HANDLE LinkHandle,
+  IN OUT PUNICODE_STRING LinkTarget,
+  OUT PULONG ReturnedLength OPTIONAL);
 
 NTSYSAPI
 NTSTATUS
@@ -11492,36 +11424,36 @@ NTSYSAPI
 NTSTATUS
 NTAPI
 ZwReadFile(
-  IN HANDLE  FileHandle,
-  IN HANDLE  Event  OPTIONAL,
-  IN PIO_APC_ROUTINE  ApcRoutine  OPTIONAL,
-  IN PVOID  ApcContext  OPTIONAL,
-  OUT PIO_STATUS_BLOCK  IoStatusBlock,
-  OUT PVOID  Buffer,
-  IN ULONG  Length,
-  IN PLARGE_INTEGER  ByteOffset  OPTIONAL,
-  IN PULONG  Key  OPTIONAL);
+  IN HANDLE FileHandle,
+  IN HANDLE Event OPTIONAL,
+  IN PIO_APC_ROUTINE ApcRoutine OPTIONAL,
+  IN PVOID ApcContext OPTIONAL,
+  OUT PIO_STATUS_BLOCK IoStatusBlock,
+  OUT PVOID Buffer,
+  IN ULONG Length,
+  IN PLARGE_INTEGER ByteOffset OPTIONAL,
+  IN PULONG Key OPTIONAL);
 
 NTSYSAPI
 NTSTATUS
 NTAPI
 ZwSetInformationFile(
-  IN HANDLE  FileHandle,
-  OUT PIO_STATUS_BLOCK  IoStatusBlock,
-  IN PVOID  FileInformation,
-  IN ULONG  Length,
-  IN FILE_INFORMATION_CLASS  FileInformationClass);
+  IN HANDLE FileHandle,
+  OUT PIO_STATUS_BLOCK IoStatusBlock,
+  IN PVOID FileInformation,
+  IN ULONG Length,
+  IN FILE_INFORMATION_CLASS FileInformationClass);
 
 NTSYSAPI
 NTSTATUS
 NTAPI
 ZwSetValueKey(
-  IN HANDLE  KeyHandle,
-  IN PUNICODE_STRING  ValueName,
-  IN ULONG  TitleIndex  OPTIONAL,
-  IN ULONG  Type,
-  IN PVOID  Data OPTIONAL,
-  IN ULONG  DataSize);
+  IN HANDLE KeyHandle,
+  IN PUNICODE_STRING ValueName,
+  IN ULONG TitleIndex OPTIONAL,
+  IN ULONG Type,
+  IN PVOID Data OPTIONAL,
+  IN ULONG DataSize);
 
 NTSYSAPI
 NTSTATUS
@@ -11533,22 +11465,22 @@ NTSYSAPI
 NTSTATUS
 NTAPI
 ZwUnmapViewOfSection(
-  IN HANDLE  ProcessHandle,
-  IN PVOID  BaseAddress OPTIONAL);
+  IN HANDLE ProcessHandle,
+  IN PVOID BaseAddress OPTIONAL);
 
 NTSYSAPI
 NTSTATUS
 NTAPI
 ZwWriteFile(
-  IN HANDLE  FileHandle,
-  IN HANDLE  Event  OPTIONAL,
-  IN PIO_APC_ROUTINE  ApcRoutine  OPTIONAL,
-  IN PVOID  ApcContext  OPTIONAL,
-  OUT PIO_STATUS_BLOCK  IoStatusBlock,
-  IN PVOID  Buffer,
-  IN ULONG  Length,
-  IN PLARGE_INTEGER  ByteOffset  OPTIONAL,
-  IN PULONG  Key  OPTIONAL);
+  IN HANDLE FileHandle,
+  IN HANDLE Event OPTIONAL,
+  IN PIO_APC_ROUTINE ApcRoutine OPTIONAL,
+  IN PVOID ApcContext OPTIONAL,
+  OUT PIO_STATUS_BLOCK IoStatusBlock,
+  IN PVOID Buffer,
+  IN ULONG Length,
+  IN PLARGE_INTEGER ByteOffset OPTIONAL,
+  IN PULONG Key OPTIONAL);
 
 NTSYSAPI
 NTSTATUS
@@ -11557,10 +11489,9 @@ ZwQueryFullAttributesFile(
   IN POBJECT_ATTRIBUTES ObjectAttributes,
   OUT PFILE_NETWORK_OPEN_INFORMATION FileInformation);
 
-#endif
+#endif /* (NTDDI_VERSION >= NTDDI_WIN2K) */
 
 #if (NTDDI_VERSION >= NTDDI_WIN2003)
-
 NTSYSCALLAPI
 NTSTATUS
 NTAPI
@@ -11568,7 +11499,6 @@ ZwOpenEvent(
   OUT PHANDLE EventHandle,
   IN ACCESS_MASK DesiredAccess,
   IN POBJECT_ATTRIBUTES ObjectAttributes);
-
 #endif
 
 #if (NTDDI_VERSION >= NTDDI_VISTA)
@@ -11895,7 +11825,7 @@ ZwSinglePhaseReject(
   IN PLARGE_INTEGER TmVirtualClock OPTIONAL);
 
 
-#endif
+#endif /* (NTDDI_VERSION >= NTDDI_VISTA) */
 
 #if (NTDDI_VERSION >= NTDDI_WIN7)
 
@@ -11962,7 +11892,7 @@ ZwSetInformationKey(
   IN PVOID KeySetInformation,
   IN ULONG KeySetInformationLength);
 
-#endif
+#endif /* (NTDDI_VERSION >= NTDDI_WIN7) */
 
 /******************************************************************************
  *                          Unsorted                                          *
index 1de90d8..3a6b999 100644 (file)
@@ -44,27 +44,27 @@ FORCEINLINE
 KIRQL
 KeGetCurrentIrql(VOID)
 {
-    return (KIRQL)__readcr8();
+  return (KIRQL)__readcr8();
 }
 
 FORCEINLINE
 VOID
 KeLowerIrql(IN KIRQL NewIrql)
 {
-    ASSERT(KeGetCurrentIrql() >= NewIrql);
-    __writecr8(NewIrql);
+  ASSERT(KeGetCurrentIrql() >= NewIrql);
+  __writecr8(NewIrql);
 }
 
 FORCEINLINE
 KIRQL
 KfRaiseIrql(IN KIRQL NewIrql)
 {
-    KIRQL OldIrql;
+  KIRQL OldIrql;
 
-    OldIrql = __readcr8();
-    ASSERT(OldIrql <= NewIrql);
-    __writecr8(NewIrql);
-    return OldIrql;
+  OldIrql = __readcr8();
+  ASSERT(OldIrql <= NewIrql);
+  __writecr8(NewIrql);
+  return OldIrql;
 }
 #define KeRaiseIrql(a,b) *(b) = KfRaiseIrql(a)
 
@@ -72,22 +72,21 @@ FORCEINLINE
 KIRQL
 KeRaiseIrqlToDpcLevel(VOID)
 {
-    return KfRaiseIrql(DISPATCH_LEVEL);
+  return KfRaiseIrql(DISPATCH_LEVEL);
 }
 
 FORCEINLINE
 KIRQL
 KeRaiseIrqlToSynchLevel(VOID)
 {
-    return KfRaiseIrql(12); // SYNCH_LEVEL = IPI_LEVEL - 2
+  return KfRaiseIrql(12); // SYNCH_LEVEL = IPI_LEVEL - 2
 }
 
 FORCEINLINE
 PKTHREAD
-KeGetCurrentThread (
-  VOID)
+KeGetCurrentThread(VOID)
 {
-    return (struct _KTHREAD *)__readgsqword(0x188);
+  return (struct _KTHREAD *)__readgsqword(0x188);
 }
 
 /* x86 and x64 performs a 0x2C interrupt */
index 6af8c50..f9a71d0 100644 (file)
@@ -8,15 +8,15 @@ NTKERNELAPI
 NTSTATUS
 NTAPI
 CmRegisterCallback(
-  IN PEX_CALLBACK_FUNCTION  Function,
-  IN PVOID  Context  OPTIONAL,
-  OUT PLARGE_INTEGER  Cookie);
+  IN PEX_CALLBACK_FUNCTION Function,
+  IN PVOID Context OPTIONAL,
+  OUT PLARGE_INTEGER Cookie);
 
 NTKERNELAPI
 NTSTATUS
 NTAPI
 CmUnRegisterCallback(
-  IN LARGE_INTEGER  Cookie);
+  IN LARGE_INTEGER Cookie);
 #endif
 
 $endif
index ca6b84b..ce3c37b 100644 (file)
@@ -13,11 +13,11 @@ typedef int CM_RESOURCE_TYPE;
 #define CmResourceTypeDma               4
 #define CmResourceTypeDeviceSpecific    5
 #define CmResourceTypeBusNumber         6
-#define CmResourceTypeNonArbitrated      128
-#define CmResourceTypeConfigData         128
-#define CmResourceTypeDevicePrivate      129
-#define CmResourceTypePcCardConfig       130
-#define CmResourceTypeMfCardConfig       131
+#define CmResourceTypeNonArbitrated     128
+#define CmResourceTypeConfigData        128
+#define CmResourceTypeDevicePrivate     129
+#define CmResourceTypePcCardConfig      130
+#define CmResourceTypeMfCardConfig      131
 
 /* KEY_VALUE_Xxx.Type */
 #define REG_NONE                           0
@@ -31,9 +31,9 @@ typedef int CM_RESOURCE_TYPE;
 #define REG_MULTI_SZ                       7
 #define REG_RESOURCE_LIST                  8
 #define REG_FULL_RESOURCE_DESCRIPTOR       9
-#define REG_RESOURCE_REQUIREMENTS_LIST    10
-#define REG_QWORD                         11
-#define REG_QWORD_LITTLE_ENDIAN           11
+#define REG_RESOURCE_REQUIREMENTS_LIST     10
+#define REG_QWORD                          11
+#define REG_QWORD_LITTLE_ENDIAN            11
 
 /* Registry Access Rights */
 #define KEY_QUERY_VALUE         (0x0001)
@@ -121,24 +121,24 @@ typedef int CM_RESOURCE_TYPE;
                  REG_NOTIFY_CHANGE_SECURITY)
 
 typedef struct _CM_FLOPPY_DEVICE_DATA {
-  USHORT  Version;
-  USHORT  Revision;
-  CHAR  Size[8];
-  ULONG  MaxDensity;
-  ULONG  MountDensity;
-  UCHAR  StepRateHeadUnloadTime;
-  UCHAR  HeadLoadTime;
-  UCHAR  MotorOffTime;
-  UCHAR  SectorLengthCode;
-  UCHAR  SectorPerTrack;
-  UCHAR  ReadWriteGapLength;
-  UCHAR  DataTransferLength;
-  UCHAR  FormatGapLength;
-  UCHAR  FormatFillCharacter;
-  UCHAR  HeadSettleTime;
-  UCHAR  MotorSettleTime;
-  UCHAR  MaximumTrackValue;
-  UCHAR  DataTransferRate;
+  USHORT Version;
+  USHORT Revision;
+  CHAR Size[8];
+  ULONG MaxDensity;
+  ULONG MountDensity;
+  UCHAR StepRateHeadUnloadTime;
+  UCHAR HeadLoadTime;
+  UCHAR MotorOffTime;
+  UCHAR SectorLengthCode;
+  UCHAR SectorPerTrack;
+  UCHAR ReadWriteGapLength;
+  UCHAR DataTransferLength;
+  UCHAR FormatGapLength;
+  UCHAR FormatFillCharacter;
+  UCHAR HeadSettleTime;
+  UCHAR MotorSettleTime;
+  UCHAR MaximumTrackValue;
+  UCHAR DataTransferRate;
 } CM_FLOPPY_DEVICE_DATA, *PCM_FLOPPY_DEVICE_DATA;
 
 #include <pshpack4.h>
@@ -240,11 +240,11 @@ typedef struct _CM_PARTIAL_RESOURCE_DESCRIPTOR {
 #define CmResourceTypeDeviceSpecific      5
 #define CmResourceTypeBusNumber           6
 #define CmResourceTypeMemoryLarge         7
-#define CmResourceTypeNonArbitrated     128
-#define CmResourceTypeConfigData        128
-#define CmResourceTypeDevicePrivate     129
-#define CmResourceTypePcCardConfig      130
-#define CmResourceTypeMfCardConfig      131
+#define CmResourceTypeNonArbitrated       128
+#define CmResourceTypeConfigData          128
+#define CmResourceTypeDevicePrivate       129
+#define CmResourceTypePcCardConfig        130
+#define CmResourceTypeMfCardConfig        131
 
 /* CM_PARTIAL_RESOURCE_DESCRIPTOR.ShareDisposition */
 typedef enum _CM_SHARE_DISPOSITION {
@@ -295,30 +295,30 @@ typedef enum _CM_SHARE_DISPOSITION {
 #define CM_RESOURCE_DMA_TYPE_F            0x0040
 
 typedef struct _CM_PARTIAL_RESOURCE_LIST {
-  USHORT  Version;
-  USHORT  Revision;
-  ULONG  Count;
+  USHORT Version;
+  USHORT Revision;
+  ULONG Count;
   CM_PARTIAL_RESOURCE_DESCRIPTOR PartialDescriptors[1];
 } CM_PARTIAL_RESOURCE_LIST, *PCM_PARTIAL_RESOURCE_LIST;
 
 typedef struct _CM_FULL_RESOURCE_DESCRIPTOR {
-  INTERFACE_TYPE  InterfaceType;
-  ULONG  BusNumber;
-  CM_PARTIAL_RESOURCE_LIST  PartialResourceList;
+  INTERFACE_TYPE InterfaceType;
+  ULONG BusNumber;
+  CM_PARTIAL_RESOURCE_LIST PartialResourceList;
 } CM_FULL_RESOURCE_DESCRIPTOR, *PCM_FULL_RESOURCE_DESCRIPTOR;
 
 typedef struct _CM_RESOURCE_LIST {
-  ULONG  Count;
-  CM_FULL_RESOURCE_DESCRIPTOR  List[1];
+  ULONG Count;
+  CM_FULL_RESOURCE_DESCRIPTOR List[1];
 } CM_RESOURCE_LIST, *PCM_RESOURCE_LIST;
 
 #include <pshpack1.h>
 typedef struct _CM_INT13_DRIVE_PARAMETER {
-  USHORT  DriveSelect;
-  ULONG  MaxCylinders;
-  USHORT  SectorsPerTrack;
-  USHORT  MaxHeads;
-  USHORT  NumberDrives;
+  USHORT DriveSelect;
+  ULONG MaxCylinders;
+  USHORT SectorsPerTrack;
+  USHORT MaxHeads;
+  USHORT NumberDrives;
 } CM_INT13_DRIVE_PARAMETER, *PCM_INT13_DRIVE_PARAMETER;
 
 typedef struct _CM_PNP_BIOS_DEVICE_NODE {
@@ -347,38 +347,38 @@ typedef struct _CM_PNP_BIOS_INSTALLATION_CHECK {
 #include <poppack.h>
 
 typedef struct _CM_DISK_GEOMETRY_DEVICE_DATA {
-    ULONG BytesPerSector;
-    ULONG NumberOfCylinders;
-    ULONG SectorsPerTrack;
-    ULONG NumberOfHeads;
+  ULONG BytesPerSector;
+  ULONG NumberOfCylinders;
+  ULONG SectorsPerTrack;
+  ULONG NumberOfHeads;
 } CM_DISK_GEOMETRY_DEVICE_DATA, *PCM_DISK_GEOMETRY_DEVICE_DATA;
 
 typedef struct _CM_KEYBOARD_DEVICE_DATA {
-  USHORT  Version;
-  USHORT  Revision;
-  UCHAR  Type;
-  UCHAR  Subtype;
-  USHORT  KeyboardFlags;
+  USHORT Version;
+  USHORT Revision;
+  UCHAR Type;
+  UCHAR Subtype;
+  USHORT KeyboardFlags;
 } CM_KEYBOARD_DEVICE_DATA, *PCM_KEYBOARD_DEVICE_DATA;
 
 typedef struct _CM_MCA_POS_DATA {
-  USHORT  AdapterId;
-  UCHAR  PosData1;
-  UCHAR  PosData2;
-  UCHAR  PosData3;
-  UCHAR  PosData4;
+  USHORT AdapterId;
+  UCHAR PosData1;
+  UCHAR PosData2;
+  UCHAR PosData3;
+  UCHAR PosData4;
 } CM_MCA_POS_DATA, *PCM_MCA_POS_DATA;
 
 #if (NTDDI_VERSION >= NTDDI_WINXP)
 typedef struct CM_Power_Data_s {
-  ULONG  PD_Size;
-  DEVICE_POWER_STATE  PD_MostRecentPowerState;
-  ULONG  PD_Capabilities;
-  ULONG  PD_D1Latency;
-  ULONG  PD_D2Latency;
-  ULONG  PD_D3Latency;
-  DEVICE_POWER_STATE  PD_PowerStateMapping[PowerSystemMaximum];
-  SYSTEM_POWER_STATE  PD_DeepestSystemWake;
+  ULONG PD_Size;
+  DEVICE_POWER_STATE PD_MostRecentPowerState;
+  ULONG PD_Capabilities;
+  ULONG PD_D1Latency;
+  ULONG PD_D2Latency;
+  ULONG PD_D3Latency;
+  DEVICE_POWER_STATE PD_PowerStateMapping[PowerSystemMaximum];
+  SYSTEM_POWER_STATE PD_DeepestSystemWake;
 } CM_POWER_DATA, *PCM_POWER_DATA;
 
 #define PDCAP_D0_SUPPORTED                0x00000001
@@ -394,15 +394,15 @@ typedef struct CM_Power_Data_s {
 #endif /* (NTDDI_VERSION >= NTDDI_WINXP) */
 
 typedef struct _CM_SCSI_DEVICE_DATA {
-  USHORT  Version;
-  USHORT  Revision;
-  UCHAR  HostIdentifier;
+  USHORT Version;
+  USHORT Revision;
+  UCHAR HostIdentifier;
 } CM_SCSI_DEVICE_DATA, *PCM_SCSI_DEVICE_DATA;
 
 typedef struct _CM_SERIAL_DEVICE_DATA {
-  USHORT  Version;
-  USHORT  Revision;
-  ULONG  BaudClock;
+  USHORT Version;
+  USHORT Revision;
+  ULONG BaudClock;
 } CM_SERIAL_DEVICE_DATA, *PCM_SERIAL_DEVICE_DATA;
 
 typedef enum _KEY_INFORMATION_CLASS {
@@ -415,69 +415,69 @@ typedef enum _KEY_INFORMATION_CLASS {
 } KEY_INFORMATION_CLASS;
 
 typedef struct _KEY_BASIC_INFORMATION {
-  LARGE_INTEGER  LastWriteTime;
-  ULONG  TitleIndex;
-  ULONG  NameLength;
-  WCHAR  Name[1];
+  LARGE_INTEGER LastWriteTime;
+  ULONG TitleIndex;
+  ULONG NameLength;
+  WCHAR Name[1];
 } KEY_BASIC_INFORMATION, *PKEY_BASIC_INFORMATION;
 
 typedef struct _KEY_FULL_INFORMATION {
-  LARGE_INTEGER  LastWriteTime;
-  ULONG  TitleIndex;
-  ULONG  ClassOffset;
-  ULONG  ClassLength;
-  ULONG  SubKeys;
-  ULONG  MaxNameLen;
-  ULONG  MaxClassLen;
-  ULONG  Values;
-  ULONG  MaxValueNameLen;
-  ULONG  MaxValueDataLen;
-  WCHAR  Class[1];
+  LARGE_INTEGER LastWriteTime;
+  ULONG TitleIndex;
+  ULONG ClassOffset;
+  ULONG ClassLength;
+  ULONG SubKeys;
+  ULONG MaxNameLen;
+  ULONG MaxClassLen;
+  ULONG Values;
+  ULONG MaxValueNameLen;
+  ULONG MaxValueDataLen;
+  WCHAR Class[1];
 } KEY_FULL_INFORMATION, *PKEY_FULL_INFORMATION;
 
 typedef struct _KEY_NODE_INFORMATION {
-  LARGE_INTEGER  LastWriteTime;
-  ULONG  TitleIndex;
-  ULONG  ClassOffset;
-  ULONG  ClassLength;
-  ULONG  NameLength;
-  WCHAR  Name[1];
+  LARGE_INTEGER LastWriteTime;
+  ULONG TitleIndex;
+  ULONG ClassOffset;
+  ULONG ClassLength;
+  ULONG NameLength;
+  WCHAR Name[1];
 } KEY_NODE_INFORMATION, *PKEY_NODE_INFORMATION;
 
 typedef struct _KEY_VALUE_BASIC_INFORMATION {
-  ULONG  TitleIndex;
-  ULONG  Type;
-  ULONG  NameLength;
-  WCHAR  Name[1];
+  ULONG TitleIndex;
+  ULONG Type;
+  ULONG NameLength;
+  WCHAR Name[1];
 } KEY_VALUE_BASIC_INFORMATION, *PKEY_VALUE_BASIC_INFORMATION;
 
 typedef struct _KEY_VALUE_FULL_INFORMATION {
-  ULONG  TitleIndex;
-  ULONG  Type;
-  ULONG  DataOffset;
-  ULONG  DataLength;
-  ULONG  NameLength;
-  WCHAR  Name[1];
+  ULONG TitleIndex;
+  ULONG Type;
+  ULONG DataOffset;
+  ULONG DataLength;
+  ULONG NameLength;
+  WCHAR Name[1];
 } KEY_VALUE_FULL_INFORMATION, *PKEY_VALUE_FULL_INFORMATION;
 
 typedef struct _KEY_VALUE_PARTIAL_INFORMATION {
-  ULONG  TitleIndex;
-  ULONG  Type;
-  ULONG  DataLength;
-  UCHAR  Data[1];
+  ULONG TitleIndex;
+  ULONG Type;
+  ULONG DataLength;
+  UCHAR Data[1];
 } KEY_VALUE_PARTIAL_INFORMATION, *PKEY_VALUE_PARTIAL_INFORMATION;
 
 typedef struct _KEY_VALUE_PARTIAL_INFORMATION_ALIGN64 {
-  ULONG  Type;
-  ULONG  DataLength;
-  UCHAR  Data[1];
+  ULONG Type;
+  ULONG DataLength;
+  UCHAR Data[1];
 } KEY_VALUE_PARTIAL_INFORMATION_ALIGN64, *PKEY_VALUE_PARTIAL_INFORMATION_ALIGN64;
 
 typedef struct _KEY_VALUE_ENTRY {
-  PUNICODE_STRING  ValueName;
-  ULONG  DataLength;
-  ULONG  DataOffset;
-  ULONG  Type;
+  PUNICODE_STRING ValueName;
+  ULONG DataLength;
+  ULONG DataOffset;
+  ULONG Type;
 } KEY_VALUE_ENTRY, *PKEY_VALUE_ENTRY;
 
 typedef enum _KEY_VALUE_INFORMATION_CLASS {
@@ -489,7 +489,7 @@ typedef enum _KEY_VALUE_INFORMATION_CLASS {
 } KEY_VALUE_INFORMATION_CLASS;
 
 typedef struct _KEY_WRITE_TIME_INFORMATION {
-  LARGE_INTEGER  LastWriteTime;
+  LARGE_INTEGER LastWriteTime;
 } KEY_WRITE_TIME_INFORMATION, *PKEY_WRITE_TIME_INFORMATION;
 
 typedef enum _KEY_SET_INFORMATION_CLASS {
@@ -566,10 +566,9 @@ typedef enum _REG_NOTIFY_CLASS {
 
 typedef NTSTATUS
 (NTAPI *PEX_CALLBACK_FUNCTION)(
-    IN PVOID CallbackContext,
-    IN PVOID Argument1,
-    IN PVOID Argument2
-);
+  IN PVOID CallbackContext,
+  IN PVOID Argument1,
+  IN PVOID Argument2);
 
 typedef struct _REG_DELETE_KEY_INFORMATION {
   PVOID Object;
index 242b002..0c875a4 100644 (file)
@@ -40,25 +40,25 @@ FORCEINLINE
 USHORT
 ExQueryDepthSList(IN PSLIST_HEADER ListHead)
 {
-    return (USHORT)(ListHead->Alignment & 0xffff);
+  return (USHORT)(ListHead->Alignment & 0xffff);
 }
 #endif
 
 NTKERNELAPI
 PSLIST_ENTRY
 ExpInterlockedFlushSList(
-    PSLIST_HEADER ListHead);
+  PSLIST_HEADER ListHead);
 
 NTKERNELAPI
 PSLIST_ENTRY
 ExpInterlockedPopEntrySList(
-    PSLIST_HEADER ListHead);
+  PSLIST_HEADER ListHead);
 
 NTKERNELAPI
 PSLIST_ENTRY
 ExpInterlockedPushEntrySList(
-    PSLIST_HEADER ListHead,
-    PSLIST_ENTRY ListEntry);
+  PSLIST_HEADER ListHead,
+  PSLIST_ENTRY ListEntry);
 
 #define ExInterlockedFlushSList(Head) \
     ExpInterlockedFlushSList(Head)
@@ -67,7 +67,7 @@ ExpInterlockedPushEntrySList(
 #define ExInterlockedPushEntrySList(Head, Entry, Lock) \
     ExpInterlockedPushEntrySList(Head, Entry)
 
-#else // !defined(_WIN64)
+#else /* !defined(_WIN64) */
 
 #define ExQueryDepthSList(listhead) (listhead)->Depth
 
@@ -75,31 +75,31 @@ NTKERNELAPI
 PSINGLE_LIST_ENTRY
 FASTCALL
 ExInterlockedFlushSList(
-    IN PSLIST_HEADER ListHead);
+  IN PSLIST_HEADER ListHead);
 
 #if defined(_WIN2K_COMPAT_SLIST_USAGE) && defined(_X86_)
 NTKERNELAPI
 PSINGLE_LIST_ENTRY 
 FASTCALL
 ExInterlockedPopEntrySList(
-    IN PSLIST_HEADER ListHead,
-    IN PKSPIN_LOCK Lock);
+  IN PSLIST_HEADER ListHead,
+  IN PKSPIN_LOCK Lock);
 
 NTKERNELAPI
 PSINGLE_LIST_ENTRY 
 FASTCALL
 ExInterlockedPushEntrySList(
-    IN PSLIST_HEADER ListHead,
-    IN PSINGLE_LIST_ENTRY ListEntry,
-    IN PKSPIN_LOCK Lock);
+  IN PSLIST_HEADER ListHead,
+  IN PSINGLE_LIST_ENTRY ListEntry,
+  IN PKSPIN_LOCK Lock);
 #else
 #define ExInterlockedPopEntrySList(_ListHead, _Lock) \
     InterlockedPopEntrySList(_ListHead)
 #define ExInterlockedPushEntrySList(_ListHead, _ListEntry, _Lock) \
     InterlockedPushEntrySList(_ListHead, _ListEntry)
-#endif // _WIN2K_COMPAT_SLIST_USAGE
+#endif /* _WIN2K_COMPAT_SLIST_USAGE */
 
-#endif // !defined(_WIN64)
+#endif /* !defined(_WIN64) */
 
 /* ERESOURCE_THREAD
  * ExGetCurrentResourceThread(
@@ -140,66 +140,66 @@ NTKERNELAPI
 VOID
 FASTCALL
 ExAcquireFastMutex(
-    IN OUT PFAST_MUTEX FastMutex);
+  IN OUT PFAST_MUTEX FastMutex);
 
 NTKERNELAPI
 VOID
 FASTCALL
 ExReleaseFastMutex(
-    IN OUT PFAST_MUTEX FastMutex);
+  IN OUT PFAST_MUTEX FastMutex);
 
 NTKERNELAPI
 BOOLEAN
 FASTCALL
 ExTryToAcquireFastMutex(
-    IN OUT PFAST_MUTEX FastMutex);
+  IN OUT PFAST_MUTEX FastMutex);
 
 NTKERNELAPI
 VOID
 FASTCALL
 ExAcquireFastMutexUnsafe(
-    IN OUT PFAST_MUTEX FastMutex);
+  IN OUT PFAST_MUTEX FastMutex);
 
 NTKERNELAPI
 VOID
 FASTCALL
 ExReleaseFastMutexUnsafe(
-    IN OUT PFAST_MUTEX FastMutex);
+  IN OUT PFAST_MUTEX FastMutex);
 
 NTKERNELAPI
 BOOLEAN
 NTAPI
 ExAcquireResourceExclusiveLite(
-    IN PERESOURCE Resource,
-    IN BOOLEAN Wait);
+  IN PERESOURCE Resource,
+  IN BOOLEAN Wait);
 
 NTKERNELAPI
 BOOLEAN
 NTAPI
 ExAcquireResourceSharedLite(
-    IN PERESOURCE Resource,
-    IN BOOLEAN Wait);
+  IN PERESOURCE Resource,
+  IN BOOLEAN Wait);
 
 NTKERNELAPI
 BOOLEAN
 NTAPI
 ExAcquireSharedStarveExclusive(
-    IN PERESOURCE Resource,
-    IN BOOLEAN Wait);
+  IN PERESOURCE Resource,
+  IN BOOLEAN Wait);
 
 NTKERNELAPI
 BOOLEAN
 NTAPI
 ExAcquireSharedWaitForExclusive(
-    IN PERESOURCE Resource,
-    IN BOOLEAN Wait);
+  IN PERESOURCE Resource,
+  IN BOOLEAN Wait);
 
 NTKERNELAPI
 PVOID
 NTAPI
 ExAllocatePool(
-    IN POOL_TYPE PoolType,
-    IN SIZE_T NumberOfBytes);
+  IN POOL_TYPE PoolType,
+  IN SIZE_T NumberOfBytes);
 
 #ifdef POOL_TAGGING
 #define ExAllocatePool(p,n) ExAllocatePoolWithTag(p,n,' kdD')
@@ -209,8 +209,8 @@ NTKERNELAPI
 PVOID
 NTAPI
 ExAllocatePoolWithQuota(
-    IN POOL_TYPE PoolType,
-    IN SIZE_T NumberOfBytes);
+  IN POOL_TYPE PoolType,
+  IN SIZE_T NumberOfBytes);
 
 #ifdef POOL_TAGGING
 #define ExAllocatePoolWithQuota(p,n) ExAllocatePoolWithQuotaTag(p,n,' kdD')
@@ -220,9 +220,9 @@ NTKERNELAPI
 PVOID
 NTAPI
 ExAllocatePoolWithQuotaTag(
-  IN POOL_TYPE  PoolType,
-  IN SIZE_T  NumberOfBytes,
-  IN ULONG  Tag);
+  IN POOL_TYPE PoolType,
+  IN SIZE_T NumberOfBytes,
+  IN ULONG Tag);
 
 #ifndef POOL_TAGGING
 #define ExAllocatePoolWithQuotaTag(a,b,c) ExAllocatePoolWithQuota(a,b)
@@ -232,57 +232,57 @@ NTKERNELAPI
 PVOID
 NTAPI
 ExAllocatePoolWithTag(
-    IN POOL_TYPE PoolType,
-    IN SIZE_T NumberOfBytes,
-    IN ULONG Tag);
+  IN POOL_TYPE PoolType,
+  IN SIZE_T NumberOfBytes,
+  IN ULONG Tag);
 
 NTKERNELAPI
 PVOID
 NTAPI
 ExAllocatePoolWithTagPriority(
-    IN POOL_TYPE PoolType,
-    IN SIZE_T NumberOfBytes,
-    IN ULONG Tag,
-    IN EX_POOL_PRIORITY Priority);
+  IN POOL_TYPE PoolType,
+  IN SIZE_T NumberOfBytes,
+  IN ULONG Tag,
+  IN EX_POOL_PRIORITY Priority);
 
 NTKERNELAPI
 VOID
 NTAPI
 ExConvertExclusiveToSharedLite(
-    IN PERESOURCE Resource);
+  IN PERESOURCE Resource);
 
 NTKERNELAPI
 NTSTATUS
 NTAPI
 ExCreateCallback(
-    OUT PCALLBACK_OBJECT *CallbackObject,
-    IN POBJECT_ATTRIBUTES ObjectAttributes,
-    IN BOOLEAN Create,
-    IN BOOLEAN AllowMultipleCallbacks);
+  OUT PCALLBACK_OBJECT *CallbackObject,
+  IN POBJECT_ATTRIBUTES ObjectAttributes,
+  IN BOOLEAN Create,
+  IN BOOLEAN AllowMultipleCallbacks);
 
 NTKERNELAPI
 VOID
 NTAPI
 ExDeleteNPagedLookasideList(
-    IN PNPAGED_LOOKASIDE_LIST Lookaside);
+  IN PNPAGED_LOOKASIDE_LIST Lookaside);
 
 NTKERNELAPI
 VOID
 NTAPI
 ExDeletePagedLookasideList(
-    IN PPAGED_LOOKASIDE_LIST Lookaside);
+  IN PPAGED_LOOKASIDE_LIST Lookaside);
 
 NTKERNELAPI
 NTSTATUS
 NTAPI
 ExDeleteResourceLite(
-    IN PERESOURCE Resource);
+  IN PERESOURCE Resource);
 
 NTKERNELAPI
 VOID
 NTAPI
 ExFreePool(
-    IN PVOID P);
+  IN PVOID P);
 
 #ifdef POOL_TAGGING
 #define ExFreePool(P) ExFreePoolWithTag(P, 0)
@@ -292,64 +292,63 @@ NTKERNELAPI
 VOID
 NTAPI
 ExFreePoolWithTag(
-    IN PVOID P,
-    IN ULONG Tag);
+  IN PVOID P,
+  IN ULONG Tag);
 
 NTKERNELAPI
 ULONG
 NTAPI
 ExGetExclusiveWaiterCount(
-    IN PERESOURCE Resource);
+  IN PERESOURCE Resource);
 
 NTKERNELAPI
 KPROCESSOR_MODE
 NTAPI
-ExGetPreviousMode(
-    VOID);
+ExGetPreviousMode(VOID);
 
 NTKERNELAPI
 ULONG
 NTAPI
 ExGetSharedWaiterCount(
-    IN PERESOURCE Resource);
+  IN PERESOURCE Resource);
 
 NTKERNELAPI
 VOID
 NTAPI
 ExInitializeNPagedLookasideList(
-    IN PNPAGED_LOOKASIDE_LIST Lookaside,
-    IN PALLOCATE_FUNCTION Allocate OPTIONAL,
-    IN PFREE_FUNCTION Free OPTIONAL,
-    IN ULONG Flags,
-    IN SIZE_T Size,
-    IN ULONG Tag,
-    IN USHORT Depth);
+  IN PNPAGED_LOOKASIDE_LIST Lookaside,
+  IN PALLOCATE_FUNCTION Allocate OPTIONAL,
+  IN PFREE_FUNCTION Free OPTIONAL,
+  IN ULONG Flags,
+  IN SIZE_T Size,
+  IN ULONG Tag,
+  IN USHORT Depth);
 
 NTKERNELAPI
 VOID
 NTAPI
 ExInitializePagedLookasideList(
-    IN PPAGED_LOOKASIDE_LIST Lookaside,
-    IN PALLOCATE_FUNCTION Allocate OPTIONAL,
-    IN PFREE_FUNCTION Free OPTIONAL,
-    IN ULONG Flags,
-    IN SIZE_T Size,
-    IN ULONG Tag,
-    IN USHORT Depth);
+  IN PPAGED_LOOKASIDE_LIST Lookaside,
+  IN PALLOCATE_FUNCTION Allocate OPTIONAL,
+  IN PFREE_FUNCTION Free OPTIONAL,
+  IN ULONG Flags,
+  IN SIZE_T Size,
+  IN ULONG Tag,
+  IN USHORT Depth);
 
 NTKERNELAPI
 NTSTATUS
 NTAPI
 ExInitializeResourceLite(
-    IN PERESOURCE Resource);
+  IN PERESOURCE Resource);
 
 NTKERNELAPI
 LARGE_INTEGER
 NTAPI
 ExInterlockedAddLargeInteger(
-    IN PLARGE_INTEGER Addend,
-    IN LARGE_INTEGER Increment,
-    IN PKSPIN_LOCK Lock);
+  IN PLARGE_INTEGER Addend,
+  IN LARGE_INTEGER Increment,
+  IN PKSPIN_LOCK Lock);
 
 #if defined(_WIN64)
 #define ExInterlockedAddLargeStatistic(Addend, Increment) \
@@ -363,89 +362,96 @@ NTKERNELAPI
 ULONG
 FASTCALL
 ExInterlockedAddUlong(
-    IN PULONG Addend,
-    IN ULONG Increment,
-    PKSPIN_LOCK Lock);
+  IN PULONG Addend,
+  IN ULONG Increment,
+  PKSPIN_LOCK Lock);
 
 #if defined(_AMD64_) || defined(_IA64_)
+
 #define ExInterlockedCompareExchange64(Destination, Exchange, Comperand, Lock) \
     InterlockedCompareExchange64(Destination, *(Exchange), *(Comperand))
+
 #elif defined(_X86_)
+
 NTKERNELAPI
 LONGLONG
 FASTCALL
 ExfInterlockedCompareExchange64(
-    IN OUT LONGLONG volatile *Destination,
-    IN PLONGLONG Exchange,
-    IN PLONGLONG Comperand);
+  IN OUT LONGLONG volatile *Destination,
+  IN PLONGLONG Exchange,
+  IN PLONGLONG Comperand);
+
 #define ExInterlockedCompareExchange64(Destination, Exchange, Comperand, Lock) \
     ExfInterlockedCompareExchange64(Destination, Exchange, Comperand)
+
 #else
+
 NTKERNELAPI
 LONGLONG
 FASTCALL
 ExInterlockedCompareExchange64(
-    IN OUT LONGLONG volatile *Destination,
-    IN PLONGLONG Exchange,
-    IN PLONGLONG Comparand,
-    IN PKSPIN_LOCK Lock);
-#endif
+  IN OUT LONGLONG volatile *Destination,
+  IN PLONGLONG Exchange,
+  IN PLONGLONG Comparand,
+  IN PKSPIN_LOCK Lock);
+
+#endif /* defined(_AMD64_) || defined(_IA64_) */
 
 NTKERNELAPI
 PLIST_ENTRY
 FASTCALL
 ExInterlockedInsertHeadList(
-    IN PLIST_ENTRY ListHead,
-    IN PLIST_ENTRY ListEntry,
-    IN PKSPIN_LOCK Lock);
+  IN PLIST_ENTRY ListHead,
+  IN PLIST_ENTRY ListEntry,
+  IN PKSPIN_LOCK Lock);
 
 NTKERNELAPI
 PLIST_ENTRY
 FASTCALL
 ExInterlockedInsertTailList(
-    IN PLIST_ENTRY ListHead,
-    IN PLIST_ENTRY ListEntry,
-    IN PKSPIN_LOCK Lock);
+  IN PLIST_ENTRY ListHead,
+  IN PLIST_ENTRY ListEntry,
+  IN PKSPIN_LOCK Lock);
 
 NTKERNELAPI
 PSINGLE_LIST_ENTRY
 FASTCALL
 ExInterlockedPopEntryList(
-    IN PSINGLE_LIST_ENTRY ListHead,
-    IN PKSPIN_LOCK Lock);
+  IN PSINGLE_LIST_ENTRY ListHead,
+  IN PKSPIN_LOCK Lock);
 
 NTKERNELAPI
 PSINGLE_LIST_ENTRY
 FASTCALL
 ExInterlockedPushEntryList(
-    IN PSINGLE_LIST_ENTRY ListHead,
-    IN PSINGLE_LIST_ENTRY ListEntry,
-    IN PKSPIN_LOCK Lock);
+  IN PSINGLE_LIST_ENTRY ListHead,
+  IN PSINGLE_LIST_ENTRY ListEntry,
+  IN PKSPIN_LOCK Lock);
 
 NTKERNELAPI
 PLIST_ENTRY
 FASTCALL
 ExInterlockedRemoveHeadList(
-    IN PLIST_ENTRY ListHead,
-    IN PKSPIN_LOCK Lock);
+  IN PLIST_ENTRY ListHead,
+  IN PKSPIN_LOCK Lock);
 
 NTKERNELAPI
 BOOLEAN
 NTAPI
 ExIsProcessorFeaturePresent(
-    IN ULONG ProcessorFeature);
+  IN ULONG ProcessorFeature);
 
 NTKERNELAPI
 BOOLEAN
 NTAPI
 ExIsResourceAcquiredExclusiveLite(
-    IN PERESOURCE Resource);
+  IN PERESOURCE Resource);
 
 NTKERNELAPI
 ULONG
 NTAPI
 ExIsResourceAcquiredSharedLite(
-    IN PERESOURCE Resource);
+  IN PERESOURCE Resource);
 
 #define ExIsResourceAcquiredLite ExIsResourceAcquiredSharedLite
 
@@ -453,243 +459,247 @@ NTKERNELAPI
 VOID
 NTAPI
 ExLocalTimeToSystemTime(
-    IN PLARGE_INTEGER LocalTime,
-    OUT PLARGE_INTEGER SystemTime);
+  IN PLARGE_INTEGER LocalTime,
+  OUT PLARGE_INTEGER SystemTime);
 
 NTKERNELAPI
 VOID
 NTAPI
 ExNotifyCallback(
-    IN PCALLBACK_OBJECT CallbackObject,
-    IN PVOID Argument1,
-    IN PVOID Argument2);
+  IN PCALLBACK_OBJECT CallbackObject,
+  IN PVOID Argument1,
+  IN PVOID Argument2);
 
 NTKERNELAPI
 VOID
 NTAPI
 ExQueueWorkItem(
-    IN PWORK_QUEUE_ITEM WorkItem,
-    IN WORK_QUEUE_TYPE QueueType);
+  IN PWORK_QUEUE_ITEM WorkItem,
+  IN WORK_QUEUE_TYPE QueueType);
 
 NTKERNELAPI
 DECLSPEC_NORETURN
 VOID
 NTAPI
 ExRaiseStatus(
-    IN NTSTATUS Status);
+  IN NTSTATUS Status);
 
 NTKERNELAPI
 PVOID
 NTAPI
 ExRegisterCallback(
-    IN PCALLBACK_OBJECT CallbackObject,
-    IN PCALLBACK_FUNCTION CallbackFunction,
-    IN PVOID CallbackContext);
+  IN PCALLBACK_OBJECT CallbackObject,
+  IN PCALLBACK_FUNCTION CallbackFunction,
+  IN PVOID CallbackContext);
 
 NTKERNELAPI
 NTSTATUS
 NTAPI
 ExReinitializeResourceLite(
-    IN PERESOURCE Resource);
+  IN PERESOURCE Resource);
 
 NTKERNELAPI
 VOID
 NTAPI
 ExReleaseResourceForThreadLite(
-    IN PERESOURCE Resource,
-    IN ERESOURCE_THREAD ResourceThreadId);
+  IN PERESOURCE Resource,
+  IN ERESOURCE_THREAD ResourceThreadId);
 
 NTKERNELAPI
 VOID
 FASTCALL
 ExReleaseResourceLite(
-    IN PERESOURCE Resource);
+  IN PERESOURCE Resource);
 
 NTKERNELAPI
 VOID
 NTAPI
 ExSetResourceOwnerPointer(
-    IN PERESOURCE Resource,
-    IN PVOID OwnerPointer);
+  IN PERESOURCE Resource,
+  IN PVOID OwnerPointer);
 
 NTKERNELAPI
 ULONG
 NTAPI
 ExSetTimerResolution(
-    IN ULONG DesiredTime,
-    IN BOOLEAN SetResolution);
+  IN ULONG DesiredTime,
+  IN BOOLEAN SetResolution);
 
 NTKERNELAPI
 VOID
 NTAPI
 ExSystemTimeToLocalTime(
-    IN PLARGE_INTEGER SystemTime,
-    OUT PLARGE_INTEGER LocalTime);
+  IN PLARGE_INTEGER SystemTime,
+  OUT PLARGE_INTEGER LocalTime);
 
 NTKERNELAPI
 VOID
 NTAPI
 ExUnregisterCallback(
-    IN PVOID CbRegistration);
-
+  IN PVOID CbRegistration);
 
-#endif // (NTDDI_VERSION >= NTDDI_WIN2K)
+#endif /* (NTDDI_VERSION >= NTDDI_WIN2K) */
 
 #if (NTDDI_VERSION >= NTDDI_WINXP)
+
 NTKERNELAPI
 BOOLEAN
 FASTCALL
 ExAcquireRundownProtection(
-    IN OUT PEX_RUNDOWN_REF RunRef);
+  IN OUT PEX_RUNDOWN_REF RunRef);
 
 NTKERNELAPI
 VOID
 FASTCALL
 ExInitializeRundownProtection(
-    OUT PEX_RUNDOWN_REF RunRef);
+  OUT PEX_RUNDOWN_REF RunRef);
 
 NTKERNELAPI
 VOID
 FASTCALL
 ExReInitializeRundownProtection(
-    OUT PEX_RUNDOWN_REF RunRef);
+  OUT PEX_RUNDOWN_REF RunRef);
 
 NTKERNELAPI
 VOID
 FASTCALL
 ExReleaseRundownProtection(
-    IN OUT PEX_RUNDOWN_REF RunRef);
+  IN OUT PEX_RUNDOWN_REF RunRef);
 
 NTKERNELAPI
 VOID
 FASTCALL
 ExRundownCompleted(
-    OUT PEX_RUNDOWN_REF RunRef);
+  OUT PEX_RUNDOWN_REF RunRef);
 
 NTKERNELAPI
 BOOLEAN
 NTAPI
 ExVerifySuite(
-    IN SUITE_TYPE SuiteType);
+  IN SUITE_TYPE SuiteType);
 
 NTKERNELAPI
 VOID
 FASTCALL
 ExWaitForRundownProtectionRelease(
-    IN OUT PEX_RUNDOWN_REF RunRef);
+  IN OUT PEX_RUNDOWN_REF RunRef);
 
-#endif // (NTDDI_VERSION >= NTDDI_WINXP)
+#endif /* (NTDDI_VERSION >= NTDDI_WINXP) */
 
 #if (NTDDI_VERSION >= NTDDI_WINXPSP2)
+
 NTKERNELAPI
 BOOLEAN
 FASTCALL
 ExAcquireRundownProtectionEx(
-    IN OUT PEX_RUNDOWN_REF RunRef,
-    IN ULONG Count);
+  IN OUT PEX_RUNDOWN_REF RunRef,
+  IN ULONG Count);
 
 NTKERNELAPI
 VOID
 FASTCALL
 ExReleaseRundownProtectionEx(
-    IN OUT PEX_RUNDOWN_REF RunRef,
-    IN ULONG Count);
-#endif // (NTDDI_VERSION >= NTDDI_WINXPSP2)
+  IN OUT PEX_RUNDOWN_REF RunRef,
+  IN ULONG Count);
+
+#endif /* (NTDDI_VERSION >= NTDDI_WINXPSP2) */
 
 #if (NTDDI_VERSION >= NTDDI_WS03SP1)
+
 NTKERNELAPI
 PEX_RUNDOWN_REF_CACHE_AWARE
 NTAPI
 ExAllocateCacheAwareRundownProtection(
-    IN POOL_TYPE PoolType,
-    IN ULONG PoolTag);
+  IN POOL_TYPE PoolType,
+  IN ULONG PoolTag);
 
 NTKERNELAPI
 SIZE_T
 NTAPI
 ExSizeOfRundownProtectionCacheAware(VOID);
-#endif // (NTDDI_VERSION >= NTDDI_WS03SP1)
+
+#endif /* (NTDDI_VERSION >= NTDDI_WS03SP1) */
 
 #if (NTDDI_VERSION >= NTDDI_VISTA)
 NTKERNELAPI
 NTSTATUS
 NTAPI
 ExInitializeLookasideListEx(
-    OUT PLOOKASIDE_LIST_EX Lookaside,
-    IN PALLOCATE_FUNCTION_EX Allocate OPTIONAL,
-    IN PFREE_FUNCTION_EX Free OPTIONAL,
-    IN POOL_TYPE PoolType,
-    IN ULONG Flags,
-    IN SIZE_T Size,
-    IN ULONG Tag,
-    IN USHORT Depth);
+  OUT PLOOKASIDE_LIST_EX Lookaside,
+  IN PALLOCATE_FUNCTION_EX Allocate OPTIONAL,
+  IN PFREE_FUNCTION_EX Free OPTIONAL,
+  IN POOL_TYPE PoolType,
+  IN ULONG Flags,
+  IN SIZE_T Size,
+  IN ULONG Tag,
+  IN USHORT Depth);
 #endif
 
 #if !defined(MIDL_PASS)
 
 static __inline PVOID
 ExAllocateFromNPagedLookasideList(
-    IN PNPAGED_LOOKASIDE_LIST Lookaside)
+  IN PNPAGED_LOOKASIDE_LIST Lookaside)
 {
-    PVOID Entry;
-
-    Lookaside->L.TotalAllocates++;
-    Entry = InterlockedPopEntrySList(&Lookaside->L.ListHead);
-    if (Entry == NULL) {
-        Lookaside->L.AllocateMisses++;
-        Entry = (Lookaside->L.Allocate)(Lookaside->L.Type,
-                                        Lookaside->L.Size,
-                                        Lookaside->L.Tag);
-    }
-    return Entry;
+  PVOID Entry;
+
+  Lookaside->L.TotalAllocates++;
+  Entry = InterlockedPopEntrySList(&Lookaside->L.ListHead);
+  if (Entry == NULL) {
+    Lookaside->L.AllocateMisses++;
+    Entry = (Lookaside->L.Allocate)(Lookaside->L.Type,
+                                    Lookaside->L.Size,
+                                    Lookaside->L.Tag);
+  }
+  return Entry;
 }
 
 static __inline PVOID
 ExAllocateFromPagedLookasideList(
-    IN PPAGED_LOOKASIDE_LIST Lookaside)
+  IN PPAGED_LOOKASIDE_LIST Lookaside)
 {
-    PVOID Entry;
-
-    Lookaside->L.TotalAllocates++;
-    Entry = InterlockedPopEntrySList(&Lookaside->L.ListHead);
-    if (Entry == NULL) {
-        Lookaside->L.AllocateMisses++;
-        Entry = (Lookaside->L.Allocate)(Lookaside->L.Type,
-                                        Lookaside->L.Size,
-                                        Lookaside->L.Tag);
-    }
-    return Entry;
+  PVOID Entry;
+
+  Lookaside->L.TotalAllocates++;
+  Entry = InterlockedPopEntrySList(&Lookaside->L.ListHead);
+  if (Entry == NULL) {
+    Lookaside->L.AllocateMisses++;
+    Entry = (Lookaside->L.Allocate)(Lookaside->L.Type,
+                                    Lookaside->L.Size,
+                                    Lookaside->L.Tag);
+  }
+  return Entry;
 }
 
 static __inline VOID
 ExFreeToNPagedLookasideList(
-    IN PNPAGED_LOOKASIDE_LIST Lookaside,
-    IN PVOID  Entry)
+  IN PNPAGED_LOOKASIDE_LIST Lookaside,
+  IN PVOID Entry)
 {
-    Lookaside->L.TotalFrees++;
-    if (ExQueryDepthSList(&Lookaside->L.ListHead) >= Lookaside->L.Depth) {
-        Lookaside->L.FreeMisses++;
-        (Lookaside->L.Free)(Entry);
-    } else {
-        InterlockedPushEntrySList(&Lookaside->L.ListHead, (PSLIST_ENTRY)Entry);
-    }
+  Lookaside->L.TotalFrees++;
+  if (ExQueryDepthSList(&Lookaside->L.ListHead) >= Lookaside->L.Depth) {
+    Lookaside->L.FreeMisses++;
+    (Lookaside->L.Free)(Entry);
+  } else {
+    InterlockedPushEntrySList(&Lookaside->L.ListHead, (PSLIST_ENTRY)Entry);
+  }
 }
 
 static __inline VOID
 ExFreeToPagedLookasideList(
-    IN PPAGED_LOOKASIDE_LIST Lookaside,
-    IN PVOID  Entry)
+  IN PPAGED_LOOKASIDE_LIST Lookaside,
+  IN PVOID Entry)
 {
-    Lookaside->L.TotalFrees++;
-    if (ExQueryDepthSList(&Lookaside->L.ListHead) >= Lookaside->L.Depth) {
-        Lookaside->L.FreeMisses++;
-        (Lookaside->L.Free)(Entry);
-    } else {
-        InterlockedPushEntrySList(&Lookaside->L.ListHead, (PSLIST_ENTRY)Entry);
-    }
+  Lookaside->L.TotalFrees++;
+  if (ExQueryDepthSList(&Lookaside->L.ListHead) >= Lookaside->L.Depth) {
+    Lookaside->L.FreeMisses++;
+    (Lookaside->L.Free)(Entry);
+  } else {
+    InterlockedPushEntrySList(&Lookaside->L.ListHead, (PSLIST_ENTRY)Entry);
+  }
 }
 
-#endif // !defined(MIDL_PASS)
+#endif /* !defined(MIDL_PASS) */
 
 $endif
 
index 63f4eb4..929f91e 100644 (file)
@@ -22,35 +22,35 @@ typedef struct _FAST_MUTEX {
 } FAST_MUTEX, *PFAST_MUTEX;
 
 typedef enum _SUITE_TYPE {
-    SmallBusiness,
-    Enterprise,
-    BackOffice,
-    CommunicationServer,
-    TerminalServer,
-    SmallBusinessRestricted,
-    EmbeddedNT,
-    DataCenter,
-    SingleUserTS,
-    Personal,
-    Blade,
-    EmbeddedRestricted,
-    SecurityAppliance,
-    StorageServer,
-    ComputeServer,
-    WHServer,
-    MaxSuiteType
+  SmallBusiness,
+  Enterprise,
+  BackOffice,
+  CommunicationServer,
+  TerminalServer,
+  SmallBusinessRestricted,
+  EmbeddedNT,
+  DataCenter,
+  SingleUserTS,
+  Personal,
+  Blade,
+  EmbeddedRestricted,
+  SecurityAppliance,
+  StorageServer,
+  ComputeServer,
+  WHServer,
+  MaxSuiteType
 } SUITE_TYPE;
 
 typedef enum _EX_POOL_PRIORITY {
-    LowPoolPriority,
-    LowPoolPrioritySpecialPoolOverrun = 8,
-    LowPoolPrioritySpecialPoolUnderrun = 9,
-    NormalPoolPriority = 16,
-    NormalPoolPrioritySpecialPoolOverrun = 24,
-    NormalPoolPrioritySpecialPoolUnderrun = 25,
-    HighPoolPriority = 32,
-    HighPoolPrioritySpecialPoolOverrun = 40,
-    HighPoolPrioritySpecialPoolUnderrun = 41
+  LowPoolPriority,
+  LowPoolPrioritySpecialPoolOverrun = 8,
+  LowPoolPrioritySpecialPoolUnderrun = 9,
+  NormalPoolPriority = 16,
+  NormalPoolPrioritySpecialPoolOverrun = 24,
+  NormalPoolPrioritySpecialPoolUnderrun = 25,
+  HighPoolPriority = 32,
+  HighPoolPrioritySpecialPoolOverrun = 40,
+  HighPoolPrioritySpecialPoolUnderrun = 41
 } EX_POOL_PRIORITY;
 
 #if !defined(_WIN64) && (defined(_NTDDK_) || defined(_NTIFS_) || defined(_NDIS_))
@@ -63,31 +63,31 @@ typedef struct _LOOKASIDE_LIST_EX *PLOOKASIDE_LIST_EX;
 
 typedef PVOID
 (DDKAPI *PALLOCATE_FUNCTION)(
-    IN POOL_TYPE PoolType,
-    IN SIZE_T NumberOfBytes,
-    IN ULONG Tag);
+  IN POOL_TYPE PoolType,
+  IN SIZE_T NumberOfBytes,
+  IN ULONG Tag);
 
 typedef PVOID
 (DDKAPI *PALLOCATE_FUNCTION_EX)(
-    IN POOL_TYPE PoolType,
-    IN SIZE_T NumberOfBytes,
-    IN ULONG Tag,
-    IN OUT PLOOKASIDE_LIST_EX Lookaside);
+  IN POOL_TYPE PoolType,
+  IN SIZE_T NumberOfBytes,
+  IN ULONG Tag,
+  IN OUT PLOOKASIDE_LIST_EX Lookaside);
 
 typedef VOID
 (DDKAPI *PFREE_FUNCTION)(
-    IN PVOID Buffer);
+  IN PVOID Buffer);
 
 typedef VOID
 (DDKAPI *PFREE_FUNCTION_EX)(
-    IN PVOID Buffer,
-    IN OUT PLOOKASIDE_LIST_EX Lookaside);
+  IN PVOID Buffer,
+  IN OUT PLOOKASIDE_LIST_EX Lookaside);
 
 typedef VOID
 (DDKAPI *PCALLBACK_FUNCTION)(
-  IN PVOID  CallbackContext,
-  IN PVOID  Argument1,
-  IN PVOID  Argument2);
+  IN PVOID CallbackContext,
+  IN PVOID Argument1,
+  IN PVOID Argument2);
 
 #define GENERAL_LOOKASIDE_LAYOUT                \
     union {                                     \
@@ -130,48 +130,48 @@ typedef VOID
     ULONG Future[2];
 
 typedef struct LOOKASIDE_ALIGN _GENERAL_LOOKASIDE {
-    GENERAL_LOOKASIDE_LAYOUT
+  GENERAL_LOOKASIDE_LAYOUT
 } GENERAL_LOOKASIDE, *PGENERAL_LOOKASIDE;
 
 typedef struct _GENERAL_LOOKASIDE_POOL {
-    GENERAL_LOOKASIDE_LAYOUT
+  GENERAL_LOOKASIDE_LAYOUT
 } GENERAL_LOOKASIDE_POOL, *PGENERAL_LOOKASIDE_POOL;
 
 typedef struct _PAGED_LOOKASIDE_LIST {
-    GENERAL_LOOKASIDE L;
+  GENERAL_LOOKASIDE L;
 #if !defined(_AMD64_) && !defined(_IA64_)
-    FAST_MUTEX Lock__ObsoleteButDoNotDelete;
+  FAST_MUTEX Lock__ObsoleteButDoNotDelete;
 #endif
 } PAGED_LOOKASIDE_LIST, *PPAGED_LOOKASIDE_LIST;
 
 typedef struct LOOKASIDE_ALIGN _NPAGED_LOOKASIDE_LIST {
-    GENERAL_LOOKASIDE L;
+  GENERAL_LOOKASIDE L;
 #if !defined(_AMD64_) && !defined(_IA64_)
-    KSPIN_LOCK Lock__ObsoleteButDoNotDelete;
+  KSPIN_LOCK Lock__ObsoleteButDoNotDelete;
 #endif
 } NPAGED_LOOKASIDE_LIST, *PNPAGED_LOOKASIDE_LIST;
 
 typedef struct _LOOKASIDE_LIST_EX {
-    GENERAL_LOOKASIDE_POOL L;
+  GENERAL_LOOKASIDE_POOL L;
 } LOOKASIDE_LIST_EX;
 
 typedef struct _EX_RUNDOWN_REF {
-    __GNU_EXTENSION union {
-        volatile ULONG_PTR Count;
-        volatile PVOID Ptr;
-    };
+  __GNU_EXTENSION union {
+    volatile ULONG_PTR Count;
+    volatile PVOID Ptr;
+  };
 } EX_RUNDOWN_REF, *PEX_RUNDOWN_REF;
 
-typedef struct _EX_RUNDOWN_REF_CACHE_AWARE  *PEX_RUNDOWN_REF_CACHE_AWARE;
+typedef struct _EX_RUNDOWN_REF_CACHE_AWARE *PEX_RUNDOWN_REF_CACHE_AWARE;
 
 typedef VOID
 (DDKAPI *PWORKER_THREAD_ROUTINE)(
   IN PVOID Parameter);
 
 typedef struct _WORK_QUEUE_ITEM {
-  LIST_ENTRY  List;
-  PWORKER_THREAD_ROUTINE  WorkerRoutine;
-  volatile PVOID  Parameter;
+  LIST_ENTRY List;
+  PWORKER_THREAD_ROUTINE WorkerRoutine;
+  volatile PVOID Parameter;
 } WORK_QUEUE_ITEM, *PWORK_QUEUE_ITEM;
 
 $endif
index 8c8cead..a623e76 100644 (file)
@@ -5,9 +5,9 @@ PVOID
 NTAPI
 HalAllocateCommonBuffer(
   IN PDMA_ADAPTER DmaAdapter,
-  IN ULONG  Length,
-  OUT PPHYSICAL_ADDRESS  LogicalAddress,
-  IN BOOLEAN  CacheEnabled)
+  IN ULONG Length,
+  OUT PPHYSICAL_ADDRESS LogicalAddress,
+  IN BOOLEAN CacheEnabled)
 {
   PALLOCATE_COMMON_BUFFER allocateCommonBuffer;
   PVOID commonBuffer;
@@ -23,10 +23,10 @@ VOID
 NTAPI
 HalFreeCommonBuffer(
   IN PDMA_ADAPTER DmaAdapter,
-  IN ULONG  Length,
-  IN PHYSICAL_ADDRESS  LogicalAddress,
-  IN PVOID  VirtualAddress,
-  IN BOOLEAN  CacheEnabled)
+  IN ULONG Length,
+  IN PHYSICAL_ADDRESS LogicalAddress,
+  IN PVOID VirtualAddress,
+  IN BOOLEAN CacheEnabled)
 {
   PFREE_COMMON_BUFFER freeCommonBuffer;
 
index 2a6fb7b..d63eda7 100644 (file)
@@ -30,8 +30,7 @@ KeFlushWriteBuffer(VOID)
 NTSYSAPI
 PKTHREAD
 NTAPI
-KeGetCurrentThread(
-  VOID);
+KeGetCurrentThread(VOID);
 
 $endif
 
index 7146d13..92251c3 100644 (file)
@@ -8,42 +8,44 @@
 #if defined(__GNUC__)
 
 static __inline__ BOOLEAN
-InterlockedBitTestAndSet(IN LONG volatile *Base,
-                         IN LONG Bit)
+InterlockedBitTestAndSet(
+  IN LONG volatile *Base,
+  IN LONG Bit)
 {
 #if defined(_M_IX86)
-       LONG OldBit;
-       __asm__ __volatile__("lock "
-                            "btsl %2,%1\n\t"
-                            "sbbl %0,%0\n\t"
-                            :"=r" (OldBit),"+m" (*Base)
-                            :"Ir" (Bit)
-                            : "memory");
-       return OldBit;
+  LONG OldBit;
+  __asm__ __volatile__("lock "
+                       "btsl %2,%1\n\t"
+                       "sbbl %0,%0\n\t"
+                       :"=r" (OldBit),"+m" (*Base)
+                       :"Ir" (Bit)
+                       : "memory");
+  return OldBit;
 #else
-       return (_InterlockedOr(Base, 1 << Bit) >> Bit) & 1;
+  return (_InterlockedOr(Base, 1 << Bit) >> Bit) & 1;
 #endif
 }
 
 static __inline__ BOOLEAN
-InterlockedBitTestAndReset(IN LONG volatile *Base,
-                           IN LONG Bit)
+InterlockedBitTestAndReset(
+  IN LONG volatile *Base,
+  IN LONG Bit)
 {
 #if defined(_M_IX86)
-       LONG OldBit;
-       __asm__ __volatile__("lock "
-                            "btrl %2,%1\n\t"
-                            "sbbl %0,%0\n\t"
-                            :"=r" (OldBit),"+m" (*Base)
-                            :"Ir" (Bit)
-                            : "memory");
-       return OldBit;
+  LONG OldBit;
+  __asm__ __volatile__("lock "
+                       "btrl %2,%1\n\t"
+                       "sbbl %0,%0\n\t"
+                       :"=r" (OldBit),"+m" (*Base)
+                       :"Ir" (Bit)
+                       : "memory");
+  return OldBit;
 #else
-       return (_InterlockedAnd(Base, ~(1 << Bit)) >> Bit) & 1;
+  return (_InterlockedAnd(Base, ~(1 << Bit)) >> Bit) & 1;
 #endif
 }
 
-#endif
+#endif /* defined(__GNUC__) */
 
 #define BitScanForward _BitScanForward
 #define BitScanReverse _BitScanReverse
@@ -81,8 +83,8 @@ LONG
 FASTCALL
 InterlockedCompareExchange(
   IN OUT LONG volatile *Destination,
-  IN LONG  Exchange,
-  IN LONG  Comparand);
+  IN LONG Exchange,
+  IN LONG Comparand);
 
 NTKERNELAPI
 LONG
@@ -98,7 +100,7 @@ InterlockedExchangeAdd(
   IN OUT LONG volatile *Addend,
   IN LONG  Value);
 
-#else // !defined(NO_INTERLOCKED_INTRINSICS)
+#else /* !defined(NO_INTERLOCKED_INTRINSICS) */
 
 #define InterlockedExchange _InterlockedExchange
 #define InterlockedIncrement _InterlockedIncrement
@@ -109,9 +111,9 @@ InterlockedExchangeAdd(
 #define InterlockedAnd _InterlockedAnd
 #define InterlockedXor _InterlockedXor
 
-#endif // !defined(NO_INTERLOCKED_INTRINSICS)
+#endif /* !defined(NO_INTERLOCKED_INTRINSICS) */
 
-#endif // defined (_X86_)
+#endif /* defined (_X86_) */
 
 #if !defined (_WIN64)
 /*
@@ -174,10 +176,10 @@ InterlockedExchangeAdd(
 FORCEINLINE
 LONG64
 InterlockedAdd64(
-    IN OUT LONG64 volatile *Addend,
-    IN LONG64 Value)
+  IN OUT LONG64 volatile *Addend,
+  IN LONG64 Value)
 {
-    return InterlockedExchangeAdd64(Addend, Value) + Value;
+  return InterlockedExchangeAdd64(Addend, Value) + Value;
 }
 //#endif
 #endif
index bc35d71..24644d7 100644 (file)
@@ -144,9 +144,9 @@ NTKERNELAPI
 VOID
 NTAPI
 WRITE_REGISTER_BUFFER_ULONG(
-  IN PULONG  Register,
-  IN PULONG  Buffer,
-  IN ULONG  Count);
+  IN PULONG Register,
+  IN PULONG Buffer,
+  IN ULONG Count);
 
 NTKERNELAPI
 VOID
@@ -174,8 +174,8 @@ NTKERNELAPI
 VOID
 NTAPI
 WRITE_REGISTER_USHORT(
-  IN PUSHORT  Register,
-  IN USHORT  Value);
+  IN PUSHORT Register,
+  IN USHORT Value);
 
 #else
 
@@ -186,17 +186,17 @@ READ_PORT_BUFFER_UCHAR(
   IN PUCHAR Buffer,
   IN ULONG Count)
 {
-    __inbytestring((USHORT)(ULONG_PTR)Port, Buffer, Count);
+  __inbytestring((USHORT)(ULONG_PTR)Port, Buffer, Count);
 }
 
 FORCEINLINE
 VOID
 READ_PORT_BUFFER_ULONG(
-  IN PULONG  Port,
-  IN PULONG  Buffer,
-  IN ULONG  Count)
+  IN PULONG Port,
+  IN PULONG Buffer,
+  IN ULONG Count)
 {
-    __indwordstring((USHORT)(ULONG_PTR)Port, Buffer, Count);
+  __indwordstring((USHORT)(ULONG_PTR)Port, Buffer, Count);
 }
 
 FORCEINLINE
@@ -206,7 +206,7 @@ READ_PORT_BUFFER_USHORT(
   IN PUSHORT Buffer,
   IN ULONG Count)
 {
-    __inwordstring((USHORT)(ULONG_PTR)Port, Buffer, Count);
+  __inwordstring((USHORT)(ULONG_PTR)Port, Buffer, Count);
 }
 
 FORCEINLINE
@@ -214,7 +214,7 @@ UCHAR
 READ_PORT_UCHAR(
   IN PUCHAR Port)
 {
-    return __inbyte((USHORT)(ULONG_PTR)Port);
+  return __inbyte((USHORT)(ULONG_PTR)Port);
 }
 
 FORCEINLINE
@@ -222,7 +222,7 @@ ULONG
 READ_PORT_ULONG(
   IN PULONG Port)
 {
-    return __indword((USHORT)(ULONG_PTR)Port);
+  return __indword((USHORT)(ULONG_PTR)Port);
 }
 
 FORCEINLINE
@@ -230,7 +230,7 @@ USHORT
 READ_PORT_USHORT(
   IN PUSHORT Port)
 {
-    return __inword((USHORT)(ULONG_PTR)Port);
+  return __inword((USHORT)(ULONG_PTR)Port);
 }
 
 FORCEINLINE
@@ -240,27 +240,27 @@ READ_REGISTER_BUFFER_UCHAR(
   IN PUCHAR Buffer,
   IN ULONG Count)
 {
-    __movsb(Register, Buffer, Count);
+  __movsb(Register, Buffer, Count);
 }
 
 FORCEINLINE
 VOID
 READ_REGISTER_BUFFER_ULONG(
-  IN PULONG  Register,
-  IN PULONG  Buffer,
-  IN ULONG  Count)
+  IN PULONG Register,
+  IN PULONG Buffer,
+  IN ULONG Count)
 {
-    __movsd(Register, Buffer, Count);
+  __movsd(Register, Buffer, Count);
 }
 
 FORCEINLINE
 VOID
 READ_REGISTER_BUFFER_USHORT(
-  IN PUSHORT  Register,
-  IN PUSHORT  Buffer,
-  IN ULONG  Count)
+  IN PUSHORT Register,
+  IN PUSHORT Buffer,
+  IN ULONG Count)
 {
-    __movsw(Register, Buffer, Count);
+  __movsw(Register, Buffer, Count);
 }
 
 FORCEINLINE
@@ -268,7 +268,7 @@ UCHAR
 READ_REGISTER_UCHAR(
   IN volatile UCHAR *Register)
 {
-    return *Register;
+  return *Register;
 }
 
 FORCEINLINE
@@ -276,7 +276,7 @@ ULONG
 READ_REGISTER_ULONG(
   IN volatile ULONG *Register)
 {
-    return *Register;
+  return *Register;
 }
 
 FORCEINLINE
@@