1 /* $Id: psmgr.c,v 1.7 2000/06/03 21:36:32 ekohl Exp $
3 * COPYRIGHT: See COPYING in the top level directory
4 * PROJECT: ReactOS kernel
5 * FILE: ntoskrnl/ps/psmgr.c
6 * PURPOSE: Process managment
7 * PROGRAMMER: David Welch (welch@mcmail.com)
10 /* INCLUDES **************************************************************/
12 #include <ddk/ntddk.h>
13 #include <internal/ps.h>
14 #include <reactos/version.h>
16 #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();
36 /**********************************************************************
41 * Retrieves the current OS version.
44 * MajorVersion Pointer to a variable that will be set to the
45 * major version of the OS. Can be NULL.
47 * MinorVersion Pointer to a variable that will be set to the
48 * minor version of the OS. Can be NULL.
50 * BuildNumber Pointer to a variable that will be set to the
51 * build number of the OS. Can be NULL.
53 * CSDVersion Pointer to a variable that will be set to the
54 * CSD string of the OS. Can be NULL.
57 * TRUE OS is a checked build.
58 * FALSE OS is a free build.
61 * The DDK docs say something about a 'CmCSDVersionString'.
62 * How do we determine in the build is checked or free??
68 PULONG MajorVersion OPTIONAL
,
69 PULONG MinorVersion OPTIONAL
,
70 PULONG BuildNumber OPTIONAL
,
71 PUNICODE_STRING CSDVersion OPTIONAL
75 *MajorVersion
= KERNEL_VERSION_MAJOR
;
78 *MinorVersion
= KERNEL_VERSION_MINOR
;
81 *BuildNumber
= NtBuildNumber
;
85 CSDVersion
->Length
= 0;
86 CSDVersion
->MaximumLength
= 0;
87 CSDVersion
->Buffer
= NULL
;
89 CSDVersion
->Length
= CmCSDVersionString
.Length
;
90 CSDVersion
->MaximumLength
= CmCSDVersionString
.Maximum
;
91 CSDVersion
->Buffer
= CmCSDVersionString
.Buffer
;
95 /* FIXME: How do we determine if build is checked or free? */