From d5f92eb50c50918e69bab7d5febcf8b2acf880a0 Mon Sep 17 00:00:00 2001 From: Paul Vriens Date: Tue, 10 May 2005 13:15:58 +0000 Subject: [PATCH] Added (stubbed) SystemHandleInformation. Sorted the list. --- dlls/ntdll/nt.c | 42 +++++++++++++++++++++++++++--------------- 1 file changed, 27 insertions(+), 15 deletions(-) diff --git a/dlls/ntdll/nt.c b/dlls/ntdll/nt.c index bcc3f451b36..93722ac21f1 100644 --- a/dlls/ntdll/nt.c +++ b/dlls/ntdll/nt.c @@ -790,7 +790,21 @@ NTSTATUS WINAPI NtQuerySystemInformation( else ret = STATUS_INFO_LENGTH_MISMATCH; } break; + case SystemHandleInformation: + { + SYSTEM_HANDLE_INFORMATION shi; + memset(&shi, 0, sizeof(shi)); + len = sizeof(shi); + + if ( Length >= len) + { + if (!SystemInformation) ret = STATUS_ACCESS_VIOLATION; + else memcpy( SystemInformation, &shi, len); + } + else ret = STATUS_INFO_LENGTH_MISMATCH; + } + break; case SystemCacheInformation: { SYSTEM_CACHE_INFORMATION* sci = (SYSTEM_CACHE_INFORMATION*)SystemInformation; @@ -802,6 +816,19 @@ NTSTATUS WINAPI NtQuerySystemInformation( else ret = STATUS_INFO_LENGTH_MISMATCH; } break; + case SystemKernelDebuggerInformation: + { + PSYSTEM_KERNEL_DEBUGGER_INFORMATION pkdi; + if( Length >= sizeof(*pkdi)) + { + pkdi = SystemInformation; + pkdi->DebuggerEnabled = FALSE; + pkdi->DebuggerNotPresent = TRUE; + len = sizeof(*pkdi); + } + else ret = STATUS_INFO_LENGTH_MISMATCH; + } + break; case SystemRegistryQuotaInformation: /* Something to do with the size of the registry * * Since we don't have a size limitation, fake it * @@ -822,21 +849,6 @@ NTSTATUS WINAPI NtQuerySystemInformation( else ret = STATUS_INFO_LENGTH_MISMATCH; } break; - - case SystemKernelDebuggerInformation: - { - PSYSTEM_KERNEL_DEBUGGER_INFORMATION pkdi; - if( Length >= sizeof(*pkdi)) - { - pkdi = SystemInformation; - pkdi->DebuggerEnabled = FALSE; - pkdi->DebuggerNotPresent = TRUE; - len = sizeof(*pkdi); - } - else ret = STATUS_INFO_LENGTH_MISMATCH; - } - break; - default: FIXME("(0x%08x,%p,0x%08lx,%p) stub\n", SystemInformationClass,SystemInformation,Length,ResultLength);