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();
36 PsInitialiseW32Call();
40 /**********************************************************************
45 * Retrieves the current OS version.
48 * MajorVersion Pointer to a variable that will be set to the
49 * major version of the OS. Can be NULL.
51 * MinorVersion Pointer to a variable that will be set to the
52 * minor version of the OS. Can be NULL.
54 * BuildNumber Pointer to a variable that will be set to the
55 * build number of the OS. Can be NULL.
57 * CSDVersion Pointer to a variable that will be set to the
58 * CSD string of the OS. Can be NULL.
61 * TRUE OS is a checked build.
62 * FALSE OS is a free build.
65 * The DDK docs say something about a 'CmCSDVersionString'.
66 * How do we determine in the build is checked or free??
74 PULONG MajorVersion OPTIONAL,
75 PULONG MinorVersion OPTIONAL,
76 PULONG BuildNumber OPTIONAL,
77 PUNICODE_STRING CSDVersion OPTIONAL
81 *MajorVersion = KERNEL_VERSION_MAJOR;
84 *MinorVersion = KERNEL_VERSION_MINOR;
87 *BuildNumber = NtBuildNumber;
91 CSDVersion->Length = 0;
92 CSDVersion->MaximumLength = 0;
93 CSDVersion->Buffer = NULL;
95 CSDVersion->Length = CmCSDVersionString.Length;
96 CSDVersion->MaximumLength = CmCSDVersionString.Maximum;
97 CSDVersion->Buffer = CmCSDVersionString.Buffer;
101 /* FIXME: How do we determine if build is checked or free? */