Commit in reactos on MAIN
lib/ntdll/makefile+2-61.110 -> 1.111
lib/rtl/version.c+63-11.3 -> 1.4
ntoskrnl/ntoskrnl.def+2-11.197 -> 1.198
lib/ntdll/ver/.cvsignore-31.1 removed
             /ver.c-761.1 removed
+67-87
2 removed + 3 modified, total 5 files
Moved VerSetConditionMask in RTL so it can be exported from ntoskrnl too

reactos/lib/ntdll
makefile 1.110 -> 1.111
diff -u -r1.110 -r1.111
--- makefile	7 Nov 2004 13:08:24 -0000	1.110
+++ makefile	7 Nov 2004 18:45:52 -0000	1.111
@@ -1,4 +1,4 @@
-# $Id: makefile,v 1.110 2004/11/07 13:08:24 hyperion Exp $
+# $Id: makefile,v 1.111 2004/11/07 18:45:52 hyperion Exp $
 
 PATH_TO_TOP = ../..
 
@@ -122,9 +122,6 @@
 	string/strupr.o \
 	string/wstring.o
 
-VER_OBJECTS = \
-	ver/ver.o
-
 ARCH_OBJECTS = \
 	$(RTL_I386_OBJECTS)
 
@@ -137,8 +134,7 @@
 	$(RTL_OBJECTS) \
 	$(STDIO_OBJECTS) \
 	$(STDLIB_OBJECTS) \
-	$(STRING_OBJECTS) \
-        $(VER_OBJECTS)
+	$(STRING_OBJECTS)
 
 DEP_OBJECTS = $(TARGET_OBJECTS)
 DEP_EXCLUDE_FILTER = napi.%

reactos/lib/rtl
version.c 1.3 -> 1.4
diff -u -r1.3 -r1.4
--- version.c	7 Aug 2004 19:13:25 -0000	1.3
+++ version.c	7 Nov 2004 18:45:52 -0000	1.4
@@ -16,7 +16,7 @@
  *  along with this program; if not, write to the Free Software
  *  Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  */
-/* $Id: version.c,v 1.3 2004/08/07 19:13:25 ion Exp $
+/* $Id: version.c,v 1.4 2004/11/07 18:45:52 hyperion Exp $
  *
  * PROJECT:           ReactOS kernel
  * PURPOSE:           Runtime code
@@ -98,4 +98,66 @@
 }
 */
 
+/*
+ Header hell made me do it, don't blame me. Please move these somewhere more
+ sensible
+*/
+#define VER_EQUAL         1
+#define VER_GREATER       2
+#define VER_GREATER_EQUAL 3
+#define VER_LESS          4
+#define VER_LESS_EQUAL    5
+#define VER_AND           6
+#define VER_OR            7
+
+#define VER_CONDITION_MASK              7
+#define VER_NUM_BITS_PER_CONDITION_MASK 3
+
+#define VER_MINORVERSION     0x0000001
+#define VER_MAJORVERSION     0x0000002
+#define VER_BUILDNUMBER      0x0000004
+#define VER_PLATFORMID       0x0000008
+#define VER_SERVICEPACKMINOR 0x0000010
+#define VER_SERVICEPACKMAJOR 0x0000020
+#define VER_SUITENAME        0x0000040
+#define VER_PRODUCT_TYPE     0x0000080
+
+/*
+ * @implemented
+ */
+ULONGLONG NTAPI VerSetConditionMask
+(
+ IN ULONGLONG dwlConditionMask,
+ IN DWORD dwTypeBitMask,
+ IN BYTE dwConditionMask
+)
+{
+ if(dwTypeBitMask == 0)
+  return dwlConditionMask;
+
+ dwConditionMask &= VER_CONDITION_MASK;
+
+ if(dwConditionMask == 0)
+  return dwlConditionMask;
+
+ if(dwTypeBitMask & VER_PRODUCT_TYPE)
+  dwlConditionMask |= dwConditionMask << 7 * VER_NUM_BITS_PER_CONDITION_MASK;
+ else if(dwTypeBitMask & VER_SUITENAME)
+  dwlConditionMask |= dwConditionMask << 6 * VER_NUM_BITS_PER_CONDITION_MASK;
+ else if(dwTypeBitMask & VER_SERVICEPACKMAJOR)
+  dwlConditionMask |= dwConditionMask << 5 * VER_NUM_BITS_PER_CONDITION_MASK;
+ else if(dwTypeBitMask & VER_SERVICEPACKMINOR)
+  dwlConditionMask |= dwConditionMask << 4 * VER_NUM_BITS_PER_CONDITION_MASK;
+ else if(dwTypeBitMask & VER_PLATFORMID)
+  dwlConditionMask |= dwConditionMask << 3 * VER_NUM_BITS_PER_CONDITION_MASK;
+ else if(dwTypeBitMask & VER_BUILDNUMBER)
+  dwlConditionMask |= dwConditionMask << 2 * VER_NUM_BITS_PER_CONDITION_MASK;
+ else if(dwTypeBitMask & VER_MAJORVERSION)
+  dwlConditionMask |= dwConditionMask << 1 * VER_NUM_BITS_PER_CONDITION_MASK;
+ else if(dwTypeBitMask & VER_MINORVERSION)
+  dwlConditionMask |= dwConditionMask << 0 * VER_NUM_BITS_PER_CONDITION_MASK;
+
+ return dwlConditionMask;
+}
+
 /* EOF */

reactos/ntoskrnl
ntoskrnl.def 1.197 -> 1.198
diff -u -r1.197 -r1.198
--- ntoskrnl.def	30 Oct 2004 23:48:57 -0000	1.197
+++ ntoskrnl.def	7 Nov 2004 18:45:52 -0000	1.198
@@ -1,4 +1,4 @@
-; $Id: ntoskrnl.def,v 1.197 2004/10/30 23:48:57 navaraf Exp $
+; $Id: ntoskrnl.def,v 1.198 2004/11/07 18:45:52 hyperion Exp $
 ;
 ; reactos/ntoskrnl/ntoskrnl.def
 ;
@@ -1281,6 +1281,7 @@
 SeUnlockSubjectContext@4
 SeUnregisterLogonSessionTerminatedRoutine@4
 SeValidSecurityDescriptor@8
+VerSetConditionMask@16
 WRITE_REGISTER_UCHAR@8
 WRITE_REGISTER_ULONG@8
 WRITE_REGISTER_USHORT@8

reactos/lib/ntdll/ver
.cvsignore removed after 1.1
diff -N .cvsignore
--- .cvsignore	7 Nov 2004 13:08:24 -0000	1.1
+++ /dev/null	1 Jan 1970 00:00:00 -0000
@@ -1,3 +0,0 @@
-*.d
-*.o
-*.sym

reactos/lib/ntdll/ver
ver.c removed after 1.1
diff -N ver.c
--- ver.c	7 Nov 2004 13:08:24 -0000	1.1
+++ /dev/null	1 Jan 1970 00:00:00 -0000
@@ -1,76 +0,0 @@
-/* $Id: ver.c,v 1.1 2004/11/07 13:08:24 hyperion Exp $
- *
- * COPYRIGHT:       See COPYING in the top level directory
- * PROJECT:         ReactOS NT Layer DLL
- * FILE:            lib/ntdll/ver/ver.c
- * PURPOSE:         Operating system version checking
- * PROGRAMMERS:     KJK::Hyperion
- * HISTORY:         2004-11-07: Created (imported from Wine)
- */
-
-#include <ddk/ntddk.h>
-
-/*
- Header hell made me do it, don't blame me. Please move these somewhere more
- sensible
-*/
-#define VER_EQUAL         1
-#define VER_GREATER       2
-#define VER_GREATER_EQUAL 3
-#define VER_LESS          4
-#define VER_LESS_EQUAL    5
-#define VER_AND           6
-#define VER_OR            7
-
-#define VER_CONDITION_MASK              7
-#define VER_NUM_BITS_PER_CONDITION_MASK 3
-
-#define VER_MINORVERSION     0x0000001
-#define VER_MAJORVERSION     0x0000002
-#define VER_BUILDNUMBER      0x0000004
-#define VER_PLATFORMID       0x0000008
-#define VER_SERVICEPACKMINOR 0x0000010
-#define VER_SERVICEPACKMAJOR 0x0000020
-#define VER_SUITENAME        0x0000040
-#define VER_PRODUCT_TYPE     0x0000080
-
-#define VER_NT_WORKSTATION       0x0000001
-#define VER_NT_DOMAIN_CONTROLLER 0x0000002
-#define VER_NT_SERVER            0x0000003
-
-ULONGLONG NTAPI VerSetConditionMask
-(
- IN ULONGLONG dwlConditionMask,
- IN DWORD dwTypeBitMask,
- IN BYTE dwConditionMask
-)
-{
- if(dwTypeBitMask == 0)
-  return dwlConditionMask;
-
- dwConditionMask &= VER_CONDITION_MASK;
-
- if(dwConditionMask == 0)
-  return dwlConditionMask;
-
- if(dwTypeBitMask & VER_PRODUCT_TYPE)
-  dwlConditionMask |= dwConditionMask << 7 * VER_NUM_BITS_PER_CONDITION_MASK;
- else if(dwTypeBitMask & VER_SUITENAME)
-  dwlConditionMask |= dwConditionMask << 6 * VER_NUM_BITS_PER_CONDITION_MASK;
- else if(dwTypeBitMask & VER_SERVICEPACKMAJOR)
-  dwlConditionMask |= dwConditionMask << 5 * VER_NUM_BITS_PER_CONDITION_MASK;
- else if(dwTypeBitMask & VER_SERVICEPACKMINOR)
-  dwlConditionMask |= dwConditionMask << 4 * VER_NUM_BITS_PER_CONDITION_MASK;
- else if(dwTypeBitMask & VER_PLATFORMID)
-  dwlConditionMask |= dwConditionMask << 3 * VER_NUM_BITS_PER_CONDITION_MASK;
- else if(dwTypeBitMask & VER_BUILDNUMBER)
-  dwlConditionMask |= dwConditionMask << 2 * VER_NUM_BITS_PER_CONDITION_MASK;
- else if(dwTypeBitMask & VER_MAJORVERSION)
-  dwlConditionMask |= dwConditionMask << 1 * VER_NUM_BITS_PER_CONDITION_MASK;
- else if(dwTypeBitMask & VER_MINORVERSION)
-  dwlConditionMask |= dwConditionMask << 0 * VER_NUM_BITS_PER_CONDITION_MASK;
-
- return dwlConditionMask;
-}
-
-/* EOF */
CVSspam 0.2.8