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 ***************************************************************/
23 VOID PiShutdownProcessManager(VOID)
25 DPRINT("PiShutdownMemoryManager()\n");
27 PiKillMostProcesses();
30 VOID PiInitProcessManager(VOID)
32 PsInitProcessManagment();
33 PsInitThreadManagment();
35 PiInitApcManagement();
36 PsInitialiseSuspendImplementation();
37 PsInitialiseW32Call();
39 #endif /* LIBCAPTIVE */
42 /**********************************************************************
47 * Retrieves the current OS version.
50 * MajorVersion Pointer to a variable that will be set to the
51 * major version of the OS. Can be NULL.
53 * MinorVersion Pointer to a variable that will be set to the
54 * minor version of the OS. Can be NULL.
56 * BuildNumber Pointer to a variable that will be set to the
57 * build number of the OS. Can be NULL.
59 * CSDVersion Pointer to a variable that will be set to the
60 * CSD string of the OS. Can be NULL.
63 * TRUE OS is a checked build.
64 * FALSE OS is a free build.
67 * The DDK docs say something about a 'CmCSDVersionString'.
68 * How do we determine in the build is checked or free??
76 PULONG MajorVersion OPTIONAL,
77 PULONG MinorVersion OPTIONAL,
78 PULONG BuildNumber OPTIONAL,
79 PUNICODE_STRING CSDVersion OPTIONAL
83 *MajorVersion = KERNEL_VERSION_MAJOR;
86 *MinorVersion = KERNEL_VERSION_MINOR;
90 *BuildNumber = NtBuildNumber;
91 #endif /* LIBCAPTIVE */
95 CSDVersion->Length = 0;
96 CSDVersion->MaximumLength = 0;
97 CSDVersion->Buffer = NULL;
99 CSDVersion->Length = CmCSDVersionString.Length;
100 CSDVersion->MaximumLength = CmCSDVersionString.Maximum;
101 CSDVersion->Buffer = CmCSDVersionString.Buffer;
105 /* FIXME: How do we determine if build is checked or free? */