mirror of
https://github.com/reactos/reactos.git
synced 2024-12-27 01:24:38 +00:00
- Remove the DoneInitYet hack.
- Add stub for PsSetProcessPriorityByClass. - Rename PsSetProcessWin32WindowStation to PsSetProcessWindowStation. svn path=/trunk/; revision=16968
This commit is contained in:
parent
b5bd68a13b
commit
ef03d1cb40
4 changed files with 17 additions and 9 deletions
|
@ -28,7 +28,6 @@ extern EX_WORK_QUEUE ExWorkerQueue[MaximumWorkQueue];
|
|||
LIST_ENTRY PriorityListHead[MAXIMUM_PRIORITY];
|
||||
static ULONG PriorityListMask = 0;
|
||||
ULONG IdleProcessorMask = 0;
|
||||
extern BOOLEAN DoneInitYet;
|
||||
extern PETHREAD PspReaperList;
|
||||
|
||||
/* FUNCTIONS *****************************************************************/
|
||||
|
@ -232,7 +231,7 @@ KiDispatchThread(ULONG NewThreadStatus)
|
|||
{
|
||||
KIRQL OldIrql;
|
||||
|
||||
if (!DoneInitYet || KeGetCurrentPrcb()->IdleThread == NULL) {
|
||||
if (KeGetCurrentPrcb()->IdleThread == NULL) {
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
|
@ -936,9 +936,10 @@ PsSetCreateThreadNotifyRoutine@4
|
|||
PsSetJobUIRestrictionsClass@8
|
||||
PsSetLegoNotifyRoutine@4
|
||||
PsSetProcessPriorityClass@8
|
||||
PsSetProcessPriorityByClass@8
|
||||
PsSetProcessSecurityPort@8
|
||||
PsSetProcessWin32Process@8
|
||||
PsSetProcessWin32WindowStation@8
|
||||
PsSetProcessWindowStation@8
|
||||
PsSetThreadHardErrorsAreDisabled@8
|
||||
PsSetThreadWin32Thread@8
|
||||
PsSetLoadImageNotifyRoutine@4
|
||||
|
|
|
@ -753,12 +753,24 @@ PsSetProcessWin32Process(PEPROCESS Process,
|
|||
*/
|
||||
VOID
|
||||
STDCALL
|
||||
PsSetProcessWin32WindowStation(PEPROCESS Process,
|
||||
PVOID WindowStation)
|
||||
PsSetProcessWindowStation(PEPROCESS Process,
|
||||
PVOID WindowStation)
|
||||
{
|
||||
Process->Win32WindowStation = WindowStation;
|
||||
}
|
||||
|
||||
/*
|
||||
* @unimplemented
|
||||
*/
|
||||
NTSTATUS
|
||||
STDCALL
|
||||
PsSetProcessPriorityByClass(IN PEPROCESS Process,
|
||||
IN ULONG Type)
|
||||
{
|
||||
UNIMPLEMENTED;
|
||||
return STATUS_NOT_IMPLEMENTED;
|
||||
}
|
||||
|
||||
/*
|
||||
* FUNCTION: Creates a process.
|
||||
* ARGUMENTS:
|
||||
|
|
|
@ -33,8 +33,6 @@ static GENERIC_MAPPING PiThreadMapping = {
|
|||
STANDARD_RIGHTS_EXECUTE | SYNCHRONIZE,
|
||||
THREAD_ALL_ACCESS};
|
||||
|
||||
BOOLEAN DoneInitYet = FALSE;
|
||||
|
||||
extern ULONG NtBuildNumber;
|
||||
extern ULONG NtMajorVersion;
|
||||
extern ULONG NtMinorVersion;
|
||||
|
@ -104,8 +102,6 @@ PsInitThreadManagment(VOID)
|
|||
|
||||
DPRINT("FirstThread %x\n",FirstThread);
|
||||
|
||||
DoneInitYet = TRUE;
|
||||
|
||||
ExInitializeWorkItem(&PspReaperWorkItem, PspReapRoutine, NULL);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue