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("PiShutdownMemoryManager()\n");
26 PiKillMostProcesses();
29 VOID PiInitProcessManager(VOID)
31 PsInitProcessManagment();
32 PsInitThreadManagment();
34 PiInitApcManagement();
35 PsInitialiseSuspendImplementation();
39 /**********************************************************************
44 * Retrieves the current OS version.
47 * MajorVersion Pointer to a variable that will be set to the
48 * major version of the OS. Can be NULL.
50 * MinorVersion Pointer to a variable that will be set to the
51 * minor version of the OS. Can be NULL.
53 * BuildNumber Pointer to a variable that will be set to the
54 * build number of the OS. Can be NULL.
56 * CSDVersion Pointer to a variable that will be set to the
57 * CSD string of the OS. Can be NULL.
60 * TRUE OS is a checked build.
61 * FALSE OS is a free build.
64 * The DDK docs say something about a 'CmCSDVersionString'.
65 * How do we determine in the build is checked or free??
71 PULONG MajorVersion OPTIONAL,
72 PULONG MinorVersion OPTIONAL,
73 PULONG BuildNumber OPTIONAL,
74 PUNICODE_STRING CSDVersion OPTIONAL
78 *MajorVersion = KERNEL_VERSION_MAJOR;
81 *MinorVersion = KERNEL_VERSION_MINOR;
84 *BuildNumber = NtBuildNumber;
88 CSDVersion->Length = 0;
89 CSDVersion->MaximumLength = 0;
90 CSDVersion->Buffer = NULL;
92 CSDVersion->Length = CmCSDVersionString.Length;
93 CSDVersion->MaximumLength = CmCSDVersionString.Maximum;
94 CSDVersion->Buffer = CmCSDVersionString.Buffer;
98 /* FIXME: How do we determine if build is checked or free? */