bootstrap
[reactos.git] / ntoskrnl / ps / create.c
index 72fa987..ae92739 100644 (file)
@@ -41,14 +41,18 @@ extern ULONG PiNrThreads;
 
 extern LIST_ENTRY PiThreadListHead;
 
+#ifndef LIBCAPTIVE
 #define MAX_THREAD_NOTIFY_ROUTINE_COUNT    8
 
 static ULONG PiThreadNotifyRoutineCount = 0;
 static PCREATE_THREAD_NOTIFY_ROUTINE
 PiThreadNotifyRoutine[MAX_THREAD_NOTIFY_ROUTINE_COUNT];
+#endif /* LIBCAPTIVE */
 
 /* FUNCTIONS ***************************************************************/
 
+#ifndef LIBCAPTIVE
+
 NTSTATUS STDCALL
 PsAssignImpersonationToken(PETHREAD Thread,
                           HANDLE TokenHandle)
@@ -301,6 +305,8 @@ PiDeleteThread(PVOID ObjectBody)
   DPRINT("PiDeleteThread() finished\n");
 }
 
+#endif /* LIBCAPTIVE */
+
 NTSTATUS
 PsInitializeThread(HANDLE ProcessHandle,
                   PETHREAD* ThreadPtr,
@@ -313,7 +319,9 @@ PsInitializeThread(HANDLE ProcessHandle,
    NTSTATUS Status;
    KIRQL oldIrql;
    PEPROCESS Process;
+#ifndef LIBCAPTIVE
    ULONG i;
+#endif /* LIBCAPTIVE */
    
    /*
     * Reference process
@@ -385,16 +393,19 @@ PsInitializeThread(HANDLE ProcessHandle,
    Thread->Tcb.BasePriority = Thread->ThreadsProcess->Pcb.BasePriority;
    Thread->Tcb.Priority = Thread->Tcb.BasePriority;
 
+#ifndef LIBCAPTIVE
   for (i = 0; i < PiThreadNotifyRoutineCount; i++)
     {
       PiThreadNotifyRoutine[i](Thread->Cid.UniqueProcess,
                               Thread->Cid.UniqueThread,
                               TRUE);
     }
+#endif /* LIBCAPTIVE */
 
   return(STATUS_SUCCESS);
 }
 
+#ifndef LIBCAPTIVE
 
 static NTSTATUS
 PsCreateTeb(HANDLE ProcessHandle,
@@ -686,4 +697,6 @@ PsSetCreateThreadNotifyRoutine(IN PCREATE_THREAD_NOTIFY_ROUTINE NotifyRoutine)
   return(STATUS_SUCCESS);
 }
 
+#endif /* LIBCAPTIVE */
+
 /* EOF */