Added (stubbed) SystemHandleInformation.

Sorted the list.
This commit is contained in:
Paul Vriens 2005-05-10 13:15:58 +00:00 committed by Alexandre Julliard
parent 219bff0f29
commit d5f92eb50c
1 changed files with 27 additions and 15 deletions

View File

@ -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);