Updated Ps* functions
[reactos.git] / reactos / ntoskrnl / ps / psmgr.c
1 /* $Id: psmgr.c,v 1.7 2000/06/03 21:36:32 ekohl Exp $
2 *
3 * COPYRIGHT: See COPYING in the top level directory
4 * PROJECT: ReactOS kernel
5 * FILE: ntoskrnl/ps/psmgr.c
6 * PURPOSE: Process managment
7 * PROGRAMMER: David Welch (welch@mcmail.com)
8 */
9
10 /* INCLUDES **************************************************************/
11
12 #include <ddk/ntddk.h>
13 #include <internal/ps.h>
14 #include <reactos/version.h>
15
16 #include <internal/debug.h>
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 }
34
35
36 /**********************************************************************
37 * NAME EXPORTED
38 * PsGetVersion
39 *
40 * DESCRIPTION
41 * Retrieves the current OS version.
42 *
43 * ARGUMENTS
44 * MajorVersion Pointer to a variable that will be set to the
45 * major version of the OS. Can be NULL.
46 *
47 * MinorVersion Pointer to a variable that will be set to the
48 * minor version of the OS. Can be NULL.
49 *
50 * BuildNumber Pointer to a variable that will be set to the
51 * build number of the OS. Can be NULL.
52 *
53 * CSDVersion Pointer to a variable that will be set to the
54 * CSD string of the OS. Can be NULL.
55 *
56 * RETURN VALUE
57 * TRUE OS is a checked build.
58 * FALSE OS is a free build.
59 *
60 * NOTES
61 * The DDK docs say something about a 'CmCSDVersionString'.
62 * How do we determine in the build is checked or free??
63 */
64
65 BOOLEAN
66 STDCALL
67 PsGetVersion (
68 PULONG MajorVersion OPTIONAL,
69 PULONG MinorVersion OPTIONAL,
70 PULONG BuildNumber OPTIONAL,
71 PUNICODE_STRING CSDVersion OPTIONAL
72 )
73 {
74 if (MajorVersion)
75 *MajorVersion = KERNEL_VERSION_MAJOR;
76
77 if (MinorVersion)
78 *MinorVersion = KERNEL_VERSION_MINOR;
79
80 if (BuildNumber)
81 *BuildNumber = NtBuildNumber;
82
83 if (CSDVersion)
84 {
85 CSDVersion->Length = 0;
86 CSDVersion->MaximumLength = 0;
87 CSDVersion->Buffer = NULL;
88 #if 0
89 CSDVersion->Length = CmCSDVersionString.Length;
90 CSDVersion->MaximumLength = CmCSDVersionString.Maximum;
91 CSDVersion->Buffer = CmCSDVersionString.Buffer;
92 #endif
93 }
94
95 /* FIXME: How do we determine if build is checked or free? */
96 return FALSE;
97 }
98
99 /* EOF */