update for HEAD-2003091401
[reactos.git] / ntoskrnl / io / iocomp.c
index 0bb9b96..dddc777 100644 (file)
 /* INCLUDES *****************************************************************/
 
 #include <limits.h>
-#include <ddk/ntddk.h>
-#include <ntos/synch.h>
+#define NTOS_MODE_KERNEL
+#include <ntos.h>
+//#include <ntos/synch.h>
+#include <internal/io.h>
 
 #define NDEBUG
 #include <internal/debug.h>
@@ -113,7 +115,7 @@ NtCreateIoCompletion(
    PKQUEUE     Queue;
    NTSTATUS    Status;
    
-   Status = ObCreateObject(IoCompletionHandle,
+   Status = ObRosCreateObject(IoCompletionHandle,
                            DesiredAccess,
                            ObjectAttributes,
                            ExIoCompletionType,
@@ -201,7 +203,7 @@ NtQueryIoCompletion(
                                        NULL);
    if (NT_SUCCESS(Status))
    {
-      ((PIO_COMPLETION_BASIC_INFORMATION)IoCompletionInformation)->SignalState = 
+      ((PIO_COMPLETION_BASIC_INFORMATION)IoCompletionInformation)->Depth = 
          Queue->Header.SignalState;
 
       ObDereferenceObject(Queue);