Add information letting us know creation deletion of services has worked.
[reactos.git] / reactos / subsys / csrss / video.c
index aa82553..fff97dc 100644 (file)
@@ -1,15 +1,18 @@
-/* $Id: video.c,v 1.9 2003/12/26 09:52:37 navaraf Exp $
+/* $Id$
  *
  * ReactOS Project
  */
-#include <ddk/ntddk.h>
-#include <rosrtl/string.h>
+
+#include <csrss.h>
+
+#define NDEBUG
+#include <debug.h>
 
 ULONG
 InitializeVideoAddressSpace(VOID)
 {
    OBJECT_ATTRIBUTES ObjectAttributes;
-   UNICODE_STRING PhysMemName;
+   UNICODE_STRING PhysMemName = RTL_CONSTANT_STRING(L"\\Device\\PhysicalMemory");
    NTSTATUS Status;
    HANDLE PhysMemHandle;
    PVOID BaseAddress;
@@ -22,13 +25,12 @@ InitializeVideoAddressSpace(VOID)
    /*
     * Open the physical memory section
     */
-   RtlRosInitUnicodeStringFromLiteral(&PhysMemName, L"\\Device\\PhysicalMemory");
    InitializeObjectAttributes(&ObjectAttributes,
                              &PhysMemName,
                              0,
                              NULL,
                              NULL);
-   Status = NtOpenSection(&PhysMemHandle, SECTION_ALL_ACCESS, 
+   Status = ZwOpenSection(&PhysMemHandle, SECTION_ALL_ACCESS,
                          &ObjectAttributes);
    if (!NT_SUCCESS(Status))
      {
@@ -99,13 +101,13 @@ InitializeVideoAddressSpace(VOID)
        DbgPrint("NtVdmControl failed (status %x)\n", Status);
        return(0);
      }
-   
+
    /*
     * Copy the real mode IVT into the right place
     */
    NullAddress = (PVOID)0x0; /* Workaround for GCC 3.4 */
    memcpy(NullAddress, IVT, 1024);
-   
+
    /*
     * Get the BDA from the kernel
     */
@@ -115,7 +117,7 @@ InitializeVideoAddressSpace(VOID)
        DbgPrint("NtVdmControl failed (status %x)\n", Status);
        return(0);
      }
-   
+
    /*
     * Copy the BDA into the right place
     */