1 /* $Id: psmgr.c,v 1.20 2004/08/10 07:25:49 ea Exp $
3 * COPYRIGHT: See COPYING in the top level directory
4 * PROJECT: ReactOS kernel
5 * FILE: ntoskrnl/ps/psmgr.c
6 * PURPOSE: Process management
7 * PROGRAMMER: David Welch (welch@mcmail.com)
10 /* INCLUDES **************************************************************/
12 #include <ddk/ntddk.h>
13 #include <internal/ke.h>
14 #include <internal/ps.h>
15 #include <reactos/version.h>
18 #include <internal/debug.h>
20 /* FUNCTIONS ***************************************************************/
22 VOID
PiShutdownProcessManager(VOID
)
24 DPRINT("PiShutdownProcessManager()\n");
26 PiKillMostProcesses();
30 PiInitProcessManager(VOID
)
32 PsInitProcessManagment();
33 PsInitThreadManagment();
35 PiInitApcManagement();
36 PsInitialiseSuspendImplementation();
37 PsInitialiseW32Call();
41 /**********************************************************************
46 * Retrieves the current OS version.
49 * MajorVersion Pointer to a variable that will be set to the
50 * major version of the OS. Can be NULL.
52 * MinorVersion Pointer to a variable that will be set to the
53 * minor version of the OS. Can be NULL.
55 * BuildNumber Pointer to a variable that will be set to the
56 * build number of the OS. Can be NULL.
58 * CSDVersion Pointer to a variable that will be set to the
59 * CSD string of the OS. Can be NULL.
62 * TRUE OS is a checked build.
63 * FALSE OS is a free build.
66 * The DDK docs say something about a 'CmCSDVersionString'.
67 * How do we determine in the build is checked or free??
75 PULONG MajorVersion OPTIONAL
,
76 PULONG MinorVersion OPTIONAL
,
77 PULONG BuildNumber OPTIONAL
,
78 PUNICODE_STRING CSDVersion OPTIONAL
92 CSDVersion
->Length
= 0;
93 CSDVersion
->MaximumLength
= 0;
94 CSDVersion
->Buffer
= NULL
;
96 CSDVersion
->Length
= CmCSDVersionString
.Length
;
97 CSDVersion
->MaximumLength
= CmCSDVersionString
.Maximum
;
98 CSDVersion
->Buffer
= CmCSDVersionString
.Buffer
;
102 /* FIXME: How do we determine if build is checked or free? */