[SDK] Fix NT6 building issues and improve SDK NT6 headers. 356/head
authorDenis Malikov <filedem@gmail.com>
Sun, 4 Feb 2018 11:29:23 +0000 (18:29 +0700)
committerThomas Faber <thomas.faber@reactos.org>
Sat, 10 Feb 2018 17:58:35 +0000 (18:58 +0100)
CORE-12596

sdk/include/asm/ks386.template.h
sdk/include/asm/ksx.template.h
sdk/include/ddk/fcb.h
sdk/include/ndk/i386/asm.h
sdk/include/ndk/peb_teb.h
sdk/include/psdk/winddi.h
sdk/include/psdk/winuser.h
sdk/include/psdk/ws2spi.h

index e5f672c..ac94afd 100644 (file)
@@ -556,7 +556,7 @@ HEADER("Data access macros"),
 RAW("#define USERDATA ds:[HEX(0FFDF0000)]"),
 RAW("#define PCR fs:"),
 
-#if (NTDDI_VERSION >= NTDDI_VISTA)
+#if (NTDDI_VERSION >= NTDDI_WIN8)
 HEADER("KNODE offsets"),
 OFFSET(NdIdleCpuSet, KNODE, IdleCpuSet),
 #endif
index 1daf46f..96d64c3 100644 (file)
@@ -125,7 +125,7 @@ RAW("#else"),
 {TYPE_CONSTANT, "SYNCH_LEVEL", (IPI_LEVEL - 2)},
 RAW("#endif"),
 
-#if (NTDDI_VERSION >= NTDDI_VISTA)
+#if (NTDDI_VERSION >= NTDDI_WIN8)
 HEADER("Entropy Timing Constants"),
 CONSTANT(KENTROPY_TIMING_INTERRUPTS_PER_BUFFER),
 CONSTANT(KENTROPY_TIMING_BUFFER_MASK),
@@ -797,7 +797,9 @@ SIZE(KernelThreadObjectLength, KTHREAD),
 HEADER("KTIMER"),
 OFFSET(TiType, KTIMER, Header.Type),
 OFFSET(TiSize, KTIMER, Header.Size),
-OFFSET(TiInserted, KTIMER, Header.Inserted), // not in win 10
+#if (NTDDI_VERSION < NTDDI_WIN7)
+OFFSET(TiInserted, KTIMER, Header.Inserted),
+#endif
 OFFSET(TiSignalState, KTIMER, Header.SignalState),
 OFFSET(TiDueTime, KTIMER, DueTime),
 OFFSET(TiTimerListEntry, KTIMER, TimerListEntry),
index 417b610..ba16a86 100644 (file)
@@ -525,6 +525,7 @@ RxGetFileSizeWithLock(
     _Out_ PLONGLONG FileSize);
 
 #if (_WIN32_WINNT >= 0x0600)
+PFCB
 RxCreateNetFcb(
     _In_ PRX_CONTEXT RxContext,
     _In_ PIRP Irp,
index 3c203e5..242cc74 100644 (file)
@@ -627,6 +627,15 @@ Author:
 #define EXCEPTION_NPX_ERROR                     0x010
 #define EXCEPTION_ALIGNMENT_CHECK               0x011
 
+//
+// Hypervisor Enlightenment Definitions
+//
+#define HV_MMU_USE_HYPERCALL_FOR_ADDRESS_SWITCH 0x01
+#define HV_MMU_USE_HYPERCALL_FOR_LOCAL_FLUSH    0x02
+#define HV_MMU_USE_HYPERCALL_FOR_REMOTE_FLUSH   0x04
+#define HV_APIC_ENLIGHTENED                     0x10
+#define HV_KE_USE_HYPERCALL_FOR_LONG_SPIN_WAIT  0x40
+
 //
 // VDM State Pointer
 //
index c52b161..89a0228 100644 (file)
@@ -344,7 +344,7 @@ typedef struct STRUCT(_TEB)
 #endif
     PTR(PVOID)             WinSockData;
     ULONG                  GdiBatchCount;
-#if (NTDDI_VERSION >= NTDDI_WIN10)
+#if (NTDDI_VERSION >= NTDDI_WIN7)
     union
     {
         PROCESSOR_NUMBER   CurrentIdealProcessor;
index 1d1019a..892604d 100644 (file)
@@ -4352,7 +4352,7 @@ typedef HBITMAP
 #endif /* (NTDDI_VERSION >= NTDDI_WIN8) */
     _Out_ HANDLE* phSharedSurface);
 typedef FN_DrvCreateDeviceBitmapEx *PFN_DrvCreateDeviceBitmapEx;
-extern DrvCreateDeviceBitmapEx DrvCreateDeviceBitmapEx
+extern FN_DrvCreateDeviceBitmapEx DrvCreateDeviceBitmapEx;
 
 typedef VOID
 (APIENTRY FN_DrvDeleteDeviceBitmapEx)(
index 7fe3a14..4f77a9c 100644 (file)
@@ -3446,6 +3446,14 @@ typedef struct tagSOUNDSENTRYW {
        DWORD iWindowsEffectOrdinal;
 } SOUNDSENTRYW,*LPSOUNDSENTRYW;
 
+#if (_WIN32_WINNT >= 0x0600)
+typedef struct tagAUDIODESCRIPTION {
+       UINT cbSize;
+       BOOL Enabled;
+       LCID Locale;
+} AUDIODESCRIPTION, *LPAUDIODESCRIPTION;
+#endif
+
 typedef struct tagSTICKYKEYS {
        DWORD cbSize;
        DWORD dwFlags;
index 6fb353d..99276e0 100644 (file)
@@ -880,7 +880,7 @@ WSCGetProviderInfo(
   _In_ LPGUID lpProviderId,
   _In_ WSC_PROVIDER_INFO_TYPE InfoType,
   _Out_writes_bytes_to_(*InfoSize, *InfoSize) PBYTE Info,
-  _Inout_ *InfoSize,
+  _Inout_ size_t *InfoSize,
   _In_ DWORD Flags,
   _Out_ LPINT lpErrno);