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