CVS: winex/dlls/ntdll nt.c,1.18,1.19

[email protected] 12 Sep 2007 12:37:21 -0000
Newsgroups gmane.comp.emulators.winex.cvs
Message-ID <[email protected]>
Subject: winex/dlls/ntdll nt.c,1.18,1.19Update of /var/lib/cvsd/cvsroot/winex/dlls/ntdll
In directory agravaine:/tmp/cvs-serv12388/dlls/ntdll

Modified Files:
	nt.c 
Log Message:

- updated the internal representation (in 'ntddk.h' and 'winternl.h') of the SYSTEM_PROCESS_INFORMATION struct to match what is expected by the native PSDK.  This included adding the IO_COUNTERS struct to winnt.h as well.  
- added a case for SystemProcessInformation in NtQuerySystemInformation()



Index: nt.c
===================================================================
RCS file: /var/lib/cvsd/cvsroot/winex/dlls/ntdll/nt.c,v
retrieving revision 1.18
retrieving revision 1.19
diff -u -d -r1.18 -r1.19
--- nt.c	12 Sep 2007 12:30:23 -0000	1.18
+++ nt.c	12 Sep 2007 12:37:19 -0000	1.19
@@ -795,30 +795,34 @@
  *  ResultLength	Data written
  */
 NTSTATUS WINAPI NtQuerySystemInformation(
-	IN SYSTEM_INFORMATION_CLASS SystemInformationClass,
-	OUT PVOID SystemInformation,
-	IN ULONG Length,
-	OUT PULONG ResultLength)
+    IN  SYSTEM_INFORMATION_CLASS    SystemInformationClass,
+    OUT PVOID                       SystemInformation,
+    IN  ULONG                       Length,
+    OUT PULONG                      ResultLength)
 {
     switch(SystemInformationClass)
     {
-    case SystemRegistryQuotaInformation:
-	/* Something to do with the size of the registry             *
-	 * Since we don't have a size limitation, fake it            *
-	 * This is almost certainly wrong.                           *
-	 * This sets each of the three words in the struct to 32 MB, *
-	 * which is enough to make the IE 5 installer happy.         */
-	FIXME("(0x%08x,%p,0x%08lx,%p) faking max registry size of 32 MB\n",
-	      SystemInformationClass,SystemInformation,Length,ResultLength);
-	*(DWORD *)SystemInformation = 0x2000000;
-	*(((DWORD *)SystemInformation)+1) = 0x200000;
-	*(((DWORD *)SystemInformation)+2) = 0x200000;
-	break;
+        case SystemRegistryQuotaInformation:
+            /* Something to do with the size of the registry             *
+             * Since we don't have a size limitation, fake it            *
+             * This is almost certainly wrong.                           *
+             * This sets each of the three words in the struct to 32 MB, *
+             * which is enough to make the IE 5 installer happy.         */
+            FIXME("(0x%08x,%p,0x%08lx,%p) faking max registry size of 32 MB\n",
+                  SystemInformationClass,SystemInformation,Length,ResultLength);
+            *(DWORD *)SystemInformation = 0x2000000;
+            *(((DWORD *)SystemInformation)+1) = 0x200000;
+            *(((DWORD *)SystemInformation)+2) = 0x200000;
+            break;
 
-    default:
-	FIXME("(0x%08x,%p,0x%08lx,%p) stub\n",
-	      SystemInformationClass,SystemInformation,Length,ResultLength);
-	ZeroMemory (SystemInformation, Length);
+        case SystemProcessInformation:
+            FIXME("implement the SystemProcessInformation case!\n");
+            break;
+
+        default:
+            FIXME("(0x%08x,%p,0x%08lx,%p) stub\n",
+                  SystemInformationClass,SystemInformation,Length,ResultLength);
+            ZeroMemory (SystemInformation, Length);
     }
 
     return STATUS_SUCCESS;