- Remove the DoneInitYet hack.

- Add stub for PsSetProcessPriorityByClass.
- Rename PsSetProcessWin32WindowStation to PsSetProcessWindowStation.

svn path=/trunk/; revision=16968
This commit is contained in:
Filip Navara 2005-08-02 13:52:10 +00:00
parent b5bd68a13b
commit ef03d1cb40
4 changed files with 17 additions and 9 deletions

View file

@ -28,7 +28,6 @@ extern EX_WORK_QUEUE ExWorkerQueue[MaximumWorkQueue];
LIST_ENTRY PriorityListHead[MAXIMUM_PRIORITY]; LIST_ENTRY PriorityListHead[MAXIMUM_PRIORITY];
static ULONG PriorityListMask = 0; static ULONG PriorityListMask = 0;
ULONG IdleProcessorMask = 0; ULONG IdleProcessorMask = 0;
extern BOOLEAN DoneInitYet;
extern PETHREAD PspReaperList; extern PETHREAD PspReaperList;
/* FUNCTIONS *****************************************************************/ /* FUNCTIONS *****************************************************************/
@ -232,7 +231,7 @@ KiDispatchThread(ULONG NewThreadStatus)
{ {
KIRQL OldIrql; KIRQL OldIrql;
if (!DoneInitYet || KeGetCurrentPrcb()->IdleThread == NULL) { if (KeGetCurrentPrcb()->IdleThread == NULL) {
return; return;
} }

View file

@ -936,9 +936,10 @@ PsSetCreateThreadNotifyRoutine@4
PsSetJobUIRestrictionsClass@8 PsSetJobUIRestrictionsClass@8
PsSetLegoNotifyRoutine@4 PsSetLegoNotifyRoutine@4
PsSetProcessPriorityClass@8 PsSetProcessPriorityClass@8
PsSetProcessPriorityByClass@8
PsSetProcessSecurityPort@8 PsSetProcessSecurityPort@8
PsSetProcessWin32Process@8 PsSetProcessWin32Process@8
PsSetProcessWin32WindowStation@8 PsSetProcessWindowStation@8
PsSetThreadHardErrorsAreDisabled@8 PsSetThreadHardErrorsAreDisabled@8
PsSetThreadWin32Thread@8 PsSetThreadWin32Thread@8
PsSetLoadImageNotifyRoutine@4 PsSetLoadImageNotifyRoutine@4

View file

@ -753,12 +753,24 @@ PsSetProcessWin32Process(PEPROCESS Process,
*/ */
VOID VOID
STDCALL STDCALL
PsSetProcessWin32WindowStation(PEPROCESS Process, PsSetProcessWindowStation(PEPROCESS Process,
PVOID WindowStation) PVOID WindowStation)
{ {
Process->Win32WindowStation = WindowStation; Process->Win32WindowStation = WindowStation;
} }
/*
* @unimplemented
*/
NTSTATUS
STDCALL
PsSetProcessPriorityByClass(IN PEPROCESS Process,
IN ULONG Type)
{
UNIMPLEMENTED;
return STATUS_NOT_IMPLEMENTED;
}
/* /*
* FUNCTION: Creates a process. * FUNCTION: Creates a process.
* ARGUMENTS: * ARGUMENTS:

View file

@ -33,8 +33,6 @@ static GENERIC_MAPPING PiThreadMapping = {
STANDARD_RIGHTS_EXECUTE | SYNCHRONIZE, STANDARD_RIGHTS_EXECUTE | SYNCHRONIZE,
THREAD_ALL_ACCESS}; THREAD_ALL_ACCESS};
BOOLEAN DoneInitYet = FALSE;
extern ULONG NtBuildNumber; extern ULONG NtBuildNumber;
extern ULONG NtMajorVersion; extern ULONG NtMajorVersion;
extern ULONG NtMinorVersion; extern ULONG NtMinorVersion;
@ -104,8 +102,6 @@ PsInitThreadManagment(VOID)
DPRINT("FirstThread %x\n",FirstThread); DPRINT("FirstThread %x\n",FirstThread);
DoneInitYet = TRUE;
ExInitializeWorkItem(&PspReaperWorkItem, PspReapRoutine, NULL); ExInitializeWorkItem(&PspReaperWorkItem, PspReapRoutine, NULL);
} }