mirror of
https://github.com/reactos/reactos.git
synced 2024-12-28 18:15:11 +00:00
Implement ThreadBasePriority case for NtSetInformationThread()
svn path=/trunk/; revision=4625
This commit is contained in:
parent
e70e534a2e
commit
ad70cd4bbe
1 changed files with 10 additions and 2 deletions
|
@ -1,4 +1,4 @@
|
||||||
/* $Id: tinfo.c,v 1.19 2002/09/08 10:23:41 chorns Exp $
|
/* $Id: tinfo.c,v 1.20 2003/04/30 21:56:22 gvg Exp $
|
||||||
*
|
*
|
||||||
* COPYRIGHT: See COPYING in the top level directory
|
* COPYRIGHT: See COPYING in the top level directory
|
||||||
* PROJECT: ReactOS kernel
|
* PROJECT: ReactOS kernel
|
||||||
|
@ -13,6 +13,7 @@
|
||||||
|
|
||||||
#include <ddk/ntddk.h>
|
#include <ddk/ntddk.h>
|
||||||
#include <internal/ps.h>
|
#include <internal/ps.h>
|
||||||
|
#include <internal/safe.h>
|
||||||
|
|
||||||
#include <internal/debug.h>
|
#include <internal/debug.h>
|
||||||
|
|
||||||
|
@ -71,7 +72,14 @@ NtSetInformationThread(HANDLE ThreadHandle,
|
||||||
}
|
}
|
||||||
|
|
||||||
case ThreadBasePriority:
|
case ThreadBasePriority:
|
||||||
Status = STATUS_NOT_IMPLEMENTED;
|
if (ThreadInformationLength != sizeof(ULONG))
|
||||||
|
{
|
||||||
|
Status = STATUS_INFO_LENGTH_MISMATCH;
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
Status = MmCopyFromCaller(&(Thread->Tcb.BasePriority),
|
||||||
|
ThreadInformation,
|
||||||
|
sizeof(ULONG));
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case ThreadAffinityMask:
|
case ThreadAffinityMask:
|
||||||
|
|
Loading…
Reference in a new issue