Added (stubbed) SystemDriverInformation and
SystemInterruptInformation.
This commit is contained in:
parent
55c1073b76
commit
f9cdab4dff
|
@ -790,6 +790,21 @@ NTSTATUS WINAPI NtQuerySystemInformation(
|
||||||
else ret = STATUS_INFO_LENGTH_MISMATCH;
|
else ret = STATUS_INFO_LENGTH_MISMATCH;
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
case SystemDriverInformation:
|
||||||
|
{
|
||||||
|
SYSTEM_DRIVER_INFORMATION sdi;
|
||||||
|
|
||||||
|
memset(&sdi, 0, sizeof(sdi));
|
||||||
|
len = sizeof(sdi);
|
||||||
|
|
||||||
|
if ( Length >= len)
|
||||||
|
{
|
||||||
|
if (!SystemInformation) ret = STATUS_ACCESS_VIOLATION;
|
||||||
|
else memcpy( SystemInformation, &sdi, len);
|
||||||
|
}
|
||||||
|
else ret = STATUS_INFO_LENGTH_MISMATCH;
|
||||||
|
}
|
||||||
|
break;
|
||||||
case SystemHandleInformation:
|
case SystemHandleInformation:
|
||||||
{
|
{
|
||||||
SYSTEM_HANDLE_INFORMATION shi;
|
SYSTEM_HANDLE_INFORMATION shi;
|
||||||
|
@ -816,6 +831,21 @@ NTSTATUS WINAPI NtQuerySystemInformation(
|
||||||
else ret = STATUS_INFO_LENGTH_MISMATCH;
|
else ret = STATUS_INFO_LENGTH_MISMATCH;
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
case SystemInterruptInformation:
|
||||||
|
{
|
||||||
|
SYSTEM_INTERRUPT_INFORMATION sii;
|
||||||
|
|
||||||
|
memset(&sii, 0, sizeof(sii));
|
||||||
|
len = sizeof(sii);
|
||||||
|
|
||||||
|
if ( Length >= len)
|
||||||
|
{
|
||||||
|
if (!SystemInformation) ret = STATUS_ACCESS_VIOLATION;
|
||||||
|
else memcpy( SystemInformation, &sii, len);
|
||||||
|
}
|
||||||
|
else ret = STATUS_INFO_LENGTH_MISMATCH;
|
||||||
|
}
|
||||||
|
break;
|
||||||
case SystemKernelDebuggerInformation:
|
case SystemKernelDebuggerInformation:
|
||||||
{
|
{
|
||||||
PSYSTEM_KERNEL_DEBUGGER_INFORMATION pkdi;
|
PSYSTEM_KERNEL_DEBUGGER_INFORMATION pkdi;
|
||||||
|
|
Loading…
Reference in New Issue