Modified NtDelayExecution Prototype/Function to use LARGE_INTEGER and not TIME, and...
authorAlex Ionescu <aionescu@gmail.com>
Sat, 1 Jan 2005 01:03:31 +0000 (01:03 +0000)
committerAlex Ionescu <aionescu@gmail.com>
Sat, 1 Jan 2005 01:03:31 +0000 (01:03 +0000)
svn path=/trunk/; revision=12673

reactos/include/ntos/ntdef.h
reactos/include/ntos/zw.h
reactos/ntoskrnl/ke/timer.c
reactos/ntoskrnl/ke/wait.c
reactos/ntoskrnl/rtl/rangelist.c

index 5bdc580..ccc5369 100644 (file)
@@ -11,7 +11,9 @@
 #ifndef __INCLUDE_NTDEF_H
 #define __INCLUDE_NTDEF_H
 
-#define EX_MAXIMUM_WAIT_OBJECTS (64)
+#ifndef _USE_W32API
+#define MAXIMUM_WAIT_OBJECTS (64)
+#endif
 
 #if defined(_MSC_VER) && (_MSC_VER >= 1300) && defined(__cplusplus)
 # define TYPE_ALIGNMENT(t) __alignof(t)
index 9d75ed7..1edab4a 100755 (executable)
@@ -1,4 +1,4 @@
-/* $Id: zw.h,v 1.40 2004/12/30 08:05:10 hyperion Exp $
+/* $Id$
  *
  * COPYRIGHT:        See COPYING in the top level directory
  * PROJECT:          ReactOS kernel
@@ -5241,7 +5241,7 @@ NTSTATUS
 STDCALL
 NtDelayExecution(
        IN ULONG Alertable,
-       IN TIME *Interval
+       IN LARGE_INTEGER *Interval
        );
 
 /*
index 206d17d..28a44c3 100644 (file)
@@ -1,4 +1,4 @@
-/* $Id: timer.c,v 1.93 2004/12/24 17:06:58 navaraf Exp $
+/* $Id$
  *
  * COPYRIGHT:      See COPYING in the top level directory
  * PROJECT:        ReactOS kernel
@@ -138,7 +138,7 @@ NtQueryPerformanceCounter(IN PLARGE_INTEGER Counter,
 
 NTSTATUS STDCALL
 NtDelayExecution(IN ULONG Alertable,
-                IN TIME* Interval)
+                IN LARGE_INTEGER* Interval)
 {
    NTSTATUS Status;
    LARGE_INTEGER Timeout;
index 5feb98b..7ee3330 100644 (file)
@@ -492,7 +492,7 @@ KeWaitForMultipleObjects(ULONG Count,
    DPRINT("Entering KeWaitForMultipleObjects(Count %lu Object[] %p) "
           "PsGetCurrentThread() %x\n", Count, Object, PsGetCurrentThread());
 
-   ASSERT(0 < Count && Count <= EX_MAXIMUM_WAIT_OBJECTS);
+   ASSERT(0 < Count && Count <= MAXIMUM_WAIT_OBJECTS);
 
    CurrentThread = KeGetCurrentThread();
 
@@ -510,7 +510,7 @@ KeWaitForMultipleObjects(ULONG Count,
    }
    else
    {
-      if (Count > EX_MAXIMUM_WAIT_OBJECTS)
+      if (Count > MAXIMUM_WAIT_OBJECTS)
       {
          DPRINT("(%s:%d) Too many objects!\n", __FILE__, __LINE__);
          return (STATUS_UNSUCCESSFUL);
@@ -762,8 +762,8 @@ NtWaitForMultipleObjects(IN ULONG Count,
                         IN BOOLEAN Alertable,
                         IN PLARGE_INTEGER UnsafeTime)
 {
-   KWAIT_BLOCK WaitBlockArray[EX_MAXIMUM_WAIT_OBJECTS];
-   PVOID ObjectPtrArray[EX_MAXIMUM_WAIT_OBJECTS];
+   KWAIT_BLOCK WaitBlockArray[MAXIMUM_WAIT_OBJECTS];
+   PVOID ObjectPtrArray[MAXIMUM_WAIT_OBJECTS];
    NTSTATUS Status;
    ULONG i, j;
    KPROCESSOR_MODE WaitMode;
@@ -772,7 +772,7 @@ NtWaitForMultipleObjects(IN ULONG Count,
    DPRINT("NtWaitForMultipleObjects(Count %lu Object[] %x, Alertable %d, "
          "Time %x)\n", Count,Object,Alertable,Time);
 
-   if (Count > EX_MAXIMUM_WAIT_OBJECTS)
+   if (Count > MAXIMUM_WAIT_OBJECTS)
      return STATUS_UNSUCCESSFUL;
    if (0 == Count)
      return STATUS_INVALID_PARAMETER;
index 7a9ac22..3e17247 100644 (file)
@@ -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: rangelist.c,v 1.3 2004/10/22 16:30:58 navaraf Exp $
+/* $Id$
  *
  * COPYRIGHT:         See COPYING in the top level directory
  * PROJECT:           ReactOS system libraries