52d9fa6ca7f28cf1e0a192bda0bad02f97094826
[reactos.git] / reactos / ntoskrnl / ps / psmgr.c
1 /* $Id$
2 *
3 * COPYRIGHT: See COPYING in the top level directory
4 * PROJECT: ReactOS kernel
5 * FILE: ntoskrnl/ps/psmgr.c
6 * PURPOSE: Process management
7 *
8 * PROGRAMMERS: David Welch (welch@mcmail.com)
9 */
10
11 /* INCLUDES **************************************************************/
12
13 #include <ntoskrnl.h>
14 #define NDEBUG
15 #include <internal/debug.h>
16
17 /* FUNCTIONS ***************************************************************/
18
19 VOID PiShutdownProcessManager(VOID)
20 {
21 DPRINT("PiShutdownProcessManager()\n");
22
23 PiKillMostProcesses();
24 }
25
26 VOID INIT_FUNCTION
27 PiInitProcessManager(VOID)
28 {
29 PsInitJobManagment();
30 PsInitProcessManagment();
31 PsInitThreadManagment();
32 PsInitIdleThread();
33 PsInitReaperThread();
34 PsInitialiseSuspendImplementation();
35 PsInitialiseW32Call();
36 }
37
38
39 /**********************************************************************
40 * NAME EXPORTED
41 * PsGetVersion
42 *
43 * DESCRIPTION
44 * Retrieves the current OS version.
45 *
46 * ARGUMENTS
47 * MajorVersion Pointer to a variable that will be set to the
48 * major version of the OS. Can be NULL.
49 *
50 * MinorVersion Pointer to a variable that will be set to the
51 * minor version of the OS. Can be NULL.
52 *
53 * BuildNumber Pointer to a variable that will be set to the
54 * build number of the OS. Can be NULL.
55 *
56 * CSDVersion Pointer to a variable that will be set to the
57 * CSD string of the OS. Can be NULL.
58 *
59 * RETURN VALUE
60 * TRUE OS is a checked build.
61 * FALSE OS is a free build.
62 *
63 * NOTES
64 * The DDK docs say something about a 'CmCSDVersionString'.
65 * How do we determine in the build is checked or free??
66 *
67 * @unimplemented
68 */
69
70 BOOLEAN
71 STDCALL
72 PsGetVersion (
73 PULONG MajorVersion OPTIONAL,
74 PULONG MinorVersion OPTIONAL,
75 PULONG BuildNumber OPTIONAL,
76 PUNICODE_STRING CSDVersion OPTIONAL
77 )
78 {
79 if (MajorVersion)
80 *MajorVersion = 4;
81
82 if (MinorVersion)
83 *MinorVersion = 0;
84
85 if (BuildNumber)
86 *BuildNumber = 1381;
87
88 if (CSDVersion)
89 {
90 CSDVersion->Length = 0;
91 CSDVersion->MaximumLength = 0;
92 CSDVersion->Buffer = NULL;
93 #if 0
94 CSDVersion->Length = CmCSDVersionString.Length;
95 CSDVersion->MaximumLength = CmCSDVersionString.Maximum;
96 CSDVersion->Buffer = CmCSDVersionString.Buffer;
97 #endif
98 }
99
100 /* FIXME: How do we determine if build is checked or free? */
101 return FALSE;
102 }
103
104 /* EOF */