1 /* $Id: psmgr.c,v 1.13 2002/09/07 15:13:05 chorns 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 **************************************************************/
15 #include <internal/debug.h>
18 /* FUNCTIONS ***************************************************************/
20 VOID
PiShutdownProcessManager(VOID
)
22 DPRINT("PiShutdownMemoryManager()\n");
24 PiKillMostProcesses();
27 VOID
PiInitProcessManager(VOID
)
29 PsInitProcessManagment();
30 PsInitThreadManagment();
32 PiInitApcManagement();
33 PsInitialiseSuspendImplementation();
37 /**********************************************************************
42 * Retrieves the current OS version.
45 * MajorVersion Pointer to a variable that will be set to the
46 * major version of the OS. Can be NULL.
48 * MinorVersion Pointer to a variable that will be set to the
49 * minor version of the OS. Can be NULL.
51 * BuildNumber Pointer to a variable that will be set to the
52 * build number of the OS. Can be NULL.
54 * CSDVersion Pointer to a variable that will be set to the
55 * CSD string of the OS. Can be NULL.
58 * TRUE OS is a checked build.
59 * FALSE OS is a free build.
62 * The DDK docs say something about a 'CmCSDVersionString'.
63 * How do we determine in the build is checked or free??
69 PULONG MajorVersion OPTIONAL
,
70 PULONG MinorVersion OPTIONAL
,
71 PULONG BuildNumber OPTIONAL
,
72 PUNICODE_STRING CSDVersion OPTIONAL
76 *MajorVersion
= KERNEL_VERSION_MAJOR
;
79 *MinorVersion
= KERNEL_VERSION_MINOR
;
82 *BuildNumber
= NtBuildNumber
;
86 CSDVersion
->Length
= 0;
87 CSDVersion
->MaximumLength
= 0;
88 CSDVersion
->Buffer
= NULL
;
90 CSDVersion
->Length
= CmCSDVersionString
.Length
;
91 CSDVersion
->MaximumLength
= CmCSDVersionString
.Maximum
;
92 CSDVersion
->Buffer
= CmCSDVersionString
.Buffer
;
96 /* FIXME: How do we determine if build is checked or free? */