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