Author: tkreuzer
Date: Fri Feb 28 15:29:06 2014
New Revision: 62353
URL:
http://svn.reactos.org/svn/reactos?rev=62353&view=rev
Log:
[NTOSKRNL]
Implement SystemPrioritySeperation case in NtSetSystemInformation
Modified:
branches/kernel-fun/reactos/ntoskrnl/ex/sysinfo.c
Modified: branches/kernel-fun/reactos/ntoskrnl/ex/sysinfo.c
URL:
http://svn.reactos.org/svn/reactos/branches/kernel-fun/reactos/ntoskrnl/ex/…
==============================================================================
--- branches/kernel-fun/reactos/ntoskrnl/ex/sysinfo.c [iso-8859-1] (original)
+++ branches/kernel-fun/reactos/ntoskrnl/ex/sysinfo.c [iso-8859-1] Fri Feb 28 15:29:06
2014
@@ -1788,9 +1788,22 @@
/* Class 39 - Priority Separation */
SSI_DEF(SystemPrioritySeperation)
{
- /* FIXME */
- DPRINT1("NtSetSystemInformation - SystemPrioritySeperation not
implemented\n");
- return STATUS_NOT_IMPLEMENTED;
+ /* Check if the size is correct */
+ if (Size != sizeof(ULONG))
+ {
+ return STATUS_INFO_LENGTH_MISMATCH;
+ }
+
+ /* We need the TCB privilege */
+ if (!SeSinglePrivilegeCheck(SeTcbPrivilege, ExGetPreviousMode()))
+ {
+ return STATUS_PRIVILEGE_NOT_HELD;
+ }
+
+ /* Modify the quantum table */
+ PsChangeQuantumTable(TRUE, *(PULONG)Buffer);
+
+ return STATUS_SUCCESS;
}
/* Class 40 - Plug Play Bus Information */