- Remove the DoneInitYet hack.
- Add stub for PsSetProcessPriorityByClass.
- Rename PsSetProcessWin32WindowStation to PsSetProcessWindowStation.
Modified: trunk/reactos/ntoskrnl/ke/kthread.c
Modified: trunk/reactos/ntoskrnl/ntoskrnl.def
Modified: trunk/reactos/ntoskrnl/ps/process.c
Modified: trunk/reactos/ntoskrnl/ps/psmgr.c
_____
Modified: trunk/reactos/ntoskrnl/ke/kthread.c
--- trunk/reactos/ntoskrnl/ke/kthread.c 2005-08-02 13:21:18 UTC (rev
16967)
+++ trunk/reactos/ntoskrnl/ke/kthread.c 2005-08-02 13:52:10 UTC (rev
16968)
@@ -28,7 +28,6 @@
LIST_ENTRY PriorityListHead[MAXIMUM_PRIORITY];
static ULONG PriorityListMask = 0;
ULONG IdleProcessorMask = 0;
-extern BOOLEAN DoneInitYet;
extern PETHREAD PspReaperList;
/* FUNCTIONS
*****************************************************************/
@@ -232,7 +231,7 @@
{
KIRQL OldIrql;
- if (!DoneInitYet || KeGetCurrentPrcb()->IdleThread == NULL) {
+ if (KeGetCurrentPrcb()->IdleThread == NULL) {
return;
}
_____
Modified: trunk/reactos/ntoskrnl/ntoskrnl.def
--- trunk/reactos/ntoskrnl/ntoskrnl.def 2005-08-02 13:21:18 UTC (rev
16967)
+++ trunk/reactos/ntoskrnl/ntoskrnl.def 2005-08-02 13:52:10 UTC (rev
16968)
@@ -936,9 +936,10 @@
PsSetJobUIRestrictionsClass@8
PsSetLegoNotifyRoutine@4
PsSetProcessPriorityClass@8
+PsSetProcessPriorityByClass@8
PsSetProcessSecurityPort@8
PsSetProcessWin32Process@8
-PsSetProcessWin32WindowStation@8
+PsSetProcessWindowStation@8
PsSetThreadHardErrorsAreDisabled@8
PsSetThreadWin32Thread@8
PsSetLoadImageNotifyRoutine@4
_____
Modified: trunk/reactos/ntoskrnl/ps/process.c
--- trunk/reactos/ntoskrnl/ps/process.c 2005-08-02 13:21:18 UTC (rev
16967)
+++ trunk/reactos/ntoskrnl/ps/process.c 2005-08-02 13:52:10 UTC (rev
16968)
@@ -753,13 +753,25 @@
*/
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:
* ProcessHandle (OUT) = Caller supplied storage for the
resulting
_____
Modified: trunk/reactos/ntoskrnl/ps/psmgr.c
--- trunk/reactos/ntoskrnl/ps/psmgr.c 2005-08-02 13:21:18 UTC (rev
16967)
+++ trunk/reactos/ntoskrnl/ps/psmgr.c 2005-08-02 13:52:10 UTC (rev
16968)
@@ -33,8 +33,6 @@
STANDARD_RIGHTS_EXECUTE | SYNCHRONIZE,
THREAD_ALL_ACCESS};
-BOOLEAN DoneInitYet = FALSE;
-
extern ULONG NtBuildNumber;
extern ULONG NtMajorVersion;
extern ULONG NtMinorVersion;
@@ -104,8 +102,6 @@
DPRINT("FirstThread %x\n",FirstThread);
- DoneInitYet = TRUE;
-
ExInitializeWorkItem(&PspReaperWorkItem, PspReapRoutine, NULL);
}
Show replies by date