Author: tfaber
Date: Sat Jun 10 07:59:50 2017
New Revision: 74980
URL:
http://svn.reactos.org/svn/reactos?rev=74980&view=rev
Log:
[NTOS:EX]
- Stub NtQuerySystemInformation:SystemExtendedHandleInformation. Avoids crashes in the
upcoming ntdll_winetest sync.
CORE-13368 #resolve
Modified:
trunk/reactos/ntoskrnl/ex/sysinfo.c
trunk/reactos/sdk/include/ndk/extypes.h
Modified: trunk/reactos/ntoskrnl/ex/sysinfo.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/ntoskrnl/ex/sysinfo.c?rev=…
==============================================================================
--- trunk/reactos/ntoskrnl/ex/sysinfo.c [iso-8859-1] (original)
+++ trunk/reactos/ntoskrnl/ex/sysinfo.c [iso-8859-1] Sat Jun 10 07:59:50 2017
@@ -2370,6 +2370,27 @@
}
return STATUS_SUCCESS;
+}
+
+/* Class 64 - Extended handle information */
+QSI_DEF(SystemExtendedHandleInformation)
+{
+ PSYSTEM_HANDLE_INFORMATION_EX HandleInformation =
(PSYSTEM_HANDLE_INFORMATION_EX)Buffer;
+
+ DPRINT1("NtQuerySystemInformation - SystemExtendedHandleInformation not
implemented\n");
+
+ /* Set initial required buffer size */
+ *ReqSize = FIELD_OFFSET(SYSTEM_HANDLE_INFORMATION_EX, Handle);
+
+ /* Validate input size */
+ if (Size < *ReqSize)
+ {
+ return STATUS_INFO_LENGTH_MISMATCH;
+ }
+
+ /* FIXME */
+ HandleInformation->Count = 0;
+ return STATUS_NOT_IMPLEMENTED;
}
@@ -2455,7 +2476,11 @@
SI_QX(SystemExtendedProcessInformation),
SI_QX(SystemRecommendedSharedDataAlignment),
SI_XX(SystemComPlusPackage),
- SI_QX(SystemNumaAvailableMemory)
+ SI_QX(SystemNumaAvailableMemory),
+ SI_XX(SystemProcessorPowerInformation), /* FIXME: not implemented */
+ SI_XX(SystemEmulationBasicInformation), /* FIXME: not implemented */
+ SI_XX(SystemEmulationProcessorInformation), /* FIXME: not implemented */
+ SI_QX(SystemExtendedHandleInformation),
};
C_ASSERT(SystemBasicInformation == 0);
Modified: trunk/reactos/sdk/include/ndk/extypes.h
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/sdk/include/ndk/extypes.h?…
==============================================================================
--- trunk/reactos/sdk/include/ndk/extypes.h [iso-8859-1] (original)
+++ trunk/reactos/sdk/include/ndk/extypes.h [iso-8859-1] Sat Jun 10 07:59:50 2017
@@ -1398,7 +1398,29 @@
};
} SYSTEM_NUMA_INFORMATION, *PSYSTEM_NUMA_INFORMATION;
-// FIXME: Class 56-97
+// FIXME: Class 56-63
+
+// Class 64
+typedef struct _SYSTEM_HANDLE_TABLE_ENTRY_INFO_EX
+{
+ PVOID Object;
+ ULONG_PTR UniqueProcessId;
+ ULONG_PTR HandleValue;
+ ULONG GrantedAccess;
+ USHORT CreatorBackTraceIndex;
+ USHORT ObjectTypeIndex;
+ ULONG HandleAttributes;
+ ULONG Reserved;
+} SYSTEM_HANDLE_TABLE_ENTRY_INFO_EX, *PSYSTEM_HANDLE_TABLE_ENTRY_INFO_EX;
+
+typedef struct _SYSTEM_HANDLE_INFORMATION_EX
+{
+ ULONG_PTR Count;
+ ULONG_PTR Reserved;
+ SYSTEM_HANDLE_TABLE_ENTRY_INFO_EX Handle[1];
+} SYSTEM_HANDLE_INFORMATION_EX, *PSYSTEM_HANDLE_INFORMATION_EX;
+
+// FIXME: Class 65-97
//
// Hotpatch flags