:pserver:cvsanon@mok.lvcm.com:/CVS/ReactOS reactos
[reactos.git] / lib / ntdll / rtl / misc.c
1 /* $Id$
2  *
3  * COPYRIGHT:         See COPYING in the top level directory
4  * PROJECT:           ReactOS kernel
5  * PURPOSE:           Various functions
6  * FILE:              lib/ntdll/rtl/misc.c
7  * PROGRAMER:         Eric Kohl <ekohl@zr-online.de>
8  * REVISION HISTORY:
9  *                    10/08/2000: Created
10  */
11
12 /* INCLUDES *****************************************************************/
13
14 #include <ddk/ntddk.h>
15 #include <ntdll/rtl.h>
16
17 /* GLOBALS ******************************************************************/
18
19 extern ULONG NtGlobalFlag;
20
21 /* FUNCTIONS ****************************************************************/
22
23 /**********************************************************************
24  * NAME                                                 EXPORTED
25  *      RtlGetNtGlobalFlags
26  *
27  * DESCRIPTION
28  *      Retrieves the global os flags.
29  *
30  * ARGUMENTS
31  *      None
32  *
33  * RETURN VALUE
34  *      global flags
35  *
36  * REVISIONS
37  *      2000-08-10 ekohl
38  */
39
40 ULONG STDCALL
41 RtlGetNtGlobalFlags(VOID)
42 {
43   return(NtGlobalFlag);
44 }
45
46
47 /**********************************************************************
48  * NAME                                                 EXPORTED
49  *      RtlGetNtProductType
50  *
51  * DESCRIPTION
52  *      Retrieves the OS product type.
53  *
54  * ARGUMENTS
55  *      ProductType     Pointer to the product type variable.
56  *
57  * RETURN VALUE
58  *      TRUE if successful, otherwise FALSE
59  *
60  * NOTE
61  *      ProductType can be one of the following values:
62  *        1     Workstation (Winnt)
63  *        2     Server (Lanmannt)
64  *        3     Advanced Server (Servernt)
65  *
66  * REVISIONS
67  *      2000-08-10 ekohl
68  */
69
70 BOOLEAN STDCALL
71 RtlGetNtProductType(PNT_PRODUCT_TYPE ProductType)
72 {
73   *ProductType = SharedUserData->NtProductType;
74   return(TRUE);
75 }
76
77 /* EOF */