NTOSKRNL.ZwXXX functions now call NTOSKRNL.NtXXX via int 0x2e.
authorEmanuele Aliberti <ea@iol.it>
Fri, 18 Jun 1999 22:11:21 +0000 (22:11 +0000)
committerEmanuele Aliberti <ea@iol.it>
Fri, 18 Jun 1999 22:11:21 +0000 (22:11 +0000)
svn path=/trunk/; revision=558

55 files changed:
reactos/iface/native/genntdll.c
reactos/include/reactos/resource.h
reactos/lib/advapi32/makefile
reactos/lib/crtdll/makefile
reactos/lib/fmifs/makefile
reactos/lib/gdi32/makefile
reactos/lib/kernel32/makefile
reactos/lib/ntdll/makefile
reactos/lib/user32/makefile_rex
reactos/ntoskrnl/cm/registry.c
reactos/ntoskrnl/ex/power.c
reactos/ntoskrnl/ex/sysinfo.c
reactos/ntoskrnl/ex/time.c
reactos/ntoskrnl/io/cancel.c
reactos/ntoskrnl/io/create.c
reactos/ntoskrnl/io/device.c
reactos/ntoskrnl/io/dir.c
reactos/ntoskrnl/io/file.c
reactos/ntoskrnl/io/flush.c
reactos/ntoskrnl/io/fs.c
reactos/ntoskrnl/io/iocomp.c
reactos/ntoskrnl/io/ioctrl.c
reactos/ntoskrnl/io/lock.c
reactos/ntoskrnl/io/mailslot.c
reactos/ntoskrnl/io/npipe.c
reactos/ntoskrnl/io/rw.c
reactos/ntoskrnl/io/symlink.c
reactos/ntoskrnl/io/vpb.c
reactos/ntoskrnl/ke/apc.c
reactos/ntoskrnl/ke/catch.c
reactos/ntoskrnl/ke/timer.c
reactos/ntoskrnl/ke/wait.c
reactos/ntoskrnl/makefile_rex
reactos/ntoskrnl/mm/paging.c
reactos/ntoskrnl/mm/section.c
reactos/ntoskrnl/mm/virtual.c
reactos/ntoskrnl/nt/atom.c
reactos/ntoskrnl/nt/channel.c
reactos/ntoskrnl/nt/evtpair.c
reactos/ntoskrnl/nt/mutant.c
reactos/ntoskrnl/nt/ntevent.c
reactos/ntoskrnl/nt/ntsem.c
reactos/ntoskrnl/nt/nttimer.c
reactos/ntoskrnl/nt/port.c
reactos/ntoskrnl/ntoskrnl.def
reactos/ntoskrnl/ob/dirobj.c
reactos/ntoskrnl/ob/handle.c
reactos/ntoskrnl/ob/ntobj.c
reactos/ntoskrnl/ps/kill.c
reactos/ntoskrnl/ps/process.c
reactos/ntoskrnl/ps/thread.c
reactos/ntoskrnl/ps/tinfo.c
reactos/ntoskrnl/se/semgr.c
reactos/rules.mak
reactos/services/winlogon/winlogon.c

index 03827fd..8f70fc4 100644 (file)
@@ -1,4 +1,4 @@
-/* $Id: genntdll.c,v 1.7 1999/06/17 18:09:27 ea Exp $
+/* $Id: genntdll.c,v 1.8 1999/06/18 22:10:58 ea Exp $
  *
  * COPYRIGHT:             See COPYING in the top level directory
  * PROJECT:               ReactOS version of ntdll
@@ -112,7 +112,7 @@ process(
                                *stmp = '\0';
                        }
 #ifdef VERBOSE
-                       printf("name = \"%s\" value = %d\n",name,sys_call_idx);
+                       printf("%3d \"%s\"\n",sys_call_idx,name);
 #endif
                        /*
                         * Write the NTDLL stub for the current
index acc9ad9..1314348 100644 (file)
@@ -7,7 +7,7 @@
 #define RES_UINT_FV_MINOR      0
 #define RES_UINT_FV_REVISION   14
 /* Build number as YYYYMMDD */
-#define RES_UINT_FV_BUILD      19990608
+#define RES_UINT_FV_BUILD      19990618
 
 /* ReactOS Product Version UINTs */
 
@@ -15,7 +15,7 @@
 #define RES_UINT_PV_MINOR      0
 #define RES_UINT_PV_REVISION   14
 /* Build number as YYYYMMDD */
-#define RES_UINT_PV_BUILD      19990608
+#define RES_UINT_PV_BUILD      19990618
 
 /* Common version strings for rc scripts */
 
index 1936a56..4545063 100644 (file)
@@ -1,4 +1,4 @@
-# $Id: makefile,v 1.2 1999/05/19 16:43:30 ea Exp $
+# $Id: makefile,v 1.3 1999/06/18 22:10:58 ea Exp $
 #
 # Makefile for ReactOS advapi32.dll
 #
@@ -73,7 +73,6 @@ $(TARGET).dll: $(DLLMAIN) $(OBJECTS) $(TARGET).def
        $(NM) --numeric-sort $(TARGET).dll > $(TARGET).sym
 
 $(TARGET).coff: $(TARGET).rc ../../include/reactos/resource.h
-       $(RC) $(TARGET).rc $(TARGET).coff
 
 clean:
 
index c764706..3fcf382 100644 (file)
@@ -1,11 +1,16 @@
+# $Id: makefile,v 1.30 1999/06/18 22:11:00 ea Exp $
+#
+# ReactOS Operating System
+#
+TARGET=crtdll
 ifneq ($(HOST),mingw32-windows)
   ifneq ($(HOST),mingw32-linux)
-    DLLTARGET=crtdll.a
+    DLLTARGET=$(TARGET).a
   else
-    DLLTARGET=crtdll.dll
+    DLLTARGET=$(TARGET).dll
   endif
 else
-  DLLTARGET=crtdll.dll
+  DLLTARGET=$(TARGET).dll
 endif
 
 all: $(DLLTARGET)
@@ -132,7 +137,7 @@ MATH_OBJECTS = math/acos.o math/acosh.o math/asin.o math/asinh.o math/atan.o mat
                math/tanh.o math/stubs.o math/j0_y0.o math/j1_y1.o math/jn_yn.o\
                math/cabs.o math/ftol.o
 
-RESOURCE_OBJECT = crtdll.coff
+RESOURCE_OBJECT = $(TARGET).coff
 
 OBJECTS = $(MISC_OBJECTS) $(STDLIB_OBJECTS) $(IO_OBJECTS) \
          $(FLOAT_OBJECTS) $(ASSERT_OBJECTS) $(PROCESS_OBJECTS) \
@@ -148,39 +153,54 @@ CLEAN_FILES = assert\*.o conio\*.o ctype\*.o direct\*.o dirent\*.o \
        except\*.o float\*.o io\*.o libc\*.o locale\*.o malloc\*.o \
        math\*.o mbstring\*.o misc\*.o process\*.o quad\*.o search\*.o \
        setjmp\*.o stdio\*.o stdlib\*.o string\*.o sys_stat\*.o tchar\*.o \
-       time\*.o wchar\*.o crtdll.a crtdll.o crtdll.dll crtdll.sym
+       time\*.o wchar\*.o $(TARGET).a $(TARGET).o $(TARGET).dll $(TARGET).sym \
+       $(TARGET).coff
 else
 CLEAN_FILES = assert/*.o conio/*.o ctype/*.o direct/*.o dirent/*.o \
        except/*.o float/*.o io/*.o libc/*.o locale/*.o malloc/*.o \
        math/*.o mbstring/*.o misc/*.o process/*.o quad/*.o search/*.o \
        setjmp/*.o stdio/*.o stdlib/*.o string/*.o sys_stat/*.o tchar/*.o \
-       time/*.o wchar/*.o crtdll.a crtdll.o crtdll.dll crtdll.sym
+       time/*.o wchar/*.o $(TARGET).a $(TARGET).o $(TARGET).dll $(TARGET).sym \
+       $(TARGET).coff
 endif
 
-crtdll.coff: crtdll.rc ../../include/reactos/resource.h
-       $(RC) crtdll.rc crtdll.coff
-
-crtdll.a: $(OBJECTS)
-       $(LD)  -r $(OBJECTS) -o crtdll.a
-
-crtdll.dll: $(DLLMAIN) $(OBJECTS) crtdll.def
-       $(LD) -r $(OBJECTS) -o crtdll.o
-       $(DLLTOOL) --dllname crtdll.dll --def crtdll.def \
-                  --output-lib crtdll.a
-       $(CC) -specs=crt_specs -mdll -o junk.tmp \
-             -Wl,--base-file,base.tmp crtdll.o  ../kernel32/kernel32.a 
+$(TARGET).coff: $(TARGET).rc ../../include/reactos/resource.h
+
+$(TARGET).a: $(OBJECTS)
+       $(LD)  -r $(OBJECTS) -o $(TARGET).a
+
+$(TARGET).dll: $(DLLMAIN) $(OBJECTS) $(TARGET).def
+       $(LD) -r $(OBJECTS) -o $(TARGET).o
+       $(DLLTOOL) \
+               --dllname $(TARGET).dll \
+               --def $(TARGET).def \
+               --output-lib $(TARGET).a
+       $(CC) \
+               -specs=crt_specs \
+               -mdll \
+               -o junk.tmp \
+               -Wl,--base-file,base.tmp \
+               $(TARGET).o \
+               ../kernel32/kernel32.a 
        - $(RM) junk.tmp
-       $(DLLTOOL) --dllname crtdll.dll --base-file base.tmp \
-                  --output-exp temp.exp --def crtdll.def
+       $(DLLTOOL) \
+               --dllname $(TARGET).dll \
+               --base-file base.tmp \
+               --output-exp temp.exp \
+               --def $(TARGET).def
        - $(RM) base.tmp
-       $(CC) -specs=crt_specs -mdll -o crtdll.dll crtdll.o  \
-              ../kernel32/kernel32.a \
-             -Wl,--image-base,0x20000000 \
-             -Wl,--file-alignment,0x1000 \
-             -Wl,--section-alignment,0x1000 \
-             -Wl,temp.exp
+       $(CC) \
+               -specs=crt_specs \
+               -mdll \
+               -o $(TARGET).dll \
+               $(TARGET).o  \
+               ../kernel32/kernel32.a \
+               -Wl,--image-base,0x20000000 \
+               -Wl,--file-alignment,0x1000 \
+               -Wl,--section-alignment,0x1000 \
+               -Wl,temp.exp
        - $(RM) temp.exp
-       $(NM) --numeric-sort crtdll.dll > crtdll.sym
+       $(NM) --numeric-sort $(TARGET).dll > $(TARGET).sym
 
 clean: $(CLEAN_FILES:%=%_clean)
 
index e44e98a..49d1ea6 100644 (file)
@@ -1,4 +1,4 @@
-# $Id: makefile,v 1.2 1999/05/21 05:25:12 ea Exp $
+# $Id: makefile,v 1.3 1999/06/18 22:11:01 ea Exp $
 #
 # Makefile for fmifs.dll
 #
@@ -25,7 +25,6 @@ OBJECTS = $(IFS_OBJECTS) $(MISC_OBJECTS)
 CLEAN_FILES = *.o *.a *.tmp *.dll *.sym *.coff
 
 $(TARGET).coff: $(TARGET).rc ../../include/reactos/resource.h
-       $(RC) $(TARGET).rc $(TARGET).coff
 
 $(TARGET).a: $(OBJECTS)
        $(AR) csr $(TARGET).a $(OBJECTS)
index 1e7cfe9..aa38e0f 100644 (file)
@@ -1,4 +1,4 @@
-# $Id: makefile,v 1.3 1999/05/24 20:04:44 ea Exp $
+# $Id: makefile,v 1.4 1999/06/18 22:11:02 ea Exp $
 #
 # Makefile for ReactOS gdi32.dll
 #
@@ -27,8 +27,7 @@ OBJECTS = $(MAIN_OBJECTS) $(MISC_OBJECTS) $(RESOURCE_OBJECTS)
 $(TARGET).a: $(OBJECTS)
        $(AR) csr $(TARGET).a $(OBJECTS)
 
-$(TARGET).coff: $(TARGET).rc
-       $(RC) $(TARGET).rc $(TARGET).coff
+$(TARGET).coff: $(TARGET).rc ../../include/reactos/resource.h
 
 $(TARGET).dll: $(DLLMAIN) $(OBJECTS) $(TARGET).def
        $(LD) -r $(OBJECTS) -o $(TARGET).o
index ff97924..1bad658 100644 (file)
@@ -1,3 +1,8 @@
+# $Id: makefile,v 1.20 1999/06/18 22:11:03 ea Exp $
+#
+# ReactOS Operating System
+#
+TARGET=kernel32
 
 KERNEL32_BASE = 0x77f00000
 
@@ -5,12 +10,12 @@ CFLAGS = $(CFLAGS) -DKERNEL32_BASE=$(KERNEL32_BASE)
 
 ifneq ($(HOST),mingw32-windows)
   ifneq ($(HOST),mingw32-linux)
-    DLLTARGET=kernel32.a
+    DLLTARGET=$(TARGET).a
   else
-    DLLTARGET=kernel32.dll
+    DLLTARGET=$(TARGET).dll
   endif
 else
-  DLLTARGET=kernel32.dll
+  DLLTARGET=$(TARGET).dll
 endif
 
 all: $(DLLTARGET)
@@ -59,7 +64,7 @@ INTERNAL_OBJECTS = internal/dprintf.o internal/string.o
 
 EXCEPT_OBJECTS = except/except.o
 
-RESOURCE_OBJECT = kernel32.coff
+RESOURCE_OBJECT = $(TARGET).coff
 
 
 OBJECTS = $(MISC_OBJECTS) $(FILE_OBJECTS) $(THREAD_OBJECTS) \
@@ -68,41 +73,59 @@ OBJECTS = $(MISC_OBJECTS) $(FILE_OBJECTS) $(THREAD_OBJECTS) \
          $(RESOURCE_OBJECT)
 
 ifeq ($(DOSCLI),yes)
-CLEAN_FILES = except\*.o file\*.o internal\*.o mem\*.o misc\*.o nls\*.o  \
-              process\*.o string\*.o synch\*.o thread\*.o  \
-              kernel32.o kernel32.a junk.tmp base.tmp temp.exp kernel32.dll kernel32.sym
+CLEAN_FILES = except\*.o file\*.o internal\*.o mem\*.o misc\*.o nls\*.o \
+              process\*.o string\*.o synch\*.o thread\*.o \
+              $(TARGET).o $(TARGET).a junk.tmp base.tmp temp.exp \
+             $(TARGET).dll $(TARGET).sym $(TARGET).coff
 else
 CLEAN_FILES = except/*.o file/*.o internal/*.o mem/*.o misc/*.o nls/*.o  \
               process/*.o string/*.o synch/*.o thread/*.o  \
-              kernel32.o kernel32.a junk.tmp base.tmp temp.exp kernel32.dll kernel32.sym
+              $(TARGET).o $(TARGET).a junk.tmp base.tmp temp.exp \
+             $(TARGET).dll $(TARGET).sym $(TARGET).coff
 endif
 
 nls/ole2nls.o: nls/ole2nls.c
        $(CC) $(CFLAGS) -I. nls/ole2nls.c
 
-kernel32.coff: kernel32.rc ../../include/reactos/resource.h
-       $(RC) kernel32.rc kernel32.coff
-
-kernel32.a: $(OBJECTS)
-       $(AR) csr kernel32.a $(OBJECTS)
-
-kernel32.dll: $(DLLMAIN) $(OBJECTS) kernel32.def
-       $(LD) -r $(OBJECTS) -o kernel32.o
-       $(DLLTOOL) --dllname kernel32.dll --def kernel32.def \
-                  --output-lib kernel32.a
-       $(CC) -specs=k32_specs -mdll -o junk.tmp \
-             -Wl,--base-file,base.tmp kernel32.o  ../ntdll/ntdll.a
+$(TARGET).coff: $(TARGET).rc ../../include/reactos/resource.h
+
+$(TARGET).a: $(OBJECTS)
+       $(AR) csr $(TARGET).a $(OBJECTS)
+
+$(TARGET).dll: $(DLLMAIN) $(OBJECTS) $(TARGET).def
+       $(LD) \
+               -r $(OBJECTS) \
+               -o $(TARGET).o
+       $(DLLTOOL) \
+               --dllname $(TARGET).dll \
+               --def $(TARGET).def \
+               --output-lib $(TARGET).a
+       $(CC) \
+               -specs=k32_specs \
+               -mdll \
+               -o junk.tmp \
+               -Wl,--base-file,base.tmp \
+               $(TARGET).o \
+               ../ntdll/ntdll.a
        - $(RM) junk.tmp
-       $(DLLTOOL) --dllname kernel32.dll --base-file base.tmp \
-                  --output-exp temp.exp --def kernel32.def
+       $(DLLTOOL) \
+               --dllname $(TARGET).dll \
+               --base-file base.tmp \
+               --output-exp temp.exp \
+               --def $(TARGET).def
        - $(RM) base.tmp
-       $(CC) -specs=k32_specs -mdll -o kernel32.dll kernel32.o  ../ntdll/ntdll.a\
-             -Wl,--image-base,$(KERNEL32_BASE) \
-             -Wl,--file-alignment,0x1000 \
-             -Wl,--section-alignment,0x1000 \
-             -Wl,temp.exp
+       $(CC) \
+               -specs=k32_specs \
+               -mdll \
+               -o $(TARGET).dll \
+               $(TARGET).o \
+               ../ntdll/ntdll.a \
+               -Wl,--image-base,$(KERNEL32_BASE) \
+               -Wl,--file-alignment,0x1000 \
+               -Wl,--section-alignment,0x1000 \
+               -Wl,temp.exp
        - $(RM) temp.exp
-       $(NM) --numeric-sort kernel32.dll > kernel32.sym
+       $(NM) --numeric-sort $(TARGET).dll > $(TARGET).sym
 
 clean: $(CLEAN_FILES:%=%_clean)
 
index 6df015f..900bb24 100644 (file)
@@ -1,16 +1,21 @@
+# $Id: makefile,v 1.16 1999/06/18 22:11:03 ea Exp $
+#
+# ReactOS Operating System
+#
+TARGET=ntdll
 
 IMAGE_BASE = 0x77f60000
 
 ifneq ($(HOST),mingw32-windows)
   ifneq ($(HOST),mingw32-linux)
-    DLLTARGET=ntdll.a
+    DLLTARGET=$(TARGET).a
     DLLMAIN=
   else
-    DLLTARGET=ntdll.dll
+    DLLTARGET=$(TARGET).dll
     DLLMAIN=main/dllmain.o
   endif
 else
-  DLLTARGET=ntdll.dll
+  DLLTARGET=$(TARGET).dll
   DLLMAIN=main/dllmain.o
 endif
 
@@ -30,42 +35,61 @@ STRING_OBJECTS = string/ctype.o string/memcpy.o string/memmove.o \
 OBJECTS = napi.o ldr/startup.o rtl/largeint.o rtl/namespc.o rtl/unicode.o \
           stdio/vsprintf.o $(STDLIB_OBJECTS) $(STRING_OBJECTS) \
           stubs/stubs.o rtl/heap.o rtl/critical.o rtl/mem.o \
-          ldr/utils.o ntdll.coff
+          ldr/utils.o $(TARGET).coff
 
 ifeq ($(DOSCLI),yes)
 CLEAN_FILES = napi.o ldr\*.o rtl\*.o stdio\*.o stdlib\*.o string\*.o stubs\*.o \
-              ntdll.a main\dllmain.o ntdll.o ntdll.dll junk.tmp base.tmp temp.exp ntdll.sym
+              $(TARGET).a main\dllmain.o $(TARGET).o $(TARGET).dll junk.tmp \
+             base.tmp temp.exp $(TARGET).sym $(TARGET).coff
 else
 CLEAN_FILES = napi.o ldr/*.o rtl/*.o stdio/*.o stdlib/*.o string/*.o stubs/*.o \
-              ntall.a main/dllmain.o ntdll.o ntdll.dll junk.tmp base.tmp temp.exp ntdll.sym
+              $(TARGET).a main/dllmain.o $(TARGET).o $(TARGET).dll junk.tmp \
+             base.tmp temp.exp $(TARGET).sym $(TARGET).coff
 endif
 
-ntdll.coff: ntdll.rc ../../include/reactos/resource.h
-       $(RC) ntdll.rc ntdll.coff
+$(TARGET).coff: $(TARGET).rc ../../include/reactos/resource.h
 
-ntdll.a: $(OBJECTS)
-       $(AR) csr ntdll.a $(OBJECTS)
+$(TARGET).a: $(OBJECTS)
+       $(AR) csr $(TARGET).a $(OBJECTS)
 
-ntdll.dll: $(DLLMAIN) $(OBJECTS) def/ntdll.def
-       $(LD) -r $(DLLMAIN) $(OBJECTS) -o ntdll.o
-       $(DLLTOOL) --dllname ntdll.dll --def def/ntdll.def \
-                  --output-lib ntdll.a --add-stdcall-alias \
-                  --kill-at
-       $(CC) -specs=ntdll_specs -mdll -o junk.tmp \
-             -Wl,--base-file,base.tmp ntdll.o
+$(TARGET).dll: $(DLLMAIN) $(OBJECTS) def/ntdll.def
+       $(LD) \
+               -r $(DLLMAIN) \
+               $(OBJECTS) \
+               -o $(TARGET).o
+       $(DLLTOOL) \
+               --dllname $(TARGET).dll \
+               --def def/$(TARGET).def \
+               --output-lib $(TARGET).a \
+               --add-stdcall-alias \
+               --kill-at
+       $(CC) \
+               -specs=$(TARGET)_specs \
+               -mdll \
+               -o junk.tmp \
+               -Wl,--base-file,base.tmp \
+               $(TARGET).o
        - $(RM) junk.tmp
-       $(DLLTOOL) --dllname ntdll.dll --base-file base.tmp \
-                  --output-exp temp.exp --def def/ntdll.def \
-                  --add-stdcall-alias --kill-at
+       $(DLLTOOL) \
+               --dllname $(TARGET).dll \
+               --base-file base.tmp \
+               --output-exp temp.exp \
+               --def def/$(TARGET).def \
+               --add-stdcall-alias \
+               --kill-at
        - $(RM) base.tmp
-       $(CC) -specs=ntdll_specs -mdll -o ntdll.dll ntdll.o \
-             -Wl,--entry=_LdrStartup \
-             -Wl,--image-base,$(IMAGE_BASE) \
-             -Wl,--file-alignment,0x1000 \
-             -Wl,--section-alignment,0x1000 \
-             -Wl,temp.exp
+       $(CC) \
+               -specs=$(TARGET)_specs \
+               -mdll \
+               -o $(TARGET).dll \
+               $(TARGET).o \
+               -Wl,--entry=_LdrStartup \
+               -Wl,--image-base,$(IMAGE_BASE) \
+               -Wl,--file-alignment,0x1000 \
+               -Wl,--section-alignment,0x1000 \
+               -Wl,temp.exp
        - $(RM) temp.exp
-       $(NM) --numeric-sort ntdll.dll > ntdll.sym
+       $(NM) --numeric-sort $(TARGET).dll > $(TARGET).sym
 
 clean: $(CLEAN_FILES:%=%_clean)
 
index e00f2f1..9c9ad73 100644 (file)
@@ -1,4 +1,4 @@
-# $Id: makefile_rex,v 1.4 1999/06/14 07:37:52 rex Exp $
+# $Id: makefile_rex,v 1.5 1999/06/18 22:11:04 ea Exp $
 #
 # ReactOS Operating System
 #
@@ -39,7 +39,6 @@ CLEAN_FILES = misc/*.o  \
 endif
 
 $(TARGET).coff: $(TARGET).rc ../../include/reactos/resource.h
-       $(RC) $(TARGET).rc $(TARGET).coff
 
 $(TARGET).a: $(OBJECTS)
        $(AR) csr $(TARGET).a $(OBJECTS)
index 3fa4701..9a7e923 100644 (file)
@@ -324,26 +324,9 @@ CmInitializeRegistry(VOID)
 #endif
 }
 
-NTSTATUS 
-NtCreateKey(OUT PHANDLE  KeyHandle, 
-            IN ACCESS_MASK  DesiredAccess,
-            IN POBJECT_ATTRIBUTES  ObjectAttributes, 
-            IN ULONG  TitleIndex,
-            IN PUNICODE_STRING  Class, 
-            IN ULONG  CreateOptions, 
-            OUT PULONG  Disposition)
-{
-  return ZwCreateKey(KeyHandle, 
-                     DesiredAccess,
-                     ObjectAttributes, 
-                     TitleIndex,
-                     Class, 
-                     CreateOptions,
-                     Disposition);
-}
 
 NTSTATUS 
-ZwCreateKey(OUT PHANDLE  KeyHandle,
+NtCreateKey(OUT PHANDLE  KeyHandle,
             IN ACCESS_MASK  DesiredAccess,
             IN POBJECT_ATTRIBUTES  ObjectAttributes, 
             IN ULONG  TitleIndex,
@@ -433,14 +416,9 @@ ZwCreateKey(OUT PHANDLE  KeyHandle,
 #endif
 }
 
-NTSTATUS 
-NtDeleteKey(IN HANDLE  KeyHandle)
-{
-  return  ZwDeleteKey(KeyHandle);
-}
 
 NTSTATUS 
-ZwDeleteKey(IN HANDLE  KeyHandle)
+NtDeleteKey(IN HANDLE  KeyHandle)
 {
 #ifdef PROTO_REG
   NTSTATUS  Status;
@@ -472,24 +450,9 @@ ZwDeleteKey(IN HANDLE  KeyHandle)
 #endif
 }
 
-NTSTATUS 
-NtEnumerateKey(IN HANDLE  KeyHandle, 
-               IN ULONG  Index,
-               IN KEY_INFORMATION_CLASS  KeyInformationClass,
-               OUT PVOID  KeyInformation,
-               IN ULONG  Length,
-               OUT PULONG  ResultLength)
-{
-  return  ZwEnumerateKey(KeyHandle,
-                         Index,
-                         KeyInformationClass,
-                         KeyInformation,
-                         Length,
-                         ResultLength);
-}
 
 NTSTATUS 
-ZwEnumerateKey(IN HANDLE  KeyHandle, 
+NtEnumerateKey(IN HANDLE  KeyHandle, 
                IN ULONG  Index,
                IN KEY_INFORMATION_CLASS  KeyInformationClass,
                OUT PVOID  KeyInformation,
@@ -638,28 +601,14 @@ ZwEnumerateKey(IN HANDLE  KeyHandle,
 }
 
 NTSTATUS 
-NtEnumerateValueKey(IN HANDLE  KeyHandle, 
-                    IN ULONG  Index, 
-                    IN KEY_VALUE_INFORMATION_CLASS  KeyInformationClass,
-                    OUT PVOID  KeyInformation,
-                    IN ULONG  Length,
-                    OUT PULONG  ResultLength)
-{
-  return  ZwEnumerateValueKey(KeyHandle, 
-                              Index, 
-                              KeyInformationClass,
-                              KeyInformation,
-                              Length,
-                              ResultLength);
-}
-
-NTSTATUS 
-ZwEnumerateValueKey(IN HANDLE  KeyHandle, 
-                    IN ULONG  Index, 
-                    IN KEY_VALUE_INFORMATION_CLASS  KeyInformationClass,
-                    OUT PVOID  KeyInformation,
-                    IN ULONG  Length,
-                    OUT PULONG  ResultLength)
+NtEnumerateValueKey (
+       IN      HANDLE                          KeyHandle,
+       IN      ULONG                           Index,
+       IN      KEY_VALUE_INFORMATION_CLASS     KeyInformationClass,
+       OUT     PVOID                           KeyInformation,
+       IN      ULONG                           Length,
+       OUT     PULONG                          ResultLength
+       )
 {
 #ifdef PROTO_REG
   UNIMPLEMENTED;  
@@ -670,12 +619,6 @@ ZwEnumerateValueKey(IN HANDLE  KeyHandle,
 
 NTSTATUS 
 NtFlushKey(IN HANDLE  KeyHandle)
-{
-  return ZwFlushKey(KeyHandle);
-}
-
-NTSTATUS 
-ZwFlushKey(IN HANDLE  KeyHandle)
 {
 #ifdef PROTO_REG
   return  STATUS_SUCCESS;
@@ -688,16 +631,6 @@ NTSTATUS
 NtOpenKey(OUT PHANDLE  KeyHandle, 
           IN ACCESS_MASK  DesiredAccess,
           IN POBJECT_ATTRIBUTES  ObjectAttributes)
-{
-  return ZwOpenKey(KeyHandle, 
-                   DesiredAccess,
-                   ObjectAttributes);
-}
-
-NTSTATUS 
-ZwOpenKey(OUT PHANDLE  KeyHandle, 
-          IN ACCESS_MASK  DesiredAccess,
-          IN POBJECT_ATTRIBUTES  ObjectAttributes)
 {
 #ifdef PROTO_REG
   NTSTATUS  Status;
@@ -788,25 +721,13 @@ ZwOpenKey(OUT PHANDLE  KeyHandle,
 }
 
 NTSTATUS 
-NtQueryKey(IN HANDLE  KeyHandle, 
-           IN KEY_INFORMATION_CLASS  KeyInformationClass,
-           OUT PVOID  KeyInformation,
-           IN ULONG  Length,
-           OUT PULONG  ResultLength)
-{
-  return ZwQueryKey(KeyHandle, 
-                    KeyInformationClass,
-                    KeyInformation,
-                    Length,
-                    ResultLength);
-}
-
-NTSTATUS 
-ZwQueryKey(IN HANDLE  KeyHandle, 
-           IN KEY_INFORMATION_CLASS  KeyInformationClass,
-           OUT PVOID  KeyInformation,
-           IN ULONG  Length,
-           OUT PULONG  ResultLength)
+NtQueryKey (
+       IN      HANDLE                  KeyHandle, 
+       IN      KEY_INFORMATION_CLASS   KeyInformationClass,
+       OUT     PVOID                   KeyInformation,
+       IN      ULONG                   Length,
+       OUT     PULONG                  ResultLength
+       )
 {
 #ifdef PROTO_REG
   NTSTATUS  Status;
@@ -938,28 +859,14 @@ ZwQueryKey(IN HANDLE  KeyHandle,
 }
 
 NTSTATUS 
-NtQueryValueKey(IN HANDLE  KeyHandle,
-                IN PUNICODE_STRING  ValueName,
-                IN KEY_VALUE_INFORMATION_CLASS  KeyValueInformationClass,
-                OUT PVOID  KeyValueInformation,
-                IN ULONG  Length,
-                OUT PULONG  ResultLength)
-{
-  return ZwQueryValueKey(KeyHandle,
-                         ValueName,
-                         KeyValueInformationClass,
-                         KeyValueInformation,
-                         Length,
-                         ResultLength);
-}
-
-NTSTATUS 
-ZwQueryValueKey(IN HANDLE  KeyHandle,
-                IN PUNICODE_STRING  ValueName,
-                IN KEY_VALUE_INFORMATION_CLASS  KeyValueInformationClass,
-                OUT PVOID  KeyValueInformation,
-                IN ULONG  Length,
-                OUT PULONG  ResultLength)
+NtQueryValueKey (
+       IN      HANDLE                          KeyHandle,
+       IN      PUNICODE_STRING                 ValueName,
+       IN      KEY_VALUE_INFORMATION_CLASS     KeyValueInformationClass,
+       OUT     PVOID                           KeyValueInformation,
+       IN      ULONG                           Length,
+       OUT     PULONG                          ResultLength
+       )
 {
 #ifdef PROTO_REG
   NTSTATUS  Status;
@@ -1081,28 +988,14 @@ ZwQueryValueKey(IN HANDLE  KeyHandle,
 }
 
 NTSTATUS 
-NtSetValueKey(IN HANDLE  KeyHandle, 
-              IN PUNICODE_STRING  ValueName,
-              IN ULONG  TitleIndex,
-              IN ULONG  Type, 
-              IN PVOID  Data,
-              IN ULONG  DataSize)
-{
-  return ZwSetValueKey(KeyHandle, 
-                       ValueName,
-                       TitleIndex, 
-                       Type, 
-                       Data,
-                       DataSize);
-}
-
-NTSTATUS 
-ZwSetValueKey(IN HANDLE  KeyHandle, 
-              IN PUNICODE_STRING  ValueName,
-              IN ULONG  TitleIndex,
-              IN ULONG  Type, 
-              IN PVOID  Data,
-              IN ULONG  DataSize)
+NtSetValueKey (
+       IN      HANDLE                  KeyHandle, 
+       IN      PUNICODE_STRING         ValueName,
+       IN      ULONG                   TitleIndex,
+       IN      ULONG                   Type, 
+       IN      PVOID                   Data,
+       IN      ULONG                   DataSize
+       )
 {
 #ifdef PROTO_REG
   NTSTATUS  Status;
@@ -1159,16 +1052,10 @@ ZwSetValueKey(IN HANDLE  KeyHandle,
 }
 
 NTSTATUS STDCALL
-NtDeleteValueKey(IN HANDLE  KeyHandle,
-                 IN PUNICODE_STRING  ValueName)
-{
-  return ZwDeleteValueKey(KeyHandle,
-                          ValueName);
-}
-
-NTSTATUS STDCALL
-ZwDeleteValueKey(IN HANDLE  KeyHandle,
-                 IN PUNICODE_STRING  ValueName)
+NtDeleteValueKey (
+       IN      HANDLE          KeyHandle,
+       IN      PUNICODE_STRING ValueName
+       )
 {
 #ifdef PROTO_REG
   NTSTATUS  Status;
@@ -1201,227 +1088,181 @@ ZwDeleteValueKey(IN HANDLE  KeyHandle,
 #endif
 }
 
-NTSTATUS STDCALL 
-NtLoadKey(PHANDLE KeyHandle,
-          OBJECT_ATTRIBUTES ObjectAttributes)
+NTSTATUS
+STDCALL 
+NtLoadKey (
+       PHANDLE                 KeyHandle,
+       OBJECT_ATTRIBUTES       ObjectAttributes
+       )
 {
-  return ZwLoadKey(KeyHandle,
-                   ObjectAttributes);
+       UNIMPLEMENTED;
 }
 
-NTSTATUS STDCALL 
-ZwLoadKey(PHANDLE KeyHandle,
-          OBJECT_ATTRIBUTES ObjectAttributes)
-{
-  UNIMPLEMENTED;
-}
 
-NTSTATUS STDCALL NtLoadKey2(VOID)
+NTSTATUS
+STDCALL
+NtLoadKey2(VOID)
 {
-  UNIMPLEMENTED;
+       UNIMPLEMENTED;
 }
 
-NTSTATUS STDCALL
-NtNotifyChangeKey(IN HANDLE  KeyHandle,
-                  IN HANDLE  Event,
-                  IN PIO_APC_ROUTINE  ApcRoutine OPTIONAL, 
-                  IN PVOID ApcContext  OPTIONAL, 
-                  OUT PIO_STATUS_BLOCK  IoStatusBlock,
-                  IN ULONG  CompletionFilter,
-                  IN BOOLEAN  Asynchroneous, 
-                  OUT PVOID  ChangeBuffer,
-                  IN ULONG  Length,
-                  IN BOOLEAN  WatchSubtree)
-{
-  return ZwNotifyChangeKey(KeyHandle,
-                           Event,
-                           ApcRoutine, 
-                           ApcContext, 
-                           IoStatusBlock,
-                           CompletionFilter,
-                           Asynchroneous, 
-                           ChangeBuffer,
-                           Length,
-                           WatchSubtree);
-}
 
-NTSTATUS STDCALL
-ZwNotifyChangeKey(IN HANDLE  KeyHandle,
-                  IN HANDLE  Event,
-                  IN PIO_APC_ROUTINE  ApcRoutine OPTIONAL, 
-                  IN PVOID  ApcContext OPTIONAL, 
-                  OUT PIO_STATUS_BLOCK  IoStatusBlock,
-                  IN ULONG  CompletionFilter,
-                  IN BOOLEAN  Asynchroneous, 
-                  OUT PVOID  ChangeBuffer,
-                  IN ULONG  Length,
-                  IN BOOLEAN  WatchSubtree)
+NTSTATUS
+STDCALL
+NtNotifyChangeKey (
+       IN      HANDLE                  KeyHandle,
+       IN      HANDLE                  Event,
+       IN      PIO_APC_ROUTINE         ApcRoutine              OPTIONAL, 
+       IN      PVOID                   ApcContext              OPTIONAL, 
+       OUT     PIO_STATUS_BLOCK        IoStatusBlock,
+       IN      ULONG                   CompletionFilter,
+       IN      BOOLEAN                 Asynchroneous, 
+       OUT     PVOID                   ChangeBuffer,
+       IN      ULONG                   Length,
+       IN      BOOLEAN                 WatchSubtree
+       )
 {
-  UNIMPLEMENTED;
+       UNIMPLEMENTED;
 }
 
-NTSTATUS STDCALL
-NtQueryMultipleValueKey(IN HANDLE  KeyHandle,  
-                        IN PVALENT  ListOfValuesToQuery,       
-                        IN ULONG  NumberOfItems,       
-                        OUT PVOID  MultipleValueInformation,           
-                        IN ULONG  Length,
-                        OUT PULONG  ReturnLength)
-{
-  return ZwQueryMultipleValueKey(KeyHandle,    
-                                 ListOfValuesToQuery,  
-                                 NumberOfItems,        
-                                 MultipleValueInformation,             
-                                 Length,
-                                 ReturnLength);
-}
 
-NTSTATUS STDCALL 
-ZwQueryMultipleValueKey(IN HANDLE  KeyHandle,  
-                        IN PVALENT  ListOfValuesToQuery,       
-                        IN ULONG  NumberOfItems,       
-                        OUT PVOID  MultipleValueInformation,           
-                        IN ULONG  Length,
-                        OUT PULONG  ReturnLength)
+NTSTATUS
+STDCALL
+NtQueryMultipleValueKey (
+       IN      HANDLE  KeyHandle,      
+       IN      PVALENT ListOfValuesToQuery,    
+       IN      ULONG   NumberOfItems,  
+       OUT     PVOID   MultipleValueInformation,               
+       IN      ULONG   Length,
+       OUT     PULONG  ReturnLength)
 {
-  UNIMPLEMENTED;
+       UNIMPLEMENTED;
 }
 
-NTSTATUS STDCALL
-NtReplaceKey(IN POBJECT_ATTRIBUTES  ObjectAttributes, 
-             IN HANDLE  Key,
-             IN POBJECT_ATTRIBUTES  ReplacedObjectAttributes)
-{
-  return ZwReplaceKey(ObjectAttributes, 
-                      Key,
-                      ReplacedObjectAttributes);
-}
 
-NTSTATUS STDCALL
-ZwReplaceKey(IN POBJECT_ATTRIBUTES  ObjectAttributes, 
-             IN HANDLE  Key,
-             IN POBJECT_ATTRIBUTES  ReplacedObjectAttributes)
+NTSTATUS
+STDCALL
+NtReplaceKey (
+       IN      POBJECT_ATTRIBUTES      ObjectAttributes, 
+       IN      HANDLE                  Key,
+       IN      POBJECT_ATTRIBUTES      ReplacedObjectAttributes
+       )
 {
-  UNIMPLEMENTED;
+       UNIMPLEMENTED;
 }
 
-NTSTATUS STDCALL
-NtRestoreKey(IN HANDLE  KeyHandle,
-             IN HANDLE  FileHandle,
-             IN ULONG  RestoreFlags)
-{
-  return ZwRestoreKey(KeyHandle,
-                      FileHandle,
-                      RestoreFlags);
-}
 
-NTSTATUS STDCALL
-ZwRestoreKey(IN HANDLE  KeyHandle,
-             IN HANDLE  FileHandle,
-             IN ULONG  RestoreFlags)
+NTSTATUS
+STDCALL
+NtRestoreKey (
+       IN      HANDLE  KeyHandle,
+       IN      HANDLE  FileHandle,
+       IN      ULONG   RestoreFlags
+       )
 {
-  UNIMPLEMENTED;
+       UNIMPLEMENTED;
 }
 
-NTSTATUS STDCALL
-NtSaveKey(IN HANDLE  KeyHandle,
-          IN HANDLE  FileHandle)
-{
-  return ZwSaveKey(KeyHandle,
-                   FileHandle);
-}
 
-NTSTATUS STDCALL
-ZwSaveKey(IN HANDLE  KeyHandle,
-          IN HANDLE  FileHandle)
+NTSTATUS
+STDCALL
+NtSaveKey (
+       IN      HANDLE  KeyHandle,
+       IN      HANDLE  FileHandle
+       )
 {
-  UNIMPLEMENTED;
+       UNIMPLEMENTED;
 }
 
-NTSTATUS STDCALL
-NtSetInformationKey(IN HANDLE  KeyHandle,
-                    IN CINT  KeyInformationClass,
-                    IN PVOID  KeyInformation,
-                    IN ULONG  KeyInformationLength)
-{
-  return ZwSetInformationKey(KeyHandle,
-                             KeyInformationClass,
-                             KeyInformation,
-                             KeyInformationLength);
-}
 
-NTSTATUS STDCALL
-ZwSetInformationKey(IN HANDLE  KeyHandle,
-                    IN CINT  KeyInformationClass,
-                    IN PVOID  KeyInformation,
-                    IN ULONG  KeyInformationLength)
+NTSTATUS
+STDCALL
+NtSetInformationKey (
+       IN      HANDLE  KeyHandle,
+       IN      CINT    KeyInformationClass,
+       IN      PVOID   KeyInformation,
+       IN      ULONG   KeyInformationLength
+       )
 {
-  UNIMPLEMENTED;
+       UNIMPLEMENTED;
 }
 
-NTSTATUS STDCALL 
-NtUnloadKey(HANDLE KeyHandle)
-{
-  return ZwUnloadKey(KeyHandle);
-}
 
-NTSTATUS STDCALL 
-ZwUnloadKey(HANDLE KeyHandle)
+NTSTATUS
+STDCALL 
+NtUnloadKey (
+       HANDLE  KeyHandle
+       )
 {
-  UNIMPLEMENTED;
+       UNIMPLEMENTED;
 }
 
-NTSTATUS STDCALL 
-NtInitializeRegistry(BOOLEAN SetUpBoot)
-{
-  return ZwInitializeRegistry(SetUpBoot);
-}
 
-NTSTATUS STDCALL 
-ZwInitializeRegistry(BOOLEAN SetUpBoot)
+NTSTATUS
+STDCALL 
+NtInitializeRegistry (
+       BOOLEAN SetUpBoot
+       )
 {
-  UNIMPLEMENTED;
+       UNIMPLEMENTED;
 }
 
+
 NTSTATUS 
-RtlCheckRegistryKey(ULONG RelativeTo, PWSTR Path)
+RtlCheckRegistryKey (
+       ULONG   RelativeTo,
+       PWSTR   Path
+       )
 {
-  UNIMPLEMENTED;
+       UNIMPLEMENTED;
 }
 
+
 NTSTATUS 
-RtlCreateRegistryKey(IN ULONG RelativeTo, IN PWSTR Path)
+RtlCreateRegistryKey (
+       IN      ULONG   RelativeTo,
+       IN      PWSTR   Path
+       )
 {
-  UNIMPLEMENTED;
+       UNIMPLEMENTED;
 }
 
+
 NTSTATUS 
-RtlDeleteRegistryValue(IN ULONG  RelativeTo, 
-                       IN PWSTR  Path,
-                       IN PWSTR  ValueName)
+RtlDeleteRegistryValue (
+       IN      ULONG   RelativeTo, 
+       IN      PWSTR   Path,
+       IN      PWSTR   ValueName
+       )
 {
-  UNIMPLEMENTED;
+       UNIMPLEMENTED;
 }
 
+
 NTSTATUS 
-RtlQueryRegistryValues(IN ULONG  RelativeTo,
-                       IN PWSTR  Path,
-                       PRTL_QUERY_REGISTRY_TABLE  QueryTable,
-                       PVOID  Context,
-                       PVOID  Environment)
+RtlQueryRegistryValues (
+       IN      ULONG                           RelativeTo,
+       IN      PWSTR                           Path,
+               PRTL_QUERY_REGISTRY_TABLE       QueryTable,
+               PVOID                           Context,
+               PVOID                           Environment
+       )
 {
-  UNIMPLEMENTED;
+       UNIMPLEMENTED;
 }
 
+
 NTSTATUS 
-RtlWriteRegistryValue(ULONG RelativeTo,
-                      PWSTR Path,
-                      PWSTR ValueName,
-                      ULONG ValueType,
-                      PVOID ValueData,
-                      ULONG ValueLength)
-{
-  UNIMPLEMENTED;
+RtlWriteRegistryValue (
+       ULONG   RelativeTo,
+       PWSTR   Path,
+       PWSTR   ValueName,
+       ULONG   ValueType,
+       PVOID   ValueData,
+       ULONG   ValueLength
+       )
+{
+       UNIMPLEMENTED;
 }
 
 /*  ------------------------------------------  Private Implementation  */
index 125a2ce..559fbe7 100644 (file)
@@ -23,10 +23,6 @@ NTSTATUS STDCALL NtSetSystemPowerState(VOID)
    UNIMPLEMENTED;
 }
 
-NTSTATUS STDCALL NtShutdownSystem(IN SHUTDOWN_ACTION Action)
-{
-   return(ZwShutdownSystem(Action));
-}
 
 static void kb_wait(void)
 {
@@ -41,7 +37,11 @@ static void kb_wait(void)
      }
 }
 
-NTSTATUS STDCALL ZwShutdownSystem(IN SHUTDOWN_ACTION Action)
+NTSTATUS
+STDCALL
+NtShutdownSystem (
+       IN      SHUTDOWN_ACTION Action
+       )
 /*
  * FIXME: Does a reboot only
  */
index 1eb59f4..9ad4389 100644 (file)
 
 /* FUNCTIONS *****************************************************************/
 
-NTSTATUS STDCALL NtQuerySystemEnvironmentValue(IN PUNICODE_STRING Name,
-                                              OUT PVOID Value,
-                                              ULONG Length,
-                                              PULONG ReturnLength)
+NTSTATUS
+STDCALL
+NtQuerySystemEnvironmentValue (
+       IN      PUNICODE_STRING Name,
+       OUT     PVOID           Value,
+               ULONG           Length,
+               PULONG          ReturnLength
+       )
 {
-   return(ZwQuerySystemEnvironmentValue(Name,
-                                       Value,
-                                       Length,
-                                       ReturnLength));
+       UNIMPLEMENTED;
 }
 
-NTSTATUS STDCALL ZwQuerySystemEnvironmentValue(IN PUNICODE_STRING Name,
-                                              OUT PVOID Value,
-                                              ULONG Length,
-                                              PULONG ReturnLength)
-{
-   UNIMPLEMENTED;
-}
 
-NTSTATUS STDCALL NtQuerySystemInformation(IN CINT SystemInformationClass,
-                                         OUT PVOID SystemInformation,
-                                         IN ULONG Length,
-                                         OUT PULONG ResultLength)
+NTSTATUS
+STDCALL
+NtQuerySystemInformation (
+       IN      CINT    SystemInformationClass,
+       OUT     PVOID   SystemInformation,
+       IN      ULONG   Length,
+       OUT     PULONG  ResultLength
+       )
 {
-   return(ZwQuerySystemInformation(SystemInformationClass,
-                                  SystemInformation,
-                                  Length,
-                                  ResultLength));
+       UNIMPLEMENTED;
 }
 
-NTSTATUS STDCALL ZwQuerySystemInformation(IN CINT SystemInformationClass,
-                                         OUT PVOID SystemInformation,
-                                         IN ULONG Length,
-                                         OUT PULONG ResultLength)
-{
-   UNIMPLEMENTED;
-}
 
-NTSTATUS STDCALL NtSetSystemEnvironmentValue(IN PUNICODE_STRING VariableName,
-                                            IN PUNICODE_STRING Value)
+NTSTATUS
+STDCALL
+NtSetSystemEnvironmentValue (
+       IN      PUNICODE_STRING VariableName,
+       IN      PUNICODE_STRING Value
+       )
 {
-   return(ZwSetSystemEnvironmentValue(VariableName,Value));
+       UNIMPLEMENTED;
 }
 
-NTSTATUS STDCALL ZwSetSystemEnvironmentValue(IN PUNICODE_STRING VariableName,
-                                            IN PUNICODE_STRING Value)
-{
-   UNIMPLEMENTED;
-}
 
-NTSTATUS STDCALL NtSetSystemInformation(IN CINT SystemInformationClass,
-                                       IN PVOID SystemInformation,
-                                       IN ULONG SystemInformationLength)
+NTSTATUS
+STDCALL
+NtSetSystemInformation (
+       IN      CINT    SystemInformationClass,
+       IN      PVOID   SystemInformation,
+       IN      ULONG   SystemInformationLength
+       )
 {
-   return(ZwSetSystemInformation(SystemInformationClass,
-                                SystemInformation,
-                                SystemInformationLength));
+       UNIMPLEMENTED;
 }
 
-NTSTATUS STDCALL ZwSetSystemInformation(IN CINT SystemInformationClass,
-                                       IN PVOID SystemInformation,
-                                       IN ULONG SystemInformationLength)
-{
-   UNIMPLEMENTED;
-}
-
-NTSTATUS STDCALL NtFlushInstructionCache(IN HANDLE ProcessHandle,
-                                        IN PVOID BaseAddress,
-                                        IN UINT NumberOfBytesToFlush)
-{
-   return(ZwFlushInstructionCache(ProcessHandle,
-                                 BaseAddress,
-                                 NumberOfBytesToFlush));
-}
 
-NTSTATUS STDCALL ZwFlushInstructionCache(IN HANDLE ProcessHandle,
-                                        IN PVOID BaseAddress,
-                                        IN UINT NumberOfBytesToFlush)
+NTSTATUS
+STDCALL
+NtFlushInstructionCache (
+       IN      HANDLE  ProcessHandle,
+       IN      PVOID   BaseAddress,
+       IN      UINT    NumberOfBytesToFlush
+       )
 {
-   UNIMPLEMENTED;
+       UNIMPLEMENTED;
 }
index 202b428..9c50aae 100644 (file)
@@ -23,39 +23,44 @@ static LONG lTimeZoneBias = 0;  /* bias[minutes] = UTC - local time */
 
 /* FUNCTIONS ****************************************************************/
 
-NTSTATUS STDCALL NtSetSystemTime(IN PLARGE_INTEGER SystemTime,
-                                IN PLARGE_INTEGER NewSystemTime OPTIONAL)
+NTSTATUS
+STDCALL
+NtSetSystemTime (
+       IN      PLARGE_INTEGER  SystemTime,
+       IN      PLARGE_INTEGER  NewSystemTime   OPTIONAL
+       )
 {
-   return(ZwSetSystemTime(SystemTime,NewSystemTime));
+       UNIMPLEMENTED;
 }
 
-NTSTATUS STDCALL ZwSetSystemTime(IN PLARGE_INTEGER SystemTime,
-                                IN PLARGE_INTEGER NewSystemTime OPTIONAL)
-{
-   UNIMPLEMENTED;
-}
 
-NTSTATUS STDCALL NtQuerySystemTime (OUT TIME *CurrentTime)
+NTSTATUS
+STDCALL
+NtQuerySystemTime (
+       OUT     TIME    * CurrentTime
+       )
 {
-   return(ZwQuerySystemTime(CurrentTime));
+       KeQuerySystemTime((PLARGE_INTEGER)CurrentTime);
+       return STATUS_SUCCESS;
 }
 
-NTSTATUS STDCALL ZwQuerySystemTime (OUT TIME *CurrentTime)
-{
-   KeQuerySystemTime((PLARGE_INTEGER)CurrentTime);
-   return STATUS_SUCCESS;
-//   UNIMPLEMENTED;
-}
 
-VOID ExLocalTimeToSystemTime(PLARGE_INTEGER LocalTime, 
-                            PLARGE_INTEGER SystemTime)
+VOID
+ExLocalTimeToSystemTime (
+       PLARGE_INTEGER  LocalTime, 
+       PLARGE_INTEGER  SystemTime
+       )
 {
    SystemTime->QuadPart = LocalTime->QuadPart +
                           lTimeZoneBias * TICKSPERMINUTE;
 }
 
-VOID ExSystemTimeToLocalTime(PLARGE_INTEGER SystemTime,
-                            PLARGE_INTEGER LocalTime)
+
+VOID
+ExSystemTimeToLocalTime (
+       PLARGE_INTEGER  SystemTime,
+       PLARGE_INTEGER  LocalTime
+       )
 {
    LocalTime->QuadPart = SystemTime->QuadPart -
                          lTimeZoneBias * TICKSPERMINUTE;
index b7a036d..4a3552b 100644 (file)
@@ -21,16 +21,14 @@ static KSPIN_LOCK CancelSpinLock = {0,};
 
 /* FUNCTIONS *****************************************************************/
 
-NTSTATUS STDCALL NtCancelIoFile(IN HANDLE FileHandle,
-                               OUT PIO_STATUS_BLOCK IoStatusBlock)
+NTSTATUS
+STDCALL
+NtCancelIoFile (
+       IN      HANDLE                  FileHandle,
+       OUT     PIO_STATUS_BLOCK        IoStatusBlock
+       )
 {
-   return(ZwCancelIoFile(FileHandle,IoStatusBlock));
-}
-
-NTSTATUS STDCALL ZwCancelIoFile(IN HANDLE FileHandle,
-                               OUT PIO_STATUS_BLOCK IoStatusBlock)
-{
-   UNIMPLEMENTED;
+       UNIMPLEMENTED;
 }
 
 BOOLEAN IoCancelIrp(PIRP Irp)
index f0bd7ee..ba37f16 100644 (file)
 
 /* FUNCTIONS *************************************************************/
 
-NTSTATUS STDCALL NtDeleteFile(IN POBJECT_ATTRIBUTES ObjectAttributes)
+NTSTATUS
+STDCALL
+NtDeleteFile (
+       IN      POBJECT_ATTRIBUTES      ObjectAttributes
+       )
 {
-   return(ZwDeleteFile(ObjectAttributes));
+       UNIMPLEMENTED;
 }
 
-NTSTATUS STDCALL ZwDeleteFile(IN POBJECT_ATTRIBUTES ObjectAttributes)
-{
-   UNIMPLEMENTED;
-}
-
-NTSTATUS STDCALL NtCreateFile(PHANDLE FileHandle,
-                             ACCESS_MASK DesiredAccess,
-                             POBJECT_ATTRIBUTES ObjectAttributes,
-                             PIO_STATUS_BLOCK IoStatusBlock,
-                             PLARGE_INTEGER AllocateSize,
-                             ULONG FileAttributes,
-                             ULONG ShareAccess,
-                             ULONG CreateDisposition,
-                             ULONG CreateOptions,
-                             PVOID EaBuffer,
-                             ULONG EaLength)
-{
-   return(ZwCreateFile(FileHandle,
-                      DesiredAccess,
-                      ObjectAttributes,
-                      IoStatusBlock,
-                      AllocateSize,
-                      FileAttributes,
-                      ShareAccess,
-                      CreateDisposition,
-                      CreateOptions,
-                      EaBuffer,
-                      EaLength));
-}
 
 NTSTATUS IopCreateFile(PVOID ObjectBody,
                       PVOID Parent,
@@ -160,17 +135,21 @@ PFILE_OBJECT IoCreateStreamFileObject(PFILE_OBJECT FileObject,
    return(CreatedFileObject);
 }
 
-NTSTATUS STDCALL ZwCreateFile(PHANDLE FileHandle,
-                             ACCESS_MASK DesiredAccess,
-                             POBJECT_ATTRIBUTES ObjectAttributes,
-                             PIO_STATUS_BLOCK IoStatusBlock,
-                             PLARGE_INTEGER AllocateSize,
-                             ULONG FileAttributes,
-                             ULONG ShareAccess,
-                             ULONG CreateDisposition,
-                             ULONG CreateOptions,
-                             PVOID EaBuffer,
-                             ULONG EaLength)
+NTSTATUS
+STDCALL
+NtCreateFile (
+       PHANDLE                 FileHandle,
+       ACCESS_MASK             DesiredAccess,
+       POBJECT_ATTRIBUTES      ObjectAttributes,
+       PIO_STATUS_BLOCK        IoStatusBlock,
+       PLARGE_INTEGER          AllocateSize,
+       ULONG                   FileAttributes,
+       ULONG                   ShareAccess,
+       ULONG                   CreateDisposition,
+       ULONG                   CreateOptions,
+       PVOID                   EaBuffer,
+       ULONG                   EaLength
+       )
 /*
  * FUNCTION: Either causes a new file or directory to be created, or it opens
  * an existing file, device, directory or volume, giving the caller a handle
@@ -200,7 +179,7 @@ NTSTATUS STDCALL ZwCreateFile(PHANDLE FileHandle,
    KEVENT Event;
    PIO_STACK_LOCATION StackLoc;
    
-   DPRINT("ZwCreateFile(FileHandle %x, DesiredAccess %x, "
+   DPRINT("NtCreateFile(FileHandle %x, DesiredAccess %x, "
            "ObjectAttributes %x ObjectAttributes->ObjectName->Buffer %w)\n",
            FileHandle,DesiredAccess,ObjectAttributes,
            ObjectAttributes->ObjectName->Buffer);   
@@ -261,31 +240,21 @@ NTSTATUS STDCALL ZwCreateFile(PHANDLE FileHandle,
      }
    
    assert_irql(PASSIVE_LEVEL);
-   DPRINT("Finished ZwCreateFile() (*FileHandle) %x\n",(*FileHandle));
+   DPRINT("Finished NtCreateFile() (*FileHandle) %x\n",(*FileHandle));
    return(Status);
 }
 
-NTSTATUS STDCALL NtOpenFile(PHANDLE FileHandle,
-                           ACCESS_MASK DesiredAccess,
-                           POBJECT_ATTRIBUTES ObjectAttributes,
-                           PIO_STATUS_BLOCK IoStatusBlock,
-                           ULONG ShareAccess,
-                           ULONG OpenOptions)
-{
-   return(ZwOpenFile(FileHandle,
-                    DesiredAccess,
-                    ObjectAttributes,
-                    IoStatusBlock,
-                    ShareAccess,
-                    OpenOptions));
-}
 
-NTSTATUS STDCALL ZwOpenFile(PHANDLE FileHandle,
-                           ACCESS_MASK DesiredAccess,
-                           POBJECT_ATTRIBUTES ObjectAttributes,
-                           PIO_STATUS_BLOCK IoStatusBlock,
-                           ULONG ShareAccess,
-                           ULONG OpenOptions)
+NTSTATUS
+STDCALL
+NtOpenFile (
+       PHANDLE                 FileHandle,
+       ACCESS_MASK             DesiredAccess,
+       POBJECT_ATTRIBUTES      ObjectAttributes,
+       PIO_STATUS_BLOCK        IoStatusBlock,
+       ULONG                   ShareAccess,
+       ULONG                   OpenOptions
+       )
 /*
  * FUNCTION: Opens a file (simpler than ZwCreateFile)
  * ARGUMENTS:
@@ -300,17 +269,18 @@ NTSTATUS STDCALL ZwOpenFile(PHANDLE FileHandle,
  * NOTE: Undocumented
  */
 {
-   return(ZwCreateFile(FileHandle,
-                      DesiredAccess,
-                      ObjectAttributes,
-                      IoStatusBlock,
-                      NULL,
-                      0,
-                      ShareAccess,
-                      FILE_OPEN,
-                      OpenOptions,
-                      NULL,
-                      0));
+   return(ZwCreateFile(
+               FileHandle,
+               DesiredAccess,
+               ObjectAttributes,
+               IoStatusBlock,
+               NULL,
+               0,
+               ShareAccess,
+               FILE_OPEN,
+               OpenOptions,
+               NULL,
+               0));
 }
 
 
index 7882aaa..f242b8b 100644 (file)
 /* FUNCTIONS ***************************************************************/
 
 
-NTSTATUS STDCALL NtUnloadDriver(IN PUNICODE_STRING DriverServiceName)
+NTSTATUS
+STDCALL
+NtUnloadDriver (
+       IN      PUNICODE_STRING DriverServiceName
+       )
 {
-   return(ZwUnloadDriver(DriverServiceName));
+       UNIMPLEMENTED;
 }
 
-NTSTATUS STDCALL ZwUnloadDriver(IN PUNICODE_STRING DriverServiceName)
-{
-   UNIMPLEMENTED;
-}
-
-NTSTATUS NtLoadDriver(PUNICODE_STRING DriverServiceName)
-{
-   return(ZwLoadDriver(DriverServiceName));
-}
 
-NTSTATUS ZwLoadDriver(PUNICODE_STRING DriverServiceName)
+NTSTATUS
+NtLoadDriver (
+       PUNICODE_STRING DriverServiceName
+       )
 /*
  * FUNCTION: Loads a driver
  * ARGUMENTS:
@@ -46,21 +44,28 @@ NTSTATUS ZwLoadDriver(PUNICODE_STRING DriverServiceName)
  * RETURNS: Status
  */
 {
-   UNIMPLEMENTED;
+       UNIMPLEMENTED;
 }
 
-NTSTATUS IoAttachDeviceByPointer(PDEVICE_OBJECT SourceDevice,
-                                PDEVICE_OBJECT TargetDevice)
+NTSTATUS
+IoAttachDeviceByPointer (
+       PDEVICE_OBJECT  SourceDevice,
+       PDEVICE_OBJECT  TargetDevice
+       )
 {
-   UNIMPLEMENTED;
+       UNIMPLEMENTED;
 }
 
-VOID IoDeleteDevice(PDEVICE_OBJECT DeviceObject)
+
+VOID
+IoDeleteDevice(PDEVICE_OBJECT DeviceObject)
 {
-   UNIMPLEMENTED;
+       UNIMPLEMENTED;
 }
 
-PDEVICE_OBJECT IoGetRelatedDeviceObject(PFILE_OBJECT FileObject)
+
+PDEVICE_OBJECT
+IoGetRelatedDeviceObject(PFILE_OBJECT FileObject)
 {
    return(FileObject->DeviceObject);
 }
index 8cb5f07..652cbbe 100644 (file)
 
 /* FUNCTIONS *****************************************************************/
 
-NTSTATUS STDCALL 
-NtQueryDirectoryFile(
-       IN HANDLE FileHandle,
-       IN HANDLE Event OPTIONAL,
-       IN PIO_APC_ROUTINE ApcRoutine OPTIONAL,
-       IN PVOID ApcContext OPTIONAL,
-       OUT PIO_STATUS_BLOCK IoStatusBlock,
-       OUT PVOID FileInformation,
-       IN ULONG Length,
-       IN FILE_INFORMATION_CLASS FileInformationClass,
-       IN BOOLEAN ReturnSingleEntry,
-       IN PUNICODE_STRING FileName OPTIONAL,
-       IN BOOLEAN RestartScan
-       )
-{
-   return(ZwQueryDirectoryFile(FileHandle,
-                              Event,
-                              ApcRoutine,
-                              ApcContext,
-                              IoStatusBlock,
-                              FileInformation,
-                              Length,
-                              FileInformationClass,
-                              ReturnSingleEntry,
-                              FileName,
-                              RestartScan));
-}
 
 
 NTSTATUS
 STDCALL
-NtNotifyChangeDirectoryFile(
-       IN HANDLE FileHandle,
-       IN HANDLE Event OPTIONAL, 
-       IN PIO_APC_ROUTINE ApcRoutine OPTIONAL, 
-       IN PVOID ApcContext OPTIONAL, 
-       OUT PIO_STATUS_BLOCK IoStatusBlock,
-       OUT PVOID Buffer,
-       IN ULONG BufferSize,
-       IN ULONG CompletionFilter,
-       IN BOOLEAN WatchTree
+NtNotifyChangeDirectoryFile (
+       IN      HANDLE                  FileHandle,
+       IN      HANDLE                  Event           OPTIONAL, 
+       IN      PIO_APC_ROUTINE         ApcRoutine      OPTIONAL, 
+       IN      PVOID                   ApcContext      OPTIONAL, 
+       OUT     PIO_STATUS_BLOCK        IoStatusBlock,
+       OUT     PVOID                   Buffer,
+       IN      ULONG                   BufferSize,
+       IN      ULONG                   CompletionFilter,
+       IN      BOOLEAN                 WatchTree
        )
 {
-   return(ZwNotifyChangeDirectoryFile(FileHandle,
-                                     Event,
-                                     ApcRoutine,
-                                     ApcContext,
-                                     IoStatusBlock,
-                                     Buffer,
-                                     BufferSize,
-                                     CompletionFilter,
-                                     WatchTree));
+       UNIMPLEMENTED;
 }
 
+
 NTSTATUS
-STDCALL
-ZwNotifyChangeDirectoryFile(
-       IN HANDLE FileHandle,
-       IN HANDLE Event OPTIONAL, 
-       IN PIO_APC_ROUTINE ApcRoutine OPTIONAL, 
-       IN PVOID ApcContext OPTIONAL, 
-       OUT PIO_STATUS_BLOCK IoStatusBlock,
-       OUT PVOID Buffer,
-       IN ULONG BufferSize,
-       IN ULONG CompletionFilter,
-       IN BOOLEAN WatchTree
+STDCALL 
+NtQueryDirectoryFile(
+       IN      HANDLE                  FileHandle,
+       IN      HANDLE                  Event           OPTIONAL,
+       IN      PIO_APC_ROUTINE         ApcRoutine      OPTIONAL,
+       IN      PVOID                   ApcContext      OPTIONAL,
+       OUT     PIO_STATUS_BLOCK        IoStatusBlock,
+       OUT     PVOID                   FileInformation,
+       IN      ULONG                   Length,
+       IN      FILE_INFORMATION_CLASS  FileInformationClass,
+       IN      BOOLEAN                 ReturnSingleEntry,
+       IN      PUNICODE_STRING         FileName        OPTIONAL,
+       IN      BOOLEAN                 RestartScan
        )
-{
-   UNIMPLEMENTED;
-}
-
-NTSTATUS STDCALL ZwQueryDirectoryFile(
-       IN HANDLE FileHandle,
-       IN HANDLE EventHandle OPTIONAL,
-       IN PIO_APC_ROUTINE ApcRoutine OPTIONAL,
-       IN PVOID ApcContext OPTIONAL,
-       OUT PIO_STATUS_BLOCK IoStatusBlock,
-       OUT PVOID FileInformation,
-       IN ULONG Length,
-       IN FILE_INFORMATION_CLASS FileInformationClass,
-       IN BOOLEAN ReturnSingleEntry,
-       IN PUNICODE_STRING FileName OPTIONAL,
-       IN BOOLEAN RestartScan)
 /*
  * FUNCTION: Queries a directory file.
  * ARGUMENTS:
@@ -135,7 +87,7 @@ NTSTATUS STDCALL ZwQueryDirectoryFile(
    KEVENT Event;
    PIO_STACK_LOCATION IoStack;
    
-   DPRINT("ZwQueryDirectoryFile()\n");
+   DPRINT("NtQueryDirectoryFile()\n");
    
    Status = ObReferenceObjectByHandle(FileHandle,
                                      FILE_LIST_DIRECTORY,
index 2b1637b..780ef65 100644 (file)
 
 /* FUNCTIONS *****************************************************************/
 
-NTSTATUS STDCALL NtQueryInformationFile(HANDLE FileHandle,
-                                       PIO_STATUS_BLOCK IoStatusBlock,
-                                       PVOID FileInformation,
-                                       ULONG Length,
-                                       FILE_INFORMATION_CLASS FileInformationClass)
-{
-  return ZwQueryInformationFile(FileHandle,
-                                IoStatusBlock,
-                                FileInformation,
-                                Length,
-                                FileInformationClass);
-}
-
-NTSTATUS STDCALL ZwQueryInformationFile(HANDLE FileHandle,
-                                       PIO_STATUS_BLOCK IoStatusBlock,
-                                       PVOID FileInformation,
-                                       ULONG Length,
-                                       FILE_INFORMATION_CLASS FileInformationClass)
+NTSTATUS
+STDCALL
+NtQueryInformationFile (
+       HANDLE                  FileHandle,
+       PIO_STATUS_BLOCK        IoStatusBlock,
+       PVOID                   FileInformation,
+       ULONG                   Length,
+       FILE_INFORMATION_CLASS  FileInformationClass
+       )
 {
    PIRP Irp;
    PDEVICE_OBJECT DeviceObject;
@@ -44,7 +35,7 @@ NTSTATUS STDCALL ZwQueryInformationFile(HANDLE FileHandle,
    KEVENT Event;
    PIO_STACK_LOCATION StackPtr;
    
-   DPRINT("ZwQueryInformationFile(Handle %x StatBlk %x FileInfo %x Length %d Class %d)\n",
+   DPRINT("NtQueryInformationFile(Handle %x StatBlk %x FileInfo %x Length %d Class %d)\n",
           FileHandle,
           IoStatusBlock,
           FileInformation,
@@ -98,24 +89,14 @@ NTSTATUS STDCALL ZwQueryInformationFile(HANDLE FileHandle,
    return(Status);
 }
 
-NTSTATUS NtSetInformationFile(HANDLE FileHandle,
-                             PIO_STATUS_BLOCK IoStatusBlock,
-                             PVOID FileInformation,
-                             ULONG Length,
-                             FILE_INFORMATION_CLASS FileInformationClass)
-{
-  return ZwSetInformationFile(FileHandle,
-                              IoStatusBlock,
-                              FileInformation,
-                              Length,
-                              FileInformationClass);
-}
-
-NTSTATUS ZwSetInformationFile(HANDLE FileHandle,
-                             PIO_STATUS_BLOCK IoStatusBlock,
-                             PVOID FileInformation,
-                             ULONG Length,
-                             FILE_INFORMATION_CLASS FileInformationClass)
+NTSTATUS
+NtSetInformationFile (
+       HANDLE                  FileHandle,
+       PIO_STATUS_BLOCK        IoStatusBlock,
+       PVOID                   FileInformation,
+       ULONG                   Length,
+       FILE_INFORMATION_CLASS  FileInformationClass
+       )
 {
   NTSTATUS Status;
   PFILE_OBJECT FileObject;
@@ -123,7 +104,7 @@ NTSTATUS ZwSetInformationFile(HANDLE FileHandle,
   PIO_STACK_LOCATION StackPtr;
   KEVENT Event;
    
-  DPRINT("ZwSetInformationFile(Handle %x StatBlk %x FileInfo %x Length %d Class %d)\n",
+  DPRINT("NtSetInformationFile(Handle %x StatBlk %x FileInfo %x Length %d Class %d)\n",
          FileHandle,
          IoStatusBlock,
          FileInformation,
@@ -176,80 +157,56 @@ PGENERIC_MAPPING IoGetFileObjectGenericMapping(VOID)
   UNIMPLEMENTED;
 }
 
-NTSTATUS STDCALL NtQueryAttributesFile(IN HANDLE FileHandle,
-                                      IN PVOID Buffer)
+NTSTATUS
+STDCALL
+NtQueryAttributesFile (
+       IN      HANDLE  FileHandle,
+       IN      PVOID   Buffer
+       )
 {
-  return ZwQueryAttributesFile(FileHandle, Buffer);
+       UNIMPLEMENTED;
 }
 
-NTSTATUS STDCALL ZwQueryAttributesFile(IN HANDLE FileHandle, IN PVOID Buffer)
-{
-  UNIMPLEMENTED;
-}
 
-NTSTATUS STDCALL NtQueryFullAttributesFile(IN HANDLE FileHandle, 
-                                          IN PVOID Attributes)
+NTSTATUS
+STDCALL
+NtQueryFullAttributesFile (
+       IN      HANDLE  FileHandle, 
+       IN      PVOID   Attributes
+       )
 {
-  return ZwQueryFullAttributesFile(FileHandle, Attributes);
+       UNIMPLEMENTED;
 }
 
-NTSTATUS STDCALL ZwQueryFullAttributesFile(IN HANDLE FileHandle, 
-                                          IN PVOID Attributes)
-{
-  UNIMPLEMENTED;
-}
 
-NTSTATUS STDCALL NtQueryEaFile(IN HANDLE FileHandle,
-                              OUT PIO_STATUS_BLOCK IoStatusBlock,
-                              OUT PVOID Buffer,
-                              IN ULONG Length,
-                              IN BOOLEAN ReturnSingleEntry,
-                              IN PVOID EaList OPTIONAL,
-                              IN ULONG EaListLength,
-                              IN PULONG EaIndex OPTIONAL,
-                              IN BOOLEAN RestartScan)
+NTSTATUS
+STDCALL
+NtQueryEaFile (
+       IN      HANDLE                  FileHandle,
+       OUT     PIO_STATUS_BLOCK        IoStatusBlock,
+       OUT     PVOID                   Buffer,
+       IN      ULONG                   Length,
+       IN      BOOLEAN                 ReturnSingleEntry,
+       IN      PVOID                   EaList                  OPTIONAL,
+       IN      ULONG                   EaListLength,
+       IN      PULONG                  EaIndex                 OPTIONAL,
+       IN      BOOLEAN                 RestartScan
+       )
 {
-  return NtQueryEaFile(FileHandle, 
-                       IoStatusBlock, 
-                       Buffer,
-                       Length,
-                       ReturnSingleEntry,
-                       EaList,
-                       EaListLength,
-                       EaIndex,
-                       RestartScan);
+       UNIMPLEMENTED;
 }
 
-NTSTATUS STDCALL ZwQueryEaFile(IN HANDLE FileHandle,
-                              OUT PIO_STATUS_BLOCK IoStatusBlock,
-                              OUT PVOID Buffer,
-                              IN ULONG Length,
-                              IN BOOLEAN ReturnSingleEntry,
-                              IN PVOID EaList OPTIONAL,
-                              IN ULONG EaListLength,
-                              IN PULONG EaIndex OPTIONAL,
-                              IN BOOLEAN RestartScan)
-{
-  UNIMPLEMENTED;
-}
 
-NTSTATUS STDCALL NtSetEaFile(IN HANDLE FileHandle,
-                            IN PIO_STATUS_BLOCK IoStatusBlock, 
-                            PVOID EaBuffer, 
-                            ULONG EaBufferSize)
+NTSTATUS
+STDCALL
+NtSetEaFile (
+       IN      HANDLE                  FileHandle,
+       IN      PIO_STATUS_BLOCK        IoStatusBlock,  
+               PVOID                   EaBuffer, 
+               ULONG                   EaBufferSize
+               )
 {
-  return ZwSetEaFile(FileHandle,
-                     IoStatusBlock,    
-                     EaBuffer, 
-                     EaBufferSize);
-}
-
-NTSTATUS STDCALL ZwSetEaFile(IN HANDLE FileHandle,
-                            IN PIO_STATUS_BLOCK IoStatusBlock, 
-                            PVOID EaBuffer, 
-                            ULONG EaBufferSize)
-{
-  UNIMPLEMENTED;
+       UNIMPLEMENTED;
 }
 
 
index 27ca0fc..8e800b7 100644 (file)
 /* FUNCTIONS *****************************************************************/
 
 
-NTSTATUS STDCALL NtFlushWriteBuffer(VOID)
+NTSTATUS
+STDCALL
+NtFlushWriteBuffer(VOID)
 {
-   return(ZwFlushWriteBuffer());
+       UNIMPLEMENTED;
 }
 
-NTSTATUS STDCALL ZwFlushWriteBuffer(VOID)
-{
-   UNIMPLEMENTED;
-}
-
-NTSTATUS STDCALL NtFlushBuffersFile(IN HANDLE FileHandle,
-                                   OUT PIO_STATUS_BLOCK IoStatusBlock)
-{
-   return(ZwFlushBuffersFile(FileHandle,IoStatusBlock));
-}
-
-NTSTATUS STDCALL ZwFlushBuffersFile(IN HANDLE FileHandle,
-                                   OUT PIO_STATUS_BLOCK IoStatusBlock)
+NTSTATUS
+STDCALL
+NtFlushBuffersFile (
+       IN      HANDLE                  FileHandle,
+       OUT     PIO_STATUS_BLOCK        IoStatusBlock
+       )
 /*
  * FUNCTION: Flushes cached file data to disk
  * ARGUMENTS:
index de1fe26..47abf9c 100644 (file)
@@ -33,41 +33,18 @@ static LIST_ENTRY FileSystemListHead = {NULL,NULL};
 
 NTSTATUS
 STDCALL
-NtFsControlFile(
-       IN HANDLE DeviceHandle,
-       IN HANDLE EventHandle OPTIONAL, 
-       IN PIO_APC_ROUTINE ApcRoutine OPTIONAL, 
-       IN PVOID ApcContext OPTIONAL, 
-       OUT PIO_STATUS_BLOCK IoStatusBlock, 
-       IN ULONG IoControlCode,
-       IN PVOID InputBuffer, 
-       IN ULONG InputBufferSize,
-       OUT PVOID OutputBuffer,
-       IN ULONG OutputBufferSize
+NtFsControlFile (
+       IN      HANDLE                  DeviceHandle,
+       IN      HANDLE                  EventHandle     OPTIONAL, 
+       IN      PIO_APC_ROUTINE         ApcRoutine      OPTIONAL, 
+       IN      PVOID                   ApcContext      OPTIONAL, 
+       OUT     PIO_STATUS_BLOCK        IoStatusBlock, 
+       IN      ULONG                   IoControlCode,
+       IN      PVOID                   InputBuffer, 
+       IN      ULONG                   InputBufferSize,
+       OUT     PVOID                   OutputBuffer,
+       IN      ULONG                   OutputBufferSize
        )
-{
-   return(ZwFsControlFile(DeviceHandle,
-                         EventHandle,
-                         ApcRoutine,
-                         ApcContext,
-                         IoStatusBlock,
-                         IoControlCode,
-                         InputBuffer,
-                         InputBufferSize,
-                         OutputBuffer,
-                         OutputBufferSize));
-}
-
-NTSTATUS STDCALL ZwFsControlFile(IN HANDLE DeviceHandle,
-                                IN HANDLE EventHandle OPTIONAL, 
-                                IN PIO_APC_ROUTINE ApcRoutine OPTIONAL, 
-                                IN PVOID ApcContext OPTIONAL, 
-                                OUT PIO_STATUS_BLOCK IoStatusBlock, 
-                                IN ULONG IoControlCode,
-                                IN PVOID InputBuffer, 
-                                IN ULONG InputBufferSize,
-                                OUT PVOID OutputBuffer,
-                                IN ULONG OutputBufferSize)
 {
    NTSTATUS Status = -1;
    PFILE_OBJECT FileObject;
index 7ef8872..21b672d 100644 (file)
 
 /* FUNCTIONS *****************************************************************/
 
-NTSTATUS STDCALL NtCreateIoCompletion(OUT PHANDLE CompletionPort,
-                                     IN ACCESS_MASK DesiredAccess,
-                                     OUT PIO_STATUS_BLOCK IoStatusBlock,
-                                     IN ULONG NumberOfConcurrentThreads)
+NTSTATUS
+STDCALL
+NtCreateIoCompletion ( 
+       OUT     PHANDLE                 CompletionPort,
+       IN      ACCESS_MASK             DesiredAccess,
+       OUT     PIO_STATUS_BLOCK        IoStatusBlock,
+       IN      ULONG                   NumberOfConcurrentThreads
+       )
 {
-   return(ZwCreateIoCompletion(CompletionPort,
-                              DesiredAccess,
-                              IoStatusBlock,
-                              NumberOfConcurrentThreads));
+       UNIMPLEMENTED;
 }
 
-NTSTATUS STDCALL ZwCreateIoCompletion(OUT PHANDLE CompletionPort,
-                                     IN ACCESS_MASK DesiredAccess,
-                                     OUT PIO_STATUS_BLOCK IoStatusBlock,
-                                     IN ULONG NumberOfConcurrentThreads)
-{
-   UNIMPLEMENTED;
-}
 
-NTSTATUS STDCALL NtOpenIoCompletion(OUT PHANDLE CompletionPort,
-                                   IN ACCESS_MASK DesiredAccess,
-                                   IN POBJECT_ATTRIBUTES ObjectAttributes)
+NTSTATUS
+STDCALL
+NtOpenIoCompletion (
+       OUT     PHANDLE                 CompletionPort,
+       IN      ACCESS_MASK             DesiredAccess,
+       IN      POBJECT_ATTRIBUTES      ObjectAttributes
+       )
 {
-   return(ZwOpenIoCompletion(CompletionPort,
-                            DesiredAccess,
-                            ObjectAttributes));
+       return(STATUS_SUCCESS);
 }
 
-NTSTATUS STDCALL ZwOpenIoCompletion(OUT PHANDLE CompetionPort,
-                                   IN ACCESS_MASK DesiredAccess,
-                                   IN POBJECT_ATTRIBUTES ObjectAttributes)
-{
-   return(STATUS_SUCCESS);
-}
 
-NTSTATUS STDCALL NtQueryIoCompletion(IN HANDLE CompletionPort,
-                                    IN ULONG CompletionKey,
-                                    OUT PIO_STATUS_BLOCK IoStatusBlock,
-                                    OUT PULONG NumberOfBytesTransferred)
+NTSTATUS
+STDCALL
+NtQueryIoCompletion (
+       IN      HANDLE                  CompletionPort,
+       IN      ULONG                   CompletionKey,
+       OUT     PIO_STATUS_BLOCK        IoStatusBlock,
+       OUT     PULONG                  NumberOfBytesTransferred
+       )
 {
-   return(ZwQueryIoCompletion(CompletionPort,
-                             CompletionKey,
-                             IoStatusBlock,
-                             NumberOfBytesTransferred));
+       UNIMPLEMENTED;
 }
 
-NTSTATUS STDCALL ZwQueryIoCompletion(IN HANDLE CompletionPort,
-                                    IN ULONG CompletionKey,
-                                    OUT PIO_STATUS_BLOCK IoStatusBlock,
-                                    OUT PULONG NumberOfBytesTransferred)
-{
-   UNIMPLEMENTED;
-}
-   
-NTSTATUS STDCALL NtRemoveIoCompletion(IN HANDLE CompletionPort,
-                                     OUT PULONG CompletionKey,
-                                     OUT PIO_STATUS_BLOCK IoStatusBlock,
-                                     OUT PULONG CompletionStatus,
-                                     PLARGE_INTEGER WaitTime)
-{
-   return(ZwRemoveIoCompletion(CompletionPort,
-                              CompletionKey,
-                              IoStatusBlock,
-                              CompletionStatus,
-                              WaitTime));
-}
 
-NTSTATUS STDCALL ZwRemoveIoCompletion(IN HANDLE CompletionPort,
-                                     OUT PULONG CompletionKey,
-                                     OUT PIO_STATUS_BLOCK IoStatusBlock,
-                                     OUT PULONG CompletionStatus,
-                                     PLARGE_INTEGER WaitTime)
+NTSTATUS
+STDCALL
+NtRemoveIoCompletion (
+       IN      HANDLE                  CompletionPort,
+       OUT     PULONG                  CompletionKey,
+       OUT     PIO_STATUS_BLOCK        IoStatusBlock,
+       OUT     PULONG                  CompletionStatus,
+               PLARGE_INTEGER          WaitTime
+               )
 {
-   UNIMPLEMENTED;
+       UNIMPLEMENTED;
 }
 
-NTSTATUS STDCALL NtSetIoCompletion(IN HANDLE CompletionPort,
-                                  IN ULONG CompletionKey,
-                                  OUT PIO_STATUS_BLOCK IoStatusBlock,
-                                  IN ULONG NumberOfBytesToTransfer, 
-                                  OUT PULONG NumberOfBytesTransferred)
-{
-   return(ZwSetIoCompletion(CompletionPort,
-                           CompletionKey,
-                           IoStatusBlock,
-                           NumberOfBytesToTransfer,
-                           NumberOfBytesTransferred));
-}
 
-NTSTATUS STDCALL ZwSetIoCompletion(IN HANDLE CompletionPort,
-                                  IN ULONG CompletionKey,
-                                  OUT PIO_STATUS_BLOCK IoStatusBlock,
-                                  IN ULONG NumberOfBytesToTransfer, 
-                                  OUT PULONG NumberOfBytesTransferred)
+NTSTATUS
+STDCALL
+NtSetIoCompletion (
+       IN      HANDLE                  CompletionPort,
+       IN      ULONG                   CompletionKey,
+       OUT     PIO_STATUS_BLOCK        IoStatusBlock,
+       IN      ULONG                   NumberOfBytesToTransfer, 
+       OUT     PULONG                  NumberOfBytesTransferred
+       )
 {
-   UNIMPLEMENTED;
+       UNIMPLEMENTED;
 }
index 2150760..46ce078 100644 (file)
@@ -25,43 +25,24 @@ ULONG IoGetFunctionCodeFromCtlCode(ULONG ControlCode)
    UNIMPLEMENTED;
 }
 
-NTSTATUS STDCALL NtDeviceIoControlFile(IN HANDLE DeviceHandle,
-                                      IN HANDLE Event OPTIONAL,
-                                      IN PIO_APC_ROUTINE UserApcRoutine,
-                                      IN PVOID UserApcContext OPTIONAL,
-                                      OUT PIO_STATUS_BLOCK IoStatusBlock,
-                                      IN ULONG IoControlCode,
-                                      IN PVOID InputBuffer,
-                                      IN ULONG InputBufferSize,
-                                      OUT PVOID OutputBuffer,
-                                      IN ULONG OutputBufferSize)
-{
-    return(ZwDeviceIoControlFile(DeviceHandle,
-                                Event,
-                                UserApcRoutine,
-                                UserApcContext,
-                                IoStatusBlock,
-                                IoControlCode,
-                                InputBuffer,
-                                InputBufferSize,
-                                OutputBuffer,
-                                OutputBufferSize));
-}
 
 /*
  * NOTES: No apc support yet!
  */
-
-NTSTATUS STDCALL ZwDeviceIoControlFile(IN HANDLE DeviceHandle,
-                                      IN HANDLE Event OPTIONAL,
-                                      IN PIO_APC_ROUTINE UserApcRoutine,
-                                      IN PVOID UserApcContext OPTIONAL,
-                                      OUT PIO_STATUS_BLOCK IoStatusBlock,
-                                      IN ULONG IoControlCode,
-                                      IN PVOID InputBuffer,
-                                      IN ULONG InputBufferSize,
-                                      OUT PVOID OutputBuffer,
-                                      IN ULONG OutputBufferSize)
+NTSTATUS
+STDCALL
+NtDeviceIoControlFile (
+       IN      HANDLE                  DeviceHandle,
+       IN      HANDLE                  Event           OPTIONAL,
+       IN      PIO_APC_ROUTINE         UserApcRoutine,
+       IN      PVOID                   UserApcContext  OPTIONAL,
+       OUT     PIO_STATUS_BLOCK        IoStatusBlock,
+       IN      ULONG                   IoControlCode,
+       IN      PVOID                   InputBuffer,
+       IN      ULONG                   InputBufferSize,
+       OUT     PVOID                   OutputBuffer,
+       IN      ULONG                   OutputBufferSize
+       )
 {
    NTSTATUS Status;
    PFILE_OBJECT FileObject;
@@ -72,7 +53,7 @@ NTSTATUS STDCALL ZwDeviceIoControlFile(IN HANDLE DeviceHandle,
    
    assert(KeGetCurrentIrql()==PASSIVE_LEVEL);
    
-   DPRINT("ZwDeviceIoControlFile(DeviceHandle %x Event %x UserApcRoutine %x "
+   DPRINT("NtDeviceIoControlFile(DeviceHandle %x Event %x UserApcRoutine %x "
           "UserApcContext %x IoStatusBlock %x InputBuffer %x "
           "InputBufferSize %x OutputBuffer %x OutputBufferSize %x)\n",
           DeviceHandle,Event,UserApcRoutine,UserApcContext,IoStatusBlock,
index 70702c9..f27ca8d 100644 (file)
 
 /* FUNCTIONS *****************************************************************/
 
-NTSTATUS STDCALL NtLockFile(IN  HANDLE FileHandle,
-                           IN  HANDLE Event OPTIONAL,
-                           IN  PIO_APC_ROUTINE ApcRoutine OPTIONAL,
-                           IN  PVOID ApcContext OPTIONAL,
-                           OUT PIO_STATUS_BLOCK IoStatusBlock,
-                           IN  PLARGE_INTEGER ByteOffset,
-                           IN  PLARGE_INTEGER Length,
-                           IN  PULONG Key,
-                           IN  BOOLEAN FailImmediatedly,
-                           IN  BOOLEAN ExclusiveLock)
+NTSTATUS
+STDCALL
+NtLockFile (
+       IN      HANDLE                  FileHandle,
+       IN      HANDLE                  Event           OPTIONAL,
+       IN      PIO_APC_ROUTINE         ApcRoutine      OPTIONAL,
+       IN      PVOID                   ApcContext      OPTIONAL,
+       OUT     PIO_STATUS_BLOCK        IoStatusBlock,
+       IN      PLARGE_INTEGER          ByteOffset,
+       IN      PLARGE_INTEGER          Length,
+       IN      PULONG                  Key,
+       IN      BOOLEAN                 FailImmediatedly,
+       IN      BOOLEAN                 ExclusiveLock
+       )
 {
-   return(ZwLockFile(FileHandle,
-                    Event,
-                    ApcRoutine,
-                    ApcContext,
-                    IoStatusBlock,
-                    ByteOffset,
-                    Length,
-                    Key,
-                    FailImmediatedly,
-                    ExclusiveLock));
+       UNIMPLEMENTED;
 }
 
-NTSTATUS STDCALL ZwLockFile(IN  HANDLE FileHandle,
-                           IN  HANDLE Event OPTIONAL,
-                           IN  PIO_APC_ROUTINE ApcRoutine OPTIONAL,
-                           IN  PVOID ApcContext OPTIONAL,
-                           OUT PIO_STATUS_BLOCK IoStatusBlock,
-                           IN  PLARGE_INTEGER ByteOffset,
-                           IN  PLARGE_INTEGER Length,
-                           IN  PULONG Key,
-                           IN  BOOLEAN FailImmediatedly,
-                           IN  BOOLEAN ExclusiveLock)
-{
-   UNIMPLEMENTED;
-}
-
-NTSTATUS STDCALL NtUnlockFile(IN HANDLE FileHandle,
-                             OUT PIO_STATUS_BLOCK IoStatusBlock,
-                             IN PLARGE_INTEGER ByteOffset,
-                             IN PLARGE_INTEGER Length,
-                             OUT PULONG Key OPTIONAL)
-{
-   return(ZwUnlockFile(FileHandle,
-                      IoStatusBlock,
-                      ByteOffset,
-                      Length,
-                      Key));
-}
 
-NTSTATUS STDCALL ZwUnlockFile(IN HANDLE FileHandle,
-                             OUT PIO_STATUS_BLOCK IoStatusBlock,
-                             IN PLARGE_INTEGER ByteOffset,
-                             IN PLARGE_INTEGER Length,
-                             OUT PULONG Key OPTIONAL)
+NTSTATUS
+STDCALL
+NtUnlockFile (
+       IN      HANDLE                  FileHandle,
+       OUT     PIO_STATUS_BLOCK        IoStatusBlock,
+       IN      PLARGE_INTEGER          ByteOffset,
+       IN      PLARGE_INTEGER          Length,
+       OUT     PULONG                  Key             OPTIONAL
+       )
 {
-   UNIMPLEMENTED;
+       UNIMPLEMENTED;
 }
index 82c0814..43e5ee0 100644 (file)
 
 /* FUNCTIONS *****************************************************************/
 
-NTSTATUS STDCALL NtCreateMailslotFile(OUT PHANDLE MailSlotFileHandle,
-                                     IN ACCESS_MASK DesiredAccess,
-                                     IN POBJECT_ATTRIBUTES ObjectAttributes,
-                                     OUT PIO_STATUS_BLOCK IoStatusBlock,
-                                     IN ULONG FileAttributes,
-                                     IN ULONG ShareAccess,   
-                                     IN ULONG MaxMessageSize,
-                                     IN PLARGE_INTEGER TimeOut)
+NTSTATUS
+STDCALL
+NtCreateMailslotFile (
+       OUT     PHANDLE                 MailSlotFileHandle,
+       IN      ACCESS_MASK             DesiredAccess,
+       IN      POBJECT_ATTRIBUTES      ObjectAttributes,
+       OUT     PIO_STATUS_BLOCK        IoStatusBlock,
+       IN      ULONG                   FileAttributes,
+       IN      ULONG                   ShareAccess,   
+       IN      ULONG                   MaxMessageSize,
+       IN      PLARGE_INTEGER          TimeOut
+       )
 {
-   return(ZwCreateMailslotFile(MailSlotFileHandle,
-                              DesiredAccess,
-                              ObjectAttributes,
-                              IoStatusBlock,
-                              FileAttributes,
-                              ShareAccess,
-                              MaxMessageSize,
-                              TimeOut));
-}
-
-NTSTATUS STDCALL ZwCreateMailslotFile(OUT PHANDLE MailSlotFileHandle,
-                                     IN ACCESS_MASK DesiredAccess,
-                                     IN POBJECT_ATTRIBUTES ObjectAttributes,
-                                     OUT PIO_STATUS_BLOCK IoStatusBlock,
-                                     IN ULONG FileAttributes,                   
-                                     IN ULONG ShareAccess,   
-                                     IN ULONG MaxMessageSize,
-                                     IN PLARGE_INTEGER TimeOut)
-{
-   UNIMPLEMENTED;
+       UNIMPLEMENTED;
 }
index 7efa846..ea92ef2 100644 (file)
 
 /* FUNCTIONS *****************************************************************/
 
-NTSTATUS STDCALL NtCreateNamedPipeFile(OUT PHANDLE NamedPipeFileHandle,
-                                      IN ACCESS_MASK DesiredAccess,               
-                                      IN POBJECT_ATTRIBUTES ObjectAttributes,     
-                                      OUT PIO_STATUS_BLOCK IoStatusBlock,    
-                                      IN ULONG FileAttributes,
-                                      IN ULONG ShareAccess,
-                                      IN ULONG OpenMode,  
-                                      IN ULONG PipeType, 
-                                      IN ULONG PipeRead, 
-                                      IN ULONG PipeWait, 
-                                      IN ULONG MaxInstances,
-                                      IN ULONG InBufferSize,
-                                      IN ULONG OutBufferSize,
-                                      IN PLARGE_INTEGER TimeOut)
+NTSTATUS
+STDCALL
+NtCreateNamedPipeFile (
+       OUT     PHANDLE                 NamedPipeFileHandle,
+       IN      ACCESS_MASK             DesiredAccess,               
+       IN      POBJECT_ATTRIBUTES      ObjectAttributes,     
+       OUT     PIO_STATUS_BLOCK        IoStatusBlock,    
+       IN      ULONG                   FileAttributes,
+       IN      ULONG                   ShareAccess,
+       IN      ULONG                   OpenMode,  
+       IN      ULONG                   PipeType, 
+       IN      ULONG                   PipeRead, 
+       IN      ULONG                   PipeWait, 
+       IN      ULONG                   MaxInstances,
+       IN      ULONG                   InBufferSize,
+       IN      ULONG                   OutBufferSize,
+       IN      PLARGE_INTEGER          TimeOut
+       )
 {
-   return(ZwCreateNamedPipeFile(NamedPipeFileHandle,
-                               DesiredAccess,
-                               ObjectAttributes,
-                               IoStatusBlock,
-                               FileAttributes,
-                               ShareAccess,
-                               OpenMode,
-                               PipeType,
-                               PipeRead,
-                               PipeWait,
-                               MaxInstances,
-                               InBufferSize,
-                               OutBufferSize,
-                               TimeOut));
-}
-
-NTSTATUS STDCALL ZwCreateNamedPipeFile(OUT PHANDLE NamedPipeFileHandle,
-                                      IN ACCESS_MASK DesiredAccess,               
-                                      IN POBJECT_ATTRIBUTES ObjectAttributes,     
-                                      OUT PIO_STATUS_BLOCK IoStatusBlock,    
-                                      IN ULONG FileAttributes,
-                                      IN ULONG ShareAccess,
-                                      IN ULONG OpenMode,  
-                                      IN ULONG PipeType, 
-                                      IN ULONG PipeRead, 
-                                      IN ULONG PipeWait, 
-                                      IN ULONG MaxInstances,
-                                      IN ULONG InBufferSize,
-                                      IN ULONG OutBufferSize,
-                                      IN PLARGE_INTEGER TimeOut)
-{
-   UNIMPLEMENTED;
+       UNIMPLEMENTED;
 }
index b383480..74d01aa 100644 (file)
 
 /* FUNCTIONS ***************************************************************/
 
-NTSTATUS NtReadFile(HANDLE FileHandle,
-                    HANDLE EventHandle,
-                   PIO_APC_ROUTINE ApcRoutine,
-                   PVOID ApcContext,
-                   PIO_STATUS_BLOCK IoStatusBlock,
-                   PVOID Buffer,
-                   ULONG Length,
-                   PLARGE_INTEGER ByteOffset,
-                   PULONG Key)
-{
-   return(ZwReadFile(FileHandle,
-                    EventHandle,
-                    ApcRoutine,
-                    ApcContext,
-                    IoStatusBlock,
-                    Buffer,
-                    Length,
-                    ByteOffset,
-                    Key));
-}
-
-NTSTATUS ZwReadFile(HANDLE FileHandle,
-                    HANDLE EventHandle,
-                   PIO_APC_ROUTINE ApcRoutine,
-                   PVOID ApcContext,
-                   PIO_STATUS_BLOCK IoStatusBlock,
-                   PVOID Buffer,
-                   ULONG Length,
-                   PLARGE_INTEGER ByteOffset,
-                   PULONG Key)
+NTSTATUS
+NtReadFile (
+       HANDLE                  FileHandle,
+       HANDLE                  EventHandle,
+       PIO_APC_ROUTINE         ApcRoutine,
+       PVOID                   ApcContext,
+       PIO_STATUS_BLOCK        IoStatusBlock,
+       PVOID                   Buffer,
+       ULONG                   Length,
+       PLARGE_INTEGER          ByteOffset,
+       PULONG                  Key
+       )
 {
    NTSTATUS Status;
    PFILE_OBJECT FileObject;
@@ -59,7 +41,7 @@ NTSTATUS ZwReadFile(HANDLE FileHandle,
    PKEVENT ptrEvent = NULL;
    KEVENT Event;
    
-   DPRINT("ZwReadFile(FileHandle %x Buffer %x Length %x ByteOffset %x, "
+   DPRINT("NtReadFile(FileHandle %x Buffer %x Length %x ByteOffset %x, "
          "IoStatusBlock %x)\n",
          FileHandle,Buffer,Length,ByteOffset,IoStatusBlock);
 
@@ -73,7 +55,7 @@ NTSTATUS ZwReadFile(HANDLE FileHandle,
                                      NULL);
    if (!NT_SUCCESS(Status))
      {
-       DPRINT("ZwReadFile() = %x\n",Status);
+       DPRINT("NtReadFile() = %x\n",Status);
        return(Status);
      }
    
@@ -133,41 +115,24 @@ NTSTATUS ZwReadFile(HANDLE FileHandle,
        KeWaitForSingleObject(&Event,Executive,KernelMode,FALSE,NULL);
        Status = IoStatusBlock->Status;
      }
-   DPRINT("ZwReadFile() = %x\n",Status);
+   DPRINT("NtReadFile() = %x\n",Status);
    assert_irql(PASSIVE_LEVEL);
    return(Status);
 }
 
-NTSTATUS NtWriteFile(HANDLE FileHandle,
-                    HANDLE EventHandle,
-                    PIO_APC_ROUTINE ApcRoutine,
-                    PVOID ApcContext,
-                    PIO_STATUS_BLOCK IoStatusBlock,
-                    PVOID Buffer,
-                    ULONG Length,
-                    PLARGE_INTEGER ByteOffset,
-                    PULONG Key)
-{
-   return(ZwWriteFile(FileHandle,
-                     EventHandle,
-                     ApcRoutine,
-                     ApcContext,
-                     IoStatusBlock,
-                     Buffer,
-                     Length,
-                     ByteOffset,
-                     Key));
-}
 
-NTSTATUS ZwWriteFile(HANDLE FileHandle,
-                    HANDLE EventHandle,
-                    PIO_APC_ROUTINE ApcRoutine,
-                    PVOID ApcContext,
-                    PIO_STATUS_BLOCK IoStatusBlock,
-                    PVOID Buffer,
-                    ULONG Length,
-                    PLARGE_INTEGER ByteOffset,
-                    PULONG Key)
+NTSTATUS
+NtWriteFile (
+       HANDLE                  FileHandle,
+       HANDLE                  EventHandle,
+       PIO_APC_ROUTINE         ApcRoutine,
+       PVOID                   ApcContext,
+       PIO_STATUS_BLOCK        IoStatusBlock,
+       PVOID                   Buffer,
+       ULONG                   Length,
+       PLARGE_INTEGER          ByteOffset,
+       PULONG                  Key
+       )
 {
    NTSTATUS Status;
    PFILE_OBJECT FileObject;
@@ -175,7 +140,7 @@ NTSTATUS ZwWriteFile(HANDLE FileHandle,
    PIO_STACK_LOCATION StackPtr;
    KEVENT Event;
    
-   DPRINT("ZwWriteFile(FileHandle %x, Buffer %x, Length %d)\n",
+   DPRINT("NtWriteFile(FileHandle %x, Buffer %x, Length %d)\n",
          FileHandle,Buffer,Length);
    
    Status = ObReferenceObjectByHandle(FileHandle,
@@ -225,71 +190,38 @@ NTSTATUS ZwWriteFile(HANDLE FileHandle,
    return(Status);
 }
 
-NTSTATUS STDCALL NtReadFileScatter(IN HANDLE FileHandle, 
-                                  IN HANDLE Event OPTIONAL, 
-                                  IN PIO_APC_ROUTINE UserApcRoutine OPTIONAL, 
-                                  IN  PVOID UserApcContext OPTIONAL, 
-                                  OUT PIO_STATUS_BLOCK UserIoStatusBlock, 
-                                  IN FILE_SEGMENT_ELEMENT BufferDescription[], 
-                                  IN ULONG BufferLength, 
-                                  IN PLARGE_INTEGER ByteOffset, 
-                                  IN PULONG Key OPTIONAL)
-{
-   return(ZwReadFileScatter(FileHandle,
-                           Event,
-                           UserApcRoutine,
-                           UserApcContext,
-                           UserIoStatusBlock,
-                           BufferDescription,
-                           BufferLength,
-                           ByteOffset,
-                           Key));
-}
 
-NTSTATUS STDCALL ZwReadFileScatter(IN HANDLE FileHandle, 
-                                  IN HANDLE Event OPTIONAL, 
-                                  IN PIO_APC_ROUTINE UserApcRoutine OPTIONAL, 
-                                  IN  PVOID UserApcContext OPTIONAL, 
-                                  OUT PIO_STATUS_BLOCK UserIoStatusBlock, 
-                                  IN FILE_SEGMENT_ELEMENT BufferDescription[],
-                                  IN ULONG BufferLength, 
-                                  IN PLARGE_INTEGER ByteOffset, 
-                                  IN PULONG Key OPTIONAL)
+NTSTATUS
+STDCALL
+NtReadFileScatter (
+       IN      HANDLE                  FileHandle, 
+       IN      HANDLE                  Event                   OPTIONAL, 
+       IN      PIO_APC_ROUTINE         UserApcRoutine          OPTIONAL, 
+       IN      PVOID                   UserApcContext          OPTIONAL, 
+       OUT     PIO_STATUS_BLOCK        UserIoStatusBlock, 
+       IN      FILE_SEGMENT_ELEMENT    BufferDescription [], 
+       IN      ULONG                   BufferLength, 
+       IN      PLARGE_INTEGER          ByteOffset, 
+       IN      PULONG                  Key                     OPTIONAL
+       )
 {
-   UNIMPLEMENTED;
+       UNIMPLEMENTED;
 }
 
 
-NTSTATUS STDCALL NtWriteFileGather(IN HANDLE FileHandle, 
-                                  IN HANDLE Event OPTIONAL, 
-                                  IN PIO_APC_ROUTINE ApcRoutine OPTIONAL, 
-                                  IN PVOID ApcContext OPTIONAL, 
-                                  OUT PIO_STATUS_BLOCK IoStatusBlock,
-                                  IN FILE_SEGMENT_ELEMENT BufferDescription[],
-                                  IN ULONG BufferLength, 
-                                  IN PLARGE_INTEGER ByteOffset, 
-                                  IN PULONG Key OPTIONAL)
-{
-   return(ZwWriteFileGather(FileHandle,
-                           Event,
-                           ApcRoutine,
-                           ApcContext,
-                           IoStatusBlock,
-                           BufferDescription,
-                           BufferLength,
-                           ByteOffset,
-                           Key));
-}
-
-NTSTATUS STDCALL ZwWriteFileGather(IN HANDLE FileHandle, 
-                                  IN HANDLE Event OPTIONAL, 
-                                  IN PIO_APC_ROUTINE ApcRoutine OPTIONAL, 
-                                  IN PVOID ApcContext OPTIONAL, 
-                                  OUT PIO_STATUS_BLOCK IoStatusBlock,
-                                  IN FILE_SEGMENT_ELEMENT BufferDescription[],
-                                  IN ULONG BufferLength, 
-                                  IN PLARGE_INTEGER ByteOffset, 
-                                  IN PULONG Key OPTIONAL)
+NTSTATUS
+STDCALL
+NtWriteFileGather (
+       IN      HANDLE                  FileHandle, 
+       IN      HANDLE                  Event OPTIONAL, 
+       IN      PIO_APC_ROUTINE         ApcRoutine              OPTIONAL, 
+       IN      PVOID                   ApcContext              OPTIONAL, 
+       OUT     PIO_STATUS_BLOCK        IoStatusBlock,
+       IN      FILE_SEGMENT_ELEMENT    BufferDescription [],
+       IN      ULONG                   BufferLength, 
+       IN      PLARGE_INTEGER          ByteOffset, 
+       IN      PULONG                  Key                     OPTIONAL
+       )
 {
-   UNIMPLEMENTED;
+       UNIMPLEMENTED;
 }
index 2be022b..f796ed8 100644 (file)
@@ -93,18 +93,12 @@ VOID IoInitSymbolicLinkImplementation(VOID)
 }
 
 
-NTSTATUS NtOpenSymbolicLinkObject(OUT PHANDLE LinkHandle,
-                                 IN ACCESS_MASK DesiredAccess,
-                                 IN POBJECT_ATTRIBUTES ObjectAttributes)
-{
-   return(ZwOpenSymbolicLinkObject(LinkHandle,
-                                  DesiredAccess,
-                                  ObjectAttributes));
-}
-
-NTSTATUS ZwOpenSymbolicLinkObject(OUT PHANDLE LinkHandle,
-                                 IN ACCESS_MASK DesiredAccess,
-                                 IN POBJECT_ATTRIBUTES ObjectAttributes)
+NTSTATUS
+NtOpenSymbolicLinkObject (
+       OUT     PHANDLE                 LinkHandle,
+       IN      ACCESS_MASK             DesiredAccess,
+       IN      POBJECT_ATTRIBUTES      ObjectAttributes
+       )
 {
    NTSTATUS Status;
    PVOID Object;
@@ -135,16 +129,13 @@ NTSTATUS ZwOpenSymbolicLinkObject(OUT PHANDLE LinkHandle,
    return(STATUS_SUCCESS);
 }
 
-NTSTATUS NtQuerySymbolicLinkObject(IN HANDLE LinkHandle,
-                                  IN OUT PUNICODE_STRING LinkTarget,
-                                  OUT PULONG ReturnedLength OPTIONAL)
-{
-   return(ZwQuerySymbolicLinkObject(LinkHandle,LinkTarget,ReturnedLength));
-}
 
-NTSTATUS ZwQuerySymbolicLinkObject(IN HANDLE LinkHandle,
-                                  IN OUT PUNICODE_STRING LinkTarget,
-                                  OUT PULONG ReturnedLength OPTIONAL)
+NTSTATUS
+NtQuerySymbolicLinkObject (
+       IN      HANDLE          LinkHandle,
+       IN OUT  PUNICODE_STRING LinkTarget,
+       OUT     PULONG          ReturnedLength  OPTIONAL
+       )
 {
    PSYMLNK_OBJECT SymlinkObject;
    NTSTATUS Status;
@@ -211,29 +202,23 @@ NTSTATUS IoCreateSymbolicLink(PUNICODE_STRING SymbolicLinkName,
    return(STATUS_SUCCESS);
 }
 
-NTSTATUS IoDeleteSymbolicLink(PUNICODE_STRING DeviceName)
-{
-   UNIMPLEMENTED;
-}
 
-NTSTATUS STDCALL NtCreateSymbolicLinkObject(
-                                   OUT PHANDLE SymbolicLinkHandle,
-                                   IN ACCESS_MASK DesiredAccess,
-                                   IN POBJECT_ATTRIBUTES ObjectAttributes,
-                                   IN PUNICODE_STRING Name)
+NTSTATUS
+IoDeleteSymbolicLink(PUNICODE_STRING DeviceName)
 {
-   return(NtCreateSymbolicLinkObject(SymbolicLinkHandle,
-                                    DesiredAccess,
-                                    ObjectAttributes,
-                                    Name));
+       UNIMPLEMENTED;
 }
 
-NTSTATUS STDCALL ZwCreateSymbolicLinkObject(
-                                   OUT PHANDLE SymbolicLinkHandle,
-                                   IN ACCESS_MASK DesiredAccess,
-                                   IN POBJECT_ATTRIBUTES ObjectAttributes,
-                                   IN PUNICODE_STRING Name)
+
+NTSTATUS
+STDCALL
+NtCreateSymbolicLinkObject (
+       OUT     PHANDLE                 SymbolicLinkHandle,
+       IN      ACCESS_MASK             DesiredAccess,
+       IN      POBJECT_ATTRIBUTES      ObjectAttributes,
+       IN      PUNICODE_STRING         Name
+       )
 {
-   UNIMPLEMENTED;
+       UNIMPLEMENTED;
 }
 
index 7bf73c8..75edb08 100644 (file)
@@ -95,12 +95,15 @@ PIRP IoBuildVolumeInformationIrp(ULONG MajorFunction,
    return(Irp);
 }
 
-NTSTATUS STDCALL NtQueryVolumeInformationFile(
-                                           IN HANDLE FileHandle,
-                                           OUT PIO_STATUS_BLOCK IoStatusBlock,
-                                           OUT PVOID FSInformation,
-                                           IN ULONG Length,
-                                           IN FS_INFORMATION_CLASS FSInformationClass)
+NTSTATUS
+STDCALL
+NtQueryVolumeInformationFile (
+       IN      HANDLE                  FileHandle,
+       OUT     PIO_STATUS_BLOCK        IoStatusBlock,
+       OUT     PVOID                   FSInformation,
+       IN      ULONG                   Length,
+       IN      FS_INFORMATION_CLASS    FSInformationClass
+       )
 
 /*
  * FUNCTION: Queries the volume information
@@ -124,19 +127,6 @@ NTSTATUS STDCALL NtQueryVolumeInformationFile(
  *
  * RETURNS: Status
  */
-{
-   return(ZwQueryVolumeInformationFile(FileHandle,IoStatusBlock,FSInformation,
-                                      Length,FSInformationClass));
-}
-
-NTSTATUS
-STDCALL
-ZwQueryVolumeInformationFile(
-       IN HANDLE FileHandle,
-       OUT PIO_STATUS_BLOCK IoStatusBlock,
-       OUT PVOID FSInformation,
-       IN ULONG Length,
-       IN FS_INFORMATION_CLASS FSInformationClass)
 {
    PFILE_OBJECT FileObject;
    PDEVICE_OBJECT DeviceObject;
@@ -179,27 +169,13 @@ ZwQueryVolumeInformationFile(
 
 NTSTATUS
 STDCALL
-NtSetVolumeInformationFile(
-       IN HANDLE FileHandle,
-       IN CINT VolumeInformationClass,
-       PVOID VolumeInformation,
-       ULONG Length
+NtSetVolumeInformationFile (
+       IN      HANDLE  FileHandle,
+       IN      CINT    VolumeInformationClass,
+               PVOID   VolumeInformation,
+               ULONG   Length
        )
 {
-   return(ZwSetVolumeInformationFile(FileHandle,VolumeInformationClass,
-                                    VolumeInformation,Length));
-}
-
-NTSTATUS
-STDCALL
-ZwSetVolumeInformationFile(
-       IN HANDLE FileHandle,
-       IN CINT VolumeInformationClass,
-       PVOID VolumeInformation,
-       ULONG Length
-       )
-{
-   
    PFILE_OBJECT FileObject;
    PDEVICE_OBJECT DeviceObject;
    PIRP Irp;
index 462911d..4f4d4e7 100644 (file)
@@ -227,24 +227,15 @@ VOID KeInitializeApc(PKAPC Apc,
 }
 
 
-NTSTATUS STDCALL NtQueueApcThread(HANDLE ThreadHandle,
-                                 PKNORMAL_ROUTINE ApcRoutine,
-                                 PVOID NormalContext,
-                                 PVOID SystemArgument1,
-                                 PVOID SystemArgument2)
-{
-   return(ZwQueueApcThread(ThreadHandle,
-                          ApcRoutine,
-                          NormalContext,
-                          SystemArgument1,
-                          SystemArgument2));
-}
-
-NTSTATUS STDCALL ZwQueueApcThread(HANDLE ThreadHandle,
-                                 PKNORMAL_ROUTINE ApcRoutine,
-                                 PVOID NormalContext,
-                                 PVOID SystemArgument1,
-                                 PVOID SystemArgument2)
+NTSTATUS
+STDCALL
+NtQueueApcThread (
+       HANDLE                  ThreadHandle,
+       PKNORMAL_ROUTINE        ApcRoutine,
+       PVOID                   NormalContext,
+       PVOID                   SystemArgument1,
+       PVOID                   SystemArgument2
+       )
 {
    PKAPC Apc;
    PETHREAD Thread;
@@ -285,14 +276,14 @@ NTSTATUS STDCALL ZwQueueApcThread(HANDLE ThreadHandle,
    return(STATUS_SUCCESS);
 }
 
-NTSTATUS STDCALL NtTestAlert(VOID)
-{
-   return(ZwTestAlert());
-}
 
-NTSTATUS STDCALL ZwTestAlert(VOID)
+NTSTATUS
+STDCALL
+NtTestAlert(VOID)
 {
-   KiTestAlert(KeGetCurrentThread(),
-              NULL /* ?? */);
-   return(STATUS_SUCCESS);
+       KiTestAlert(
+               KeGetCurrentThread(),
+               NULL /* ?? */
+               );
+       return(STATUS_SUCCESS);
 }
index 68e3f3b..189aa3b 100644 (file)
@@ -22,18 +22,13 @@ VOID ExRaiseStatus(NTSTATUS Status)
 }
 
 
-NTSTATUS STDCALL NtRaiseException(IN PEXCEPTION_RECORD ExceptionRecord,
-                                 IN PCONTEXT Context,
-                                 IN BOOL IsDebugger OPTIONAL)
+NTSTATUS
+STDCALL
+NtRaiseException (
+       IN      PEXCEPTION_RECORD       ExceptionRecord,
+       IN      PCONTEXT                Context,
+       IN      BOOL                    IsDebugger              OPTIONAL
+       )
 {
-   return(ZwRaiseException(ExceptionRecord,
-                          Context,
-                          IsDebugger));
-}
-
-NTSTATUS STDCALL ZwRaiseException(IN PEXCEPTION_RECORD ExceptionRecord,
-                                 IN PCONTEXT Context,
-                                 IN BOOL IsDebugger OPTIONAL)
-{
-   UNIMPLEMENTED;
+       UNIMPLEMENTED;
 }
index f32b31b..162c7bb 100644 (file)
@@ -120,48 +120,38 @@ VOID KeCalibrateTimerLoop(VOID)
 }
 
 
-NTSTATUS STDCALL NtQueryTimerResolution (OUT PULONG MinimumResolution,
-                                        OUT PULONG MaximumResolution, 
-                                        OUT PULONG ActualResolution)
+NTSTATUS
+STDCALL
+NtQueryTimerResolution (
+       OUT     PULONG  MinimumResolution,
+       OUT     PULONG  MaximumResolution, 
+       OUT     PULONG  ActualResolution
+       )
 {
-   return(ZwQueryTimerResolution(MinimumResolution,MaximumResolution,
-                                ActualResolution));
+       UNIMPLEMENTED;
 }
 
-NTSTATUS STDCALL ZwQueryTimerResolution (OUT PULONG MinimumResolution,
-                                        OUT PULONG MaximumResolution, 
-                                        OUT PULONG ActualResolution)
-{
-   UNIMPLEMENTED;
-}
-
-NTSTATUS STDCALL NtSetTimerResolution(IN ULONG RequestedResolution,
-                                     IN BOOL SetOrUnset,
-                                     OUT PULONG ActualResolution)
-{
-   return(ZwSetTimerResolution(RequestedResolution,
-                              SetOrUnset,
-                              ActualResolution));
-}
 
-NTSTATUS STDCALL ZwSetTimerResolution(IN ULONG RequestedResolution,
-                                     IN BOOL SetOrUnset,
-                                     OUT PULONG ActualResolution)
+NTSTATUS
+STDCALL
+NtSetTimerResolution (
+       IN      ULONG   RequestedResolution,
+       IN      BOOL    SetOrUnset,
+       OUT     PULONG  ActualResolution
+       )
 {
-   UNIMPLEMENTED;
+       UNIMPLEMENTED;
 }
 
-NTSTATUS STDCALL NtQueryPerformanceCounter(IN PLARGE_INTEGER Counter,
-                                          IN PLARGE_INTEGER Frequency)
-{
-   return(ZwQueryPerformanceCounter(Counter,
-                                   Frequency));
-}
 
-NTSTATUS STDCALL ZwQueryPerformanceCounter(IN PLARGE_INTEGER Counter,
-                                          IN PLARGE_INTEGER Frequency)
+NTSTATUS
+STDCALL
+NtQueryPerformanceCounter (
+       IN      PLARGE_INTEGER  Counter,
+       IN      PLARGE_INTEGER  Frequency
+       )
 {
-   UNIMPLEMENTED;
+       UNIMPLEMENTED;
 }
 
 
@@ -182,18 +172,17 @@ NTSTATUS KeAddThreadTimeout(PKTHREAD Thread, PLARGE_INTEGER Interval)
 }
 
 
-NTSTATUS STDCALL NtDelayExecution(IN BOOLEAN Alertable,
-                                 IN TIME *Interval)
+NTSTATUS
+STDCALL
+NtDelayExecution (
+       IN      BOOLEAN Alertable,
+       IN      TIME    * Interval
+       )
 {
-   return(ZwDelayExecution(Alertable,Interval));
+       KeBugCheck(0);
+       return(STATUS_UNSUCCESSFUL);
 }
 
-NTSTATUS STDCALL ZwDelayExecution(IN BOOLEAN Alertable,
-                                 IN TIME *Interval)
-{
-   KeBugCheck(0);
-   return(STATUS_UNSUCCESSFUL);
-}
 
 NTSTATUS KeDelayExecutionThread(KPROCESSOR_MODE WaitMode,
                                BOOLEAN Alertable,
@@ -307,16 +296,15 @@ VOID KeQuerySystemTime(PLARGE_INTEGER CurrentTime)
   CurrentTime->QuadPart = system_time;
 }
 
-NTSTATUS STDCALL NtGetTickCount(PULONG UpTime)
-{
-   return(ZwGetTickCount(UpTime));
-}
 
-NTSTATUS STDCALL ZwGetTickCount(PULONG UpTime)
+NTSTATUS
+STDCALL
+NtGetTickCount (PULONG UpTime)
 {
-   UNIMPLEMENTED;
+       UNIMPLEMENTED;
 }
 
+
 BOOLEAN KeSetTimer(PKTIMER Timer, LARGE_INTEGER DueTime, PKDPC Dpc)
 /*
  * FUNCTION: Sets the absolute or relative interval at which a timer object
index da779dc..4f22865 100644 (file)
@@ -257,45 +257,32 @@ VOID KeInitializeDispatcher(VOID)
    KeInitializeSpinLock(&DispatcherDatabaseLock);
 }
 
-NTSTATUS STDCALL NtWaitForMultipleObjects (IN ULONG Count,
-                                          IN HANDLE Object[],
-                                          IN CINT WaitType,
-                                          IN BOOLEAN Alertable,
-                                          IN PLARGE_INTEGER Time)
+NTSTATUS
+STDCALL
+NtWaitForMultipleObjects (
+       IN      ULONG           Count,
+       IN      HANDLE          Object [],
+       IN      CINT            WaitType,
+       IN      BOOLEAN         Alertable,
+       IN      PLARGE_INTEGER  Time
+       )
 {
-   return(ZwWaitForMultipleObjects(Count,
-                                  Object,
-                                  WaitType,
-                                  Alertable,
-                                  Time));
+       UNIMPLEMENTED;
 }
 
-NTSTATUS STDCALL ZwWaitForMultipleObjects (IN ULONG Count,
-                                          IN HANDLE Object[],
-                                          IN CINT WaitType,
-                                          IN BOOLEAN Alertable,
-                                          IN PLARGE_INTEGER Time)
-{
-   UNIMPLEMENTED;
-}
-
-NTSTATUS STDCALL NtWaitForSingleObject (IN HANDLE Object,
-                                       IN BOOLEAN Alertable,
-                                       IN PLARGE_INTEGER Time)
-{
-   return(ZwWaitForSingleObject(Object,
-                               Alertable,
-                               Time));
-}
 
-NTSTATUS STDCALL ZwWaitForSingleObject (IN HANDLE Object,
-                                       IN BOOLEAN Alertable,
-                                       IN PLARGE_INTEGER Time)
+NTSTATUS
+STDCALL
+NtWaitForSingleObject (
+       IN      HANDLE          Object,
+       IN      BOOLEAN         Alertable,
+       IN      PLARGE_INTEGER  Time
+       )
 {
    PVOID ObjectPtr;
    NTSTATUS Status;
    
-   DPRINT("ZwWaitForSingleObject(Object %x, Alertable %d, Time %x)\n",
+   DPRINT("NtWaitForSingleObject(Object %x, Alertable %d, Time %x)\n",
          Object,Alertable,Time);
    
    Status = ObReferenceObjectByHandle(Object,
@@ -321,23 +308,14 @@ NTSTATUS STDCALL ZwWaitForSingleObject (IN HANDLE Object,
 }
 
 
-NTSTATUS STDCALL NtSignalAndWaitForSingleObject(
-                                IN HANDLE EventHandle,
-                                IN BOOLEAN Alertable,
-                                IN PLARGE_INTEGER Time,
-                                PULONG NumberOfWaitingThreads OPTIONAL)
+NTSTATUS
+STDCALL
+NtSignalAndWaitForSingleObject (
+       IN      HANDLE          EventHandle,
+       IN      BOOLEAN         Alertable,
+       IN      PLARGE_INTEGER  Time,
+               PULONG          NumberOfWaitingThreads  OPTIONAL
+       )
 {
-   return(ZwSignalAndWaitForSingleObject(EventHandle,
-                                        Alertable,
-                                        Time,
-                                        NumberOfWaitingThreads));
-}
-
-NTSTATUS STDCALL ZwSignalAndWaitForSingleObject(
-                                IN HANDLE EventHandle,
-                                IN BOOLEAN Alertable,
-                                IN PLARGE_INTEGER Time,
-                                PULONG NumberOfWaitingThreads OPTIONAL)
-{
-   UNIMPLEMENTED;
+       UNIMPLEMENTED;
 }
index 40693d5..9b1d917 100644 (file)
@@ -1,4 +1,10 @@
-all: objects ntoskrnl.exe
+# $Id: makefile_rex,v 1.25 1999/06/18 22:11:05 ea Exp $
+#
+# ReactOS Operating System
+#
+TARGET=ntoskrnl
+
+all: objects $(TARGET).exe
 
 #
 # Defines $(HAL_OBJECTS)
@@ -7,7 +13,7 @@ include hal/x86/sources
 
 NT_OBJECTS = nt/port.o nt/channel.o nt/ntevent.o nt/nttimer.o nt/atom.o \
              nt/evtpair.o nt/ntsem.o nt/mutant.o nt/misc.o nt/plugplay.o \
-            nt/profile.o nt/nt.o
+            nt/profile.o nt/nt.o nt/zw.o
 
 RTL_OBJECTS = rtl/vsprintf.o rtl/lookas.o rtl/unicode.o rtl/strtok.o \
               rtl/time.o rtl/unalign.o rtl/mem.o rtl/largeint.o rtl/ctype.o \
@@ -53,7 +59,7 @@ LDR_OBJECTS = ldr/loader.o ldr/init.o
 
 CC_OBJECTS = cc/cacheman.o cc/view.o
 
-RESOURCE_OBJECT = ntoskrnl.coff
+RESOURCE_OBJECT = $(TARGET).coff
 
 objects: 
        mkdir objects
@@ -100,59 +106,77 @@ objects/nt.o: $(NT_OBJECTS)
 objects/cc.o: $(CC_OBJECTS)
        $(LD) -r $(CC_OBJECTS) -o objects/cc.o
 
-objects/ntoskrnl.coff: ntoskrnl.rc ../include/reactos/resource.h
-       $(RC) ntoskrnl.rc objects/ntoskrnl.coff
+$(TARGET).coff: $(TARGET).rc ../include/reactos/resource.h
 
 
 OBJECTS = objects/hal.o objects/ke.o objects/rtl.o objects/mm.o \
           objects/io.o objects/ob.o objects/ps.o objects/ex.o \
          objects/se.o objects/cm.o objects/dbg.o \
          objects/nt.o objects/cc.o objects/ldr.o \
-         objects/ntoskrnl.coff
+         $(TARGET).coff
          
 ifeq ($(DOSCLI),yes)
-CLEAN_FILES = objects\*.o cc\*.o cm\*.o dbg\*.o ex\*.o hal\x86\*.o io\*.o  \
-              ke\*.o ldr\*.o mm\*.o nt\*.o ob\*.o ps\*.o rtl\*.o se\*.o  \
-              utils\export\export.exe ntoskrnl.o ntoskrnl.a junk.tmp base.tmp  \
-              temp.exp ntoskrnl.exe ntoskrnl.sym
+CLEAN_FILES = objects\*.o cc\*.o cm\*.o dbg\*.o ex\*.o hal\x86\*.o io\*.o \
+              ke\*.o ldr\*.o mm\*.o nt\*.o ob\*.o ps\*.o rtl\*.o se\*.o \
+              utils\export\export.exe $(TARGET).o $(TARGET).a junk.tmp \
+             base.tmp temp.exp $(TARGET).exe $(TARGET).sym $(TARGET).coff
 else
-CLEAN_FILES = objects/*.o cc/*.o cm/*.o dbg/*.o ex/*.o hal/x86/*.o io/*.o  \
-              ke/*.o ldr/*.o mm/*.o nt/*.o ob/*.o ps/*.o rtl/*.o se/*.o  \
-              utils/export/export ntoskrnl.o ntoskrnl.a junk.tmp base.tmp  \
-              temp.exp ntoskrnl.exe ntoskrnl.sym
+CLEAN_FILES = objects/*.o cc/*.o cm/*.o dbg/*.o ex/*.o hal/x86/*.o io/*.o \
+              ke/*.o ldr/*.o mm/*.o nt/*.o ob/*.o ps/*.o rtl/*.o se/*.o \
+              utils/export/export $(TARGET).o $(TARGET).a junk.tmp base.tmp \
+              temp.exp $(TARGET).exe $(TARGET).sym $(TARGET).coff
 endif
 
-ntoskrnl.exe: $(OBJECTS) ntoskrnl.def
-       $(LD) -r $(OBJECTS) -o ntoskrnl.o
-       $(DLLTOOL) --dllname ntoskrnl.exe --def ntoskrnl.def \
-                  --output-lib ntoskrnl.a
-       $(CC) -Wl,-d -specs=../specs -mdll -o junk.tmp \
-             -Wl,--image-base,0xc0000000 \
-             -Wl,--file-alignment,0x1000 \
-             -Wl,--section-alignment,0x1000 \
-             -Wl,--defsym,_edata=__data_end__ \
-             -Wl,--defsym,_end=__bss_end__ \
-             -Wl,--defsym,_etext=etext -Wl,--base-file,base.tmp ntoskrnl.o
+$(TARGET).exe: $(OBJECTS) $(TARGET).def
+       $(LD) \
+               -r $(OBJECTS) \
+               -o $(TARGET).o
+       $(DLLTOOL) \
+               --dllname $(TARGET).exe \
+               --def $(TARGET).def \
+               --output-lib $(TARGET).a
+       $(CC) \
+               $(TARGET).o \
+               -Wl,-d -specs=../specs \
+               -mdll \
+               -o junk.tmp \
+               -Wl,--image-base,0xc0000000 \
+               -Wl,--file-alignment,0x1000 \
+               -Wl,--section-alignment,0x1000 \
+               -Wl,--defsym,_edata=__data_end__ \
+               -Wl,--defsym,_end=__bss_end__ \
+               -Wl,--defsym,_etext=etext \
+               -Wl,--base-file,base.tmp
        - $(RM) junk.tmp
-       $(DLLTOOL) --dllname ntoskrnl.exe --base-file base.tmp \
-                  --output-exp temp.exp --def ntoskrnl.def
+       $(DLLTOOL) \
+               --dllname $(TARGET).exe \
+               --base-file base.tmp \
+               --output-exp temp.exp \
+               --def $(TARGET).def
        - $(RM) base.tmp
-       $(CC) -Wl,-d -specs=../specs -mdll -o ntoskrnl.exe ntoskrnl.o \
-             -Wl,--image-base,0xc0000000 \
-             -Wl,--file-alignment,0x1000 \
-             -Wl,--section-alignment,0x1000 \
-             -Wl,--defsym,_end=__bss_end__ \
-             -Wl,--defsym,_edata=__data_end__ \
-             -Wl,--defsym,_etext=etext -Wl,temp.exp
+       $(CC) \
+               $(TARGET).o \
+               -Wl,-d -specs=../specs \
+               -mdll \
+               -o $(TARGET).exe \
+               -Wl,--image-base,0xc0000000 \
+               -Wl,--file-alignment,0x1000 \
+               -Wl,--section-alignment,0x1000 \
+               -Wl,--defsym,_end=__bss_end__ \
+               -Wl,--defsym,_edata=__data_end__ \
+               -Wl,--defsym,_etext=etext \
+               -Wl,temp.exp
        - $(RM) temp.exp
-       $(NM) --numeric-sort ntoskrnl.exe > ntoskrnl.sym
+       $(NM) --numeric-sort $(TARGET).exe > $(TARGET).sym
 
-ntoskrnl.o: $(OBJECTS)
-       $(LD) -r $(OBJECTS) -o ntoskrnl.o
+$(TARGET).o: $(OBJECTS)
+       $(LD) -r $(OBJECTS) -o $(TARGET).o
 
-ntoskrnl.a: ntoskrnl.def
-       $(DLLTOOL) --dllname ntoskrnl.exe --def ntoskrnl.def \
-                  --output-lib ntoskrnl.a
+$(TARGET).a: $(TARGET).def
+       $(DLLTOOL) \
+               --dllname $(TARGET).exe \
+               --def $(TARGET).def \
+               --output-lib $(TARGET).a
 
 clean: $(CLEAN_FILES:%=%_clean)
 
index 4298355..9b1c23b 100644 (file)
 
 /* FUNCTIONS *****************************************************************/
 
-NTSTATUS STDCALL NtCreatePagingFile(IN PUNICODE_STRING PageFileName,
-                                   IN ULONG MiniumSize,
-                                   IN ULONG MaxiumSize,
-                                   OUT PULONG ActualSize)
+NTSTATUS
+STDCALL
+NtCreatePagingFile (
+       IN      PUNICODE_STRING PageFileName,
+       IN      ULONG           MiniumSize,
+       IN      ULONG           MaxiumSize,
+       OUT     PULONG          ActualSize
+       )
 {
-   return(ZwCreatePagingFile(PageFileName,MiniumSize,MaxiumSize,ActualSize));
-}
-
-NTSTATUS STDCALL ZwCreatePagingFile(IN PUNICODE_STRING PageFileName,
-                                   IN ULONG MiniumSize,
-                                   IN ULONG MaxiumSize,
-                                   OUT PULONG ActualSize)
-{
-   UNIMPLEMENTED;
+       UNIMPLEMENTED;
 }
index 15d1fe1..b2fbf94 100644 (file)
@@ -93,30 +93,18 @@ NTSTATUS MmInitSectionImplementation(VOID)
    return(STATUS_SUCCESS);
 }
 
-NTSTATUS STDCALL NtCreateSection(OUT PHANDLE SectionHandle, 
-                                IN ACCESS_MASK DesiredAccess,
-                           IN POBJECT_ATTRIBUTES ObjectAttributes OPTIONAL,  
-                           IN PLARGE_INTEGER MaximumSize OPTIONAL,  
-                           IN ULONG SectionPageProtection OPTIONAL,
-                           IN ULONG AllocationAttributes,
-                           IN HANDLE FileHandle OPTIONAL)
-{
-   return(ZwCreateSection(SectionHandle,
-                         DesiredAccess,
-                         ObjectAttributes,
-                         MaximumSize,
-                         SectionPageProtection,
-                         AllocationAttributes,
-                         FileHandle));
-}
 
-NTSTATUS STDCALL ZwCreateSection(OUT PHANDLE SectionHandle, 
-                                IN ACCESS_MASK DesiredAccess,
-                           IN POBJECT_ATTRIBUTES ObjectAttributes OPTIONAL,  
-                           IN PLARGE_INTEGER MaximumSize OPTIONAL,  
-                           IN ULONG SectionPageProtection OPTIONAL,
-                           IN ULONG AllocationAttributes,
-                           IN HANDLE FileHandle OPTIONAL)
+NTSTATUS
+STDCALL
+NtCreateSection (
+       OUT     PHANDLE                 SectionHandle, 
+       IN      ACCESS_MASK             DesiredAccess,
+       IN      POBJECT_ATTRIBUTES      ObjectAttributes        OPTIONAL,  
+       IN      PLARGE_INTEGER          MaximumSize             OPTIONAL,  
+       IN      ULONG                   SectionPageProtection   OPTIONAL,
+       IN      ULONG                   AllocationAttributes,
+       IN      HANDLE                  FileHandle              OPTIONAL
+       )
 /*
  * FUNCTION: Creates a section object.
  * ARGUMENTS:
@@ -145,7 +133,7 @@ NTSTATUS STDCALL ZwCreateSection(OUT PHANDLE SectionHandle,
    PSECTION_OBJECT Section;
    NTSTATUS Status;
    
-   DPRINT("ZwCreateSection()\n");
+   DPRINT("NtCreateSection()\n");
 
    Section = ObCreateObject(SectionHandle,
                            DesiredAccess,
@@ -177,7 +165,7 @@ NTSTATUS STDCALL ZwCreateSection(OUT PHANDLE SectionHandle,
                                           NULL);
        if (Status != STATUS_SUCCESS)
          {
-            DPRINT("ZwCreateSection() = %x\n",Status);
+            DPRINT("NtCreateSection() = %x\n",Status);
             return(Status);
          }
      }
@@ -186,22 +174,17 @@ NTSTATUS STDCALL ZwCreateSection(OUT PHANDLE SectionHandle,
        Section->FileObject = NULL;
      }
    
-   DPRINT("ZwCreateSection() = STATUS_SUCCESS\n");
+   DPRINT("NtCreateSection() = STATUS_SUCCESS\n");
    return(STATUS_SUCCESS);
 }
 
-NTSTATUS NtOpenSection(PHANDLE SectionHandle,
-                      ACCESS_MASK DesiredAccess,
-                      POBJECT_ATTRIBUTES ObjectAttributes)
-{
-   return(ZwOpenSection(SectionHandle,
-                       DesiredAccess,
-                       ObjectAttributes));
-}
 
-NTSTATUS ZwOpenSection(PHANDLE SectionHandle,
-                      ACCESS_MASK DesiredAccess,
-                      POBJECT_ATTRIBUTES ObjectAttributes)
+NTSTATUS
+NtOpenSection (
+       PHANDLE                 SectionHandle,
+       ACCESS_MASK             DesiredAccess,
+       POBJECT_ATTRIBUTES      ObjectAttributes
+       )
 {
    PVOID Object;
    NTSTATUS Status;
@@ -229,39 +212,20 @@ NTSTATUS ZwOpenSection(PHANDLE SectionHandle,
    return(Status);
 }
 
-NTSTATUS STDCALL NtMapViewOfSection(HANDLE SectionHandle,
-                                   HANDLE ProcessHandle,
-                                   PVOID* BaseAddress,
-                                   ULONG ZeroBits,
-                                   ULONG CommitSize,
-                                   PLARGE_INTEGER SectionOffset,
-                                   PULONG ViewSize,
-                                   SECTION_INHERIT InheritDisposition,
-                                   ULONG AllocationType,
-                                   ULONG Protect)
-{
-   return(ZwMapViewOfSection(SectionHandle,
-                            ProcessHandle,
-                            BaseAddress,
-                            ZeroBits,
-                            CommitSize,
-                            SectionOffset,
-                            ViewSize,
-                            InheritDisposition,
-                            AllocationType,
-                            Protect));
-}
-
-NTSTATUS STDCALL ZwMapViewOfSection(HANDLE SectionHandle,
-                                   HANDLE ProcessHandle,
-                                   PVOID* BaseAddress,
-                                   ULONG ZeroBits,
-                                   ULONG CommitSize,
-                                   PLARGE_INTEGER SectionOffset,
-                                   PULONG ViewSize,
-                                   SECTION_INHERIT InheritDisposition,
-                                   ULONG AllocationType,
-                                   ULONG Protect)
+NTSTATUS
+STDCALL
+NtMapViewOfSection (
+       HANDLE          SectionHandle,
+       HANDLE          ProcessHandle,
+       PVOID           * BaseAddress,
+       ULONG           ZeroBits,
+       ULONG           CommitSize,
+       PLARGE_INTEGER  SectionOffset,
+       PULONG          ViewSize,
+       SECTION_INHERIT InheritDisposition,
+       ULONG           AllocationType,
+       ULONG           Protect
+       )
 /*
  * FUNCTION: Maps a view of a section into the virtual address space of a 
  *           process
@@ -289,7 +253,7 @@ NTSTATUS STDCALL ZwMapViewOfSection(HANDLE SectionHandle,
    MEMORY_AREA* Result;
    NTSTATUS Status;
    
-   DPRINT("ZwMapViewOfSection(Section:%08lx, Process:%08lx,\n"
+   DPRINT("NtMapViewOfSection(Section:%08lx, Process:%08lx,\n"
           "  Base:%08lx, ZeroBits:%08lx, CommitSize:%08lx,\n"
           "  SectionOffs:%08lx, *ViewSize:%08lx, InheritDisp:%08lx,\n"
           "  AllocType:%08lx, Protect:%08lx)\n",
@@ -346,7 +310,7 @@ NTSTATUS STDCALL ZwMapViewOfSection(HANDLE SectionHandle,
                               &Result);
    if (!NT_SUCCESS(Status))
      {
-       DPRINT("ZwMapViewOfSection() = %x\n",Status);
+       DPRINT("NtMapViewOfSection() = %x\n",Status);
        ObDereferenceObject(Process);
        ObDereferenceObject(Section);
        return(Status);
@@ -370,12 +334,12 @@ NTSTATUS STDCALL ZwMapViewOfSection(HANDLE SectionHandle,
    return(STATUS_SUCCESS);
 }
 
-NTSTATUS NtUnmapViewOfSection(HANDLE ProcessHandle, PVOID BaseAddress)
-{
-   return(ZwUnmapViewOfSection(ProcessHandle,BaseAddress));
-}
 
-NTSTATUS ZwUnmapViewOfSection(HANDLE ProcessHandle, PVOID BaseAddress)
+NTSTATUS
+NtUnmapViewOfSection (
+       HANDLE  ProcessHandle,
+       PVOID   BaseAddress
+       )
 {
    PEPROCESS Process;
    NTSTATUS Status;
@@ -395,24 +359,16 @@ NTSTATUS ZwUnmapViewOfSection(HANDLE ProcessHandle, PVOID BaseAddress)
    return(Status);
 }
 
-NTSTATUS STDCALL NtQuerySection(IN HANDLE SectionHandle,
-                               IN CINT SectionInformationClass,
-                               OUT PVOID SectionInformation,
-                               IN ULONG Length, 
-                               OUT PULONG ResultLength)
-{
-   return(ZwQuerySection(SectionHandle,
-                        SectionInformationClass,
-                        SectionInformation,
-                        Length,
-                        ResultLength));
-}
 
-NTSTATUS STDCALL ZwQuerySection(IN HANDLE SectionHandle,
-                               IN CINT SectionInformationClass,
-                               OUT PVOID SectionInformation,
-                               IN ULONG Length, 
-                               OUT PULONG ResultLength)
+NTSTATUS
+STDCALL
+NtQuerySection (
+       IN      HANDLE  SectionHandle,
+       IN      CINT    SectionInformationClass,
+       OUT     PVOID   SectionInformation,
+       IN      ULONG   Length, 
+       OUT     PULONG  ResultLength
+       )
 /*
  * FUNCTION: Queries the information of a section object.
  * ARGUMENTS: 
@@ -426,17 +382,16 @@ NTSTATUS STDCALL ZwQuerySection(IN HANDLE SectionHandle,
  *
  */
 {
-   return(STATUS_UNSUCCESSFUL);
+       return(STATUS_UNSUCCESSFUL);
 }
 
-NTSTATUS STDCALL NtExtendSection(IN HANDLE SectionHandle,
-                                IN ULONG NewMaximumSize)
-{
-   return(ZwExtendSection(SectionHandle,NewMaximumSize));
-}
 
-NTSTATUS STDCALL ZwExtendSection(IN HANDLE SectionHandle,
-                                IN ULONG NewMaximumSize)
+NTSTATUS
+STDCALL
+NtExtendSection (
+       IN      HANDLE  SectionHandle,
+       IN      ULONG   NewMaximumSize
+       )
 {
-   UNIMPLEMENTED;
+       UNIMPLEMENTED;
 }
index 3875c2f..0df248c 100644 (file)
@@ -94,27 +94,17 @@ BOOLEAN MmIsAddressValid(PVOID VirtualAddress)
    return(TRUE);
 }
 
-NTSTATUS STDCALL NtAllocateVirtualMemory(IN HANDLE ProcessHandle,
-                                        IN OUT PVOID *BaseAddress,
-                                        IN ULONG  ZeroBits,
-                                        IN OUT PULONG  RegionSize,
-                                        IN ULONG  AllocationType, 
-                                        IN ULONG  Protect)
-{
-   return(ZwAllocateVirtualMemory(ProcessHandle,
-                                 BaseAddress,
-                                 ZeroBits,
-                                 RegionSize,
-                                 AllocationType,
-                                 Protect));
-}
 
-NTSTATUS STDCALL ZwAllocateVirtualMemory(IN HANDLE ProcessHandle,
-                                        IN OUT PVOID *BaseAddress,
-                                        IN ULONG  ZeroBits,
-                                        IN OUT PULONG  RegionSize,
-                                        IN ULONG  AllocationType, 
-                                        IN ULONG  Protect)
+NTSTATUS
+STDCALL
+NtAllocateVirtualMemory (
+       IN      HANDLE  ProcessHandle,
+       IN OUT  PVOID   * BaseAddress,
+       IN      ULONG   ZeroBits,
+       IN OUT  PULONG  RegionSize,
+       IN      ULONG   AllocationType, 
+       IN      ULONG   Protect
+       )
 /*
  * FUNCTION: Allocates a block of virtual memory in the process address space
  * ARGUMENTS:
@@ -149,7 +139,7 @@ NTSTATUS STDCALL ZwAllocateVirtualMemory(IN HANDLE ProcessHandle,
    ULONG Type;
    NTSTATUS Status;
    
-   DPRINT("ZwAllocateVirtualMemory(ProcessHandle %x, *BaseAddress %x, "
+   DPRINT("NtAllocateVirtualMemory(ProcessHandle %x, *BaseAddress %x, "
          "ZeroBits %d, *RegionSize %x, AllocationType %x, Protect %x)\n",
          ProcessHandle,*BaseAddress,ZeroBits,*RegionSize,AllocationType,
          Protect);
@@ -162,7 +152,7 @@ NTSTATUS STDCALL ZwAllocateVirtualMemory(IN HANDLE ProcessHandle,
                                      NULL);
    if (Status != STATUS_SUCCESS)
      {
-       DPRINT("ZwAllocateVirtualMemory() = %x\n",Status);
+       DPRINT("NtAllocateVirtualMemory() = %x\n",Status);
        return(Status);
      }
    
@@ -216,7 +206,7 @@ NTSTATUS STDCALL ZwAllocateVirtualMemory(IN HANDLE ProcessHandle,
    
    if (Status != STATUS_SUCCESS)
      {
-       DPRINT("ZwAllocateVirtualMemory() = %x\n",Status);
+       DPRINT("NtAllocateVirtualMemory() = %x\n",Status);
        ObDereferenceObject(Process);
        return(Status);
      }
@@ -226,22 +216,15 @@ NTSTATUS STDCALL ZwAllocateVirtualMemory(IN HANDLE ProcessHandle,
    return(STATUS_SUCCESS);
 }
 
-NTSTATUS STDCALL NtFlushVirtualMemory(IN HANDLE ProcessHandle,
-                                     IN PVOID BaseAddress,
-                                     IN ULONG NumberOfBytesToFlush,
-                                     OUT PULONG NumberOfBytesFlushed OPTIONAL)
-{
-   return(ZwFlushVirtualMemory(ProcessHandle,
-                              BaseAddress,
-                              NumberOfBytesToFlush,
-                              NumberOfBytesFlushed));
-}
-
-NTSTATUS STDCALL ZwFlushVirtualMemory(IN HANDLE ProcessHandle,
-                                     IN PVOID BaseAddress,
-                                     IN ULONG NumberOfBytesToFlush,
-                                     OUT PULONG NumberOfBytesFlushed OPTIONAL)
 
+NTSTATUS
+STDCALL
+NtFlushVirtualMemory (
+       IN      HANDLE  ProcessHandle,
+       IN      PVOID   BaseAddress,
+       IN      ULONG   NumberOfBytesToFlush,
+       OUT     PULONG  NumberOfBytesFlushed    OPTIONAL
+       )
 /*
  * FUNCTION: Flushes virtual memory to file
  * ARGUMENTS:
@@ -253,25 +236,18 @@ NTSTATUS STDCALL ZwFlushVirtualMemory(IN HANDLE ProcessHandle,
  * RETURNS: Status 
  */
 {
-   UNIMPLEMENTED;
-}
-
-NTSTATUS STDCALL NtFreeVirtualMemory(IN HANDLE ProcessHandle,
-                                    IN PVOID  *BaseAddress,    
-                                    IN PULONG  RegionSize,     
-                                    IN ULONG  FreeType)
-{
-   return(ZwFreeVirtualMemory(ProcessHandle,
-                             BaseAddress,
-                             RegionSize,
-                             FreeType));
+       UNIMPLEMENTED;
 }
 
-NTSTATUS STDCALL ZwFreeVirtualMemory(IN HANDLE ProcessHandle,
-                                    IN PVOID  *BaseAddress,    
-                                    IN PULONG  RegionSize,     
-                                    IN ULONG  FreeType)
 
+NTSTATUS
+STDCALL
+NtFreeVirtualMemory (
+       IN      HANDLE  ProcessHandle,
+       IN      PVOID   * BaseAddress,  
+       IN      PULONG  RegionSize,     
+       IN      ULONG   FreeType
+       )
 /*
  * FUNCTION: Frees a range of virtual memory
  * ARGUMENTS:
@@ -289,7 +265,7 @@ NTSTATUS STDCALL ZwFreeVirtualMemory(IN HANDLE ProcessHandle,
    NTSTATUS Status;
    PEPROCESS Process;
    
-   DPRINT("ZwFreeVirtualMemory(ProcessHandle %x, *BaseAddress %x, "
+   DPRINT("NtFreeVirtualMemory(ProcessHandle %x, *BaseAddress %x, "
          "*RegionSize %x, FreeType %x)\n",ProcessHandle,*BaseAddress,
          *RegionSize,FreeType);
                                 
@@ -341,37 +317,19 @@ NTSTATUS STDCALL ZwFreeVirtualMemory(IN HANDLE ProcessHandle,
    return(STATUS_NOT_IMPLEMENTED);
 }
 
-NTSTATUS STDCALL NtLockVirtualMemory(HANDLE ProcessHandle,
-                                    PVOID BaseAddress,
-                                    ULONG NumberOfBytesToLock,
-                                    PULONG NumberOfBytesLocked)
-{
-   return(ZwLockVirtualMemory(ProcessHandle,
-                             BaseAddress,
-                             NumberOfBytesToLock,
-                             NumberOfBytesLocked));
-}
 
-NTSTATUS STDCALL ZwLockVirtualMemory(HANDLE ProcessHandle,
-                                    PVOID BaseAddress,
-                                    ULONG NumberOfBytesToLock,
-                                    PULONG NumberOfBytesLocked)
+NTSTATUS
+STDCALL
+NtLockVirtualMemory (
+       HANDLE  ProcessHandle,
+       PVOID   BaseAddress,
+       ULONG   NumberOfBytesToLock,
+       PULONG  NumberOfBytesLocked
+       )
 {
-   UNIMPLEMENTED;
+       UNIMPLEMENTED;
 }
 
-NTSTATUS STDCALL NtProtectVirtualMemory(IN HANDLE ProcessHandle,
-                                       IN PVOID BaseAddress,
-                                       IN ULONG NumberOfBytesToProtect,
-                                       IN ULONG NewAccessProtection,
-                                       OUT PULONG OldAccessProtection)
-{
-   return(ZwProtectVirtualMemory(ProcessHandle,
-                                BaseAddress,
-                                NumberOfBytesToProtect,
-                                NewAccessProtection,
-                                OldAccessProtection));
-}
 
 VOID MmChangeAreaProtection(PEPROCESS Process, 
                            PVOID BaseAddress,
@@ -389,11 +347,16 @@ VOID MmChangeAreaProtection(PEPROCESS Process,
      }
 }
 
-NTSTATUS STDCALL ZwProtectVirtualMemory(IN HANDLE ProcessHandle,
-                                       IN PVOID BaseAddress,
-                                       IN ULONG NumberOfBytesToProtect,
-                                       IN ULONG NewAccessProtection,
-                                       OUT PULONG OldAccessProtection)
+
+NTSTATUS
+STDCALL
+NtProtectVirtualMemory (
+       IN      HANDLE  ProcessHandle,
+       IN      PVOID   BaseAddress,
+       IN      ULONG   NumberOfBytesToProtect,
+       IN      ULONG   NewAccessProtection,
+       OUT     PULONG  OldAccessProtection
+       )
 {
    PMEMORY_AREA MemoryArea;
    PEPROCESS Process;
@@ -407,14 +370,14 @@ NTSTATUS STDCALL ZwProtectVirtualMemory(IN HANDLE ProcessHandle,
                                      NULL);
    if (Status != STATUS_SUCCESS)
      {
-       DPRINT("ZwProtectVirtualMemory() = %x\n",Status);
+       DPRINT("NtProtectVirtualMemory() = %x\n",Status);
        return(Status);
      }
 
    MemoryArea = MmOpenMemoryAreaByAddress(Process,BaseAddress);
    if (MemoryArea == NULL)
      {
-       DPRINT("ZwProtectVirtualMemory() = %x\n",STATUS_UNSUCCESSFUL);
+       DPRINT("NtProtectVirtualMemory() = %x\n",STATUS_UNSUCCESSFUL);
        ObDereferenceObject(Process);
        return(STATUS_UNSUCCESSFUL);
      }
@@ -442,56 +405,37 @@ NTSTATUS STDCALL ZwProtectVirtualMemory(IN HANDLE ProcessHandle,
 }
 
 
-NTSTATUS STDCALL NtQueryVirtualMemory(IN HANDLE ProcessHandle,
-                                     IN PVOID Address,
-                                     IN IN CINT VirtualMemoryInformationClass,
-                                     OUT PVOID VirtualMemoryInformation,
-                                     IN ULONG Length,
-                                     OUT PULONG ResultLength)
+NTSTATUS
+STDCALL
+NtQueryVirtualMemory (
+       IN      HANDLE  ProcessHandle,
+       IN      PVOID   Address,
+       IN      CINT    VirtualMemoryInformationClass,
+       OUT     PVOID   VirtualMemoryInformation,
+       IN      ULONG   Length,
+       OUT     PULONG  ResultLength
+       )
 {
-   return(ZwQueryVirtualMemory(ProcessHandle,
-                              Address,
-                              VirtualMemoryInformationClass,
-                              VirtualMemoryInformation,
-                              Length,
-                              ResultLength));
+       UNIMPLEMENTED;
 }
 
-NTSTATUS STDCALL ZwQueryVirtualMemory(IN HANDLE ProcessHandle,
-                                     IN PVOID Address,
-                                     IN CINT VirtualMemoryInformationClass,
-                                     OUT PVOID VirtualMemoryInformation,
-                                     IN ULONG Length,
-                                     OUT PULONG ResultLength)
-{
-   UNIMPLEMENTED;
-}
-
-NTSTATUS STDCALL NtReadVirtualMemory(IN HANDLE ProcessHandle,
-                                    IN PVOID BaseAddress,
-                                    OUT PVOID Buffer,
-                                    IN ULONG  NumberOfBytesToRead,
-                                    OUT PULONG NumberOfBytesRead)
-{
-   return(ZwReadVirtualMemory(ProcessHandle,
-                             BaseAddress,
-                             Buffer,
-                             NumberOfBytesToRead,
-                             NumberOfBytesRead));
-}
 
-NTSTATUS STDCALL ZwReadVirtualMemory(IN HANDLE ProcessHandle,
-                                    IN PVOID BaseAddress,
-                                    OUT PVOID Buffer,
-                                    IN ULONG  NumberOfBytesToRead,
-                                    OUT PULONG NumberOfBytesRead)
+NTSTATUS
+STDCALL
+NtReadVirtualMemory (
+       IN      HANDLE  ProcessHandle,
+       IN      PVOID   BaseAddress,
+       OUT     PVOID   Buffer,
+       IN      ULONG   NumberOfBytesToRead,
+       OUT     PULONG  NumberOfBytesRead
+       )
 {
    NTSTATUS Status;
    PMDL Mdl;
    PVOID SystemAddress;
    PEPROCESS Process;
    
-   DPRINT("ZwReadVirtualMemory(ProcessHandle %x, BaseAddress %x, "
+   DPRINT("NtReadVirtualMemory(ProcessHandle %x, BaseAddress %x, "
            "Buffer %x, NumberOfBytesToRead %d)\n",ProcessHandle,BaseAddress,
            Buffer,NumberOfBytesToRead);
    
@@ -526,50 +470,36 @@ NTSTATUS STDCALL ZwReadVirtualMemory(IN HANDLE ProcessHandle,
    return(STATUS_SUCCESS);
 }
 
-NTSTATUS STDCALL NtUnlockVirtualMemory(HANDLE ProcessHandle,
-                                      PVOID BaseAddress,
-                                      ULONG  NumberOfBytesToUnlock,
-                                      PULONG NumberOfBytesUnlocked OPTIONAL)
-{
-   return(ZwUnlockVirtualMemory(ProcessHandle,
-                               BaseAddress,
-                               NumberOfBytesToUnlock,
-                               NumberOfBytesUnlocked));
-}
 
-NTSTATUS STDCALL ZwUnlockVirtualMemory(HANDLE ProcessHandle,
-                                      PVOID BaseAddress,
-                                      ULONG  NumberOfBytesToUnlock,
-                                      PULONG NumberOfBytesUnlocked OPTIONAL)
+NTSTATUS
+STDCALL
+NtUnlockVirtualMemory (
+       HANDLE  ProcessHandle,
+       PVOID   BaseAddress,
+       ULONG   NumberOfBytesToUnlock,
+       PULONG  NumberOfBytesUnlocked   OPTIONAL
+       )
 {
-   UNIMPLEMENTED;
+       UNIMPLEMENTED;
 }
 
-NTSTATUS STDCALL NtWriteVirtualMemory(IN HANDLE ProcessHandle,
-                                     IN PVOID  BaseAddress,
-                                     IN PVOID Buffer,
-                                     IN ULONG NumberOfBytesToWrite,
-                                     OUT PULONG NumberOfBytesWritten)
-{
-   return(ZwWriteVirtualMemory(ProcessHandle,
-                              BaseAddress,
-                              Buffer,
-                              NumberOfBytesToWrite,
-                              NumberOfBytesWritten));
-}
 
-NTSTATUS STDCALL ZwWriteVirtualMemory(IN HANDLE ProcessHandle,
-                                     IN PVOID BaseAddress,
-                                     IN PVOID Buffer,
-                                     IN ULONG NumberOfBytesToWrite,
-                                     OUT PULONG NumberOfBytesWritten)
+NTSTATUS
+STDCALL
+NtWriteVirtualMemory (
+       IN      HANDLE  ProcessHandle,
+       IN      PVOID   BaseAddress,
+       IN      PVOID   Buffer,
+       IN      ULONG   NumberOfBytesToWrite,
+       OUT     PULONG  NumberOfBytesWritten
+       )
 {
    NTSTATUS Status;
    PMDL Mdl;
    PVOID SystemAddress;
    PEPROCESS Process;
    
-   DPRINT("ZwWriteVirtualMemory(ProcessHandle %x, BaseAddress %x, "
+   DPRINT("NtWriteVirtualMemory(ProcessHandle %x, BaseAddress %x, "
            "Buffer %x, NumberOfBytesToWrite %d)\n",ProcessHandle,BaseAddress,
            Buffer,NumberOfBytesToWrite);
    
index f8c7b24..0d43bb8 100644 (file)
 
 /* FUNCTIONS *****************************************************************/
 
-NTSTATUS STDCALL NtAddAtom(OUT ATOM *Atom,
-                          IN PUNICODE_STRING AtomString)
+NTSTATUS
+STDCALL
+NtAddAtom (
+       OUT     ATOM            * Atom,
+       IN      PUNICODE_STRING AtomString
+       )
 {
-   return(ZwAddAtom(Atom, AtomString));
+       UNIMPLEMENTED;
 }
 
-NTSTATUS STDCALL ZwAddAtom(OUT ATOM *Atom,
-                          IN PUNICODE_STRING AtomString)
-{
-   UNIMPLEMENTED;
-}
 
-NTSTATUS STDCALL NtDeleteAtom(IN ATOM Atom)
+NTSTATUS
+STDCALL
+NtDeleteAtom (
+       IN      ATOM    Atom
+       )
 {
-   return(ZwDeleteAtom(Atom));
+       UNIMPLEMENTED;
 }
 
-NTSTATUS STDCALL ZwDeleteAtom(IN ATOM Atom)
-{
-   UNIMPLEMENTED;
-}
-
-NTSTATUS STDCALL NtFindAtom(OUT ATOM *Atom, IN PUNICODE_STRING AtomString)
-{
-   return(ZwFindAtom(Atom, AtomString));
-}
 
-NTSTATUS STDCALL ZwFindAtom(OUT ATOM *Atom, IN PUNICODE_STRING AtomString)
+NTSTATUS
+STDCALL
+NtFindAtom (
+       OUT     ATOM            * Atom,
+       IN      PUNICODE_STRING AtomString
+       )
 {
-   UNIMPLEMENTED;
+       UNIMPLEMENTED;
 }
 
 
-NTSTATUS STDCALL NtQueryInformationAtom(IN HANDLE AtomHandle,
-                                       IN CINT AtomInformationClass,
-                                       OUT PVOID AtomInformation,
-                                       IN ULONG AtomInformationLength,
-                                       OUT PULONG ReturnLength)
+NTSTATUS
+STDCALL
+NtQueryInformationAtom (
+       IN      HANDLE  AtomHandle,
+       IN      CINT    AtomInformationClass,
+       OUT     PVOID   AtomInformation,
+       IN      ULONG   AtomInformationLength,
+       OUT     PULONG  ReturnLength
+       )
 {
-   UNIMPLEMENTED;
+       UNIMPLEMENTED;
 }
index 06d47d2..cb67dc2 100644 (file)
 
 /* FUNCTIONS *****************************************************************/
 
-NTSTATUS STDCALL NtCreateChannel(VOID)
+NTSTATUS
+STDCALL
+NtCreateChannel(VOID)
 {
-   UNIMPLEMENTED;
+       return STATUS_NOT_IMPLEMENTED;
 }
 
-NTSTATUS STDCALL NtListenChannel(VOID)
+
+NTSTATUS
+STDCALL
+NtListenChannel(VOID)
 {
-   UNIMPLEMENTED;
+       return STATUS_NOT_IMPLEMENTED;
 }
 
-NTSTATUS STDCALL NtOpenChannel(VOID)
+NTSTATUS
+STDCALL
+NtOpenChannel(VOID)
 {
-   UNIMPLEMENTED;
+       return STATUS_NOT_IMPLEMENTED;
 }
 
-NTSTATUS STDCALL NtReplyWaitSendChannel(VOID)
+
+NTSTATUS
+STDCALL
+NtReplyWaitSendChannel(VOID)
 {
-   UNIMPLEMENTED;
+       return STATUS_NOT_IMPLEMENTED;
 }
 
-NTSTATUS STDCALL NtSendWaitReplyChannel(VOID)
+
+NTSTATUS
+STDCALL
+NtSendWaitReplyChannel(VOID)
 {
-   UNIMPLEMENTED;
+       return STATUS_NOT_IMPLEMENTED;
 }
 
-NTSTATUS STDCALL NtSetContextChannel(VOID)
+
+NTSTATUS
+STDCALL
+NtSetContextChannel(VOID)
 {
-   UNIMPLEMENTED;
+       return STATUS_NOT_IMPLEMENTED;
 }
+
+/* EOF */
index baea559..1bf0b38 100644 (file)
 
 /* FUNCTIONS *****************************************************************/
 
-NTSTATUS STDCALL NtCreateEventPair(OUT PHANDLE EventPairHandle,
-                                  IN ACCESS_MASK DesiredAccess,
-                                  IN POBJECT_ATTRIBUTES ObjectAttributes)
+NTSTATUS
+STDCALL
+NtCreateEventPair (
+       OUT     PHANDLE                 EventPairHandle,
+       IN      ACCESS_MASK             DesiredAccess,
+       IN      POBJECT_ATTRIBUTES      ObjectAttributes
+       )
 {
-   return(ZwCreateEventPair(EventPairHandle,
-                           DesiredAccess,
-                           ObjectAttributes));
+       UNIMPLEMENTED;
 }
 
-NTSTATUS STDCALL ZwCreateEventPair(OUT PHANDLE EventPairHandle,
-                                  IN ACCESS_MASK DesiredAccess,
-                                  IN POBJECT_ATTRIBUTES ObjectAttributes)
-{
-   UNIMPLEMENTED;
-}
 
-NTSTATUS STDCALL NtSetHighEventPair(IN HANDLE EventPairHandle)
+NTSTATUS
+STDCALL
+NtSetHighEventPair (
+       IN      HANDLE  EventPairHandle
+       )
 {
-   return(ZwSetHighEventPair(EventPairHandle));
+       UNIMPLEMENTED;
 }
 
-NTSTATUS STDCALL ZwSetHighEventPair(IN HANDLE EventPairHandle)
-{
-   UNIMPLEMENTED;
-}
 
-NTSTATUS STDCALL NtSetHighWaitLowEventPair(IN HANDLE EventPairHandle)
+NTSTATUS
+STDCALL
+NtSetHighWaitLowEventPair (
+       IN      HANDLE  EventPairHandle
+       )
 {
-   return(ZwSetHighWaitLowEventPair(EventPairHandle));
+       UNIMPLEMENTED;
 }
 
-NTSTATUS STDCALL ZwSetHighWaitLowEventPair(IN HANDLE EventPairHandle)
-{
-   UNIMPLEMENTED;
-}
-
-
-NTSTATUS STDCALL NtSetLowEventPair(HANDLE EventPairHandle)
-{
-   return(ZwSetLowEventPair(EventPairHandle));
-}
 
-NTSTATUS STDCALL ZwSetLowEventPair(HANDLE EventPairHandle)
+NTSTATUS
+STDCALL
+NtSetLowEventPair (
+       HANDLE  EventPairHandle
+       )
 {
-   UNIMPLEMENTED;
+       UNIMPLEMENTED;
 }
 
 
-NTSTATUS STDCALL NtSetLowWaitHighEventPair(HANDLE EventPairHandle)
+NTSTATUS
+STDCALL
+NtSetLowWaitHighEventPair (
+       HANDLE  EventPairHandle
+       )
 {
-   return(ZwSetLowWaitHighEventPair(EventPairHandle));
+       UNIMPLEMENTED;
 }
 
-NTSTATUS STDCALL ZwSetLowWaitHighEventPair(HANDLE EventPairHandle)
-{
-   UNIMPLEMENTED;
-}
 
-NTSTATUS STDCALL NtWaitLowEventPair(IN HANDLE EventPairHandle)
+NTSTATUS
+STDCALL
+NtWaitLowEventPair (
+       IN      HANDLE  EventPairHandle
+       )
 {
-   return(ZwWaitLowEventPair(EventPairHandle));
+       UNIMPLEMENTED;
 }
 
-NTSTATUS STDCALL ZwWaitLowEventPair(IN HANDLE EventPairHandle)
-{
-   UNIMPLEMENTED;
-}
 
-NTSTATUS STDCALL NtOpenEventPair(OUT PHANDLE EventPairHandle,
-                                IN ACCESS_MASK DesiredAccess,
-                                IN POBJECT_ATTRIBUTES ObjectAttributes)
+NTSTATUS
+STDCALL
+NtOpenEventPair (
+       OUT     PHANDLE                 EventPairHandle,
+       IN      ACCESS_MASK             DesiredAccess,
+       IN      POBJECT_ATTRIBUTES      ObjectAttributes
+       )
 {
-   return(ZwOpenEventPair(EventPairHandle,
-                         DesiredAccess,
-                         ObjectAttributes));
+       UNIMPLEMENTED;
 }
 
-NTSTATUS STDCALL ZwOpenEventPair(OUT PHANDLE EventPairHandle,
-                                IN ACCESS_MASK DesiredAccess,
-                                IN POBJECT_ATTRIBUTES ObjectAttributes)
-{
-   UNIMPLEMENTED;
-}
 
-NTSTATUS STDCALL NtWaitHighEventPair(IN HANDLE EventPairHandle)
+NTSTATUS
+STDCALL
+NtWaitHighEventPair (
+       IN      HANDLE  EventPairHandle
+       )
 {
-   return(ZwWaitHighEventPair(EventPairHandle));
+       UNIMPLEMENTED;
 }
 
-NTSTATUS STDCALL ZwWaitHighEventPair(IN HANDLE EventPairHandle)
-{
-   UNIMPLEMENTED;
-}
+/* EOF */
index 11da167..432fddc 100644 (file)
 
 /* FUNCTIONS *****************************************************************/
 
-NTSTATUS STDCALL NtCreateMutant(OUT PHANDLE MutantHandle,
-                               IN ACCESS_MASK DesiredAccess,
-                               IN POBJECT_ATTRIBUTES ObjectAttributes,
-                               IN BOOLEAN InitialOwner)
+NTSTATUS
+STDCALL
+NtCreateMutant (
+       OUT     PHANDLE                 MutantHandle,
+       IN      ACCESS_MASK             DesiredAccess,
+       IN      POBJECT_ATTRIBUTES      ObjectAttributes,
+       IN      BOOLEAN                 InitialOwner
+       )
 {
-   return(ZwCreateMutant(MutantHandle,
-                        DesiredAccess,
-                        ObjectAttributes,
-                        InitialOwner));
-}
-
-NTSTATUS STDCALL ZwCreateMutant(OUT PHANDLE MutantHandle,
-                               IN ACCESS_MASK DesiredAccess,
-                               IN POBJECT_ATTRIBUTES ObjectAttributes,
-                               IN BOOLEAN InitialOwner)
-{
-   UNIMPLEMENTED;
+       UNIMPLEMENTED;
 }
 
 
-NTSTATUS STDCALL NtOpenMutant(OUT PHANDLE MutantHandle,
-                             IN ACCESS_MASK DesiredAccess,
-                             IN POBJECT_ATTRIBUTES ObjectAttributes)
+NTSTATUS
+STDCALL
+NtOpenMutant (
+       OUT     PHANDLE                 MutantHandle,
+       IN      ACCESS_MASK             DesiredAccess,
+       IN      POBJECT_ATTRIBUTES      ObjectAttributes
+       )
 {
-   return(ZwOpenMutant(MutantHandle,
-                      DesiredAccess,
-                      ObjectAttributes));
+       UNIMPLEMENTED;
 }
 
-NTSTATUS STDCALL ZwOpenMutant(OUT PHANDLE MutantHandle,
-                             IN ACCESS_MASK DesiredAccess,
-                             IN POBJECT_ATTRIBUTES ObjectAttributes)
-{
-   UNIMPLEMENTED;
-}
 
-NTSTATUS STDCALL NtQueryMutant(IN HANDLE MutantHandle,
-                              IN CINT MutantInformationClass,
-                              OUT PVOID MutantInformation,
-                              IN ULONG Length,
-                              OUT PULONG ResultLength)
+NTSTATUS
+STDCALL
+NtQueryMutant (
+       IN      HANDLE  MutantHandle,
+       IN      CINT    MutantInformationClass,
+       OUT     PVOID   MutantInformation,
+       IN      ULONG   Length,
+       OUT     PULONG  ResultLength
+       )
 {
-   return(ZwQueryMutant(MutantHandle,
-                       MutantInformationClass,
-                       MutantInformation,
-                       Length,
-                       ResultLength));
+       UNIMPLEMENTED;
 }
 
-NTSTATUS STDCALL ZwQueryMutant(IN HANDLE MutantHandle,
-                              IN CINT MutantInformationClass,
-                              OUT PVOID MutantInformation,
-                              IN ULONG Length,
-                              OUT PULONG ResultLength)
-{
-   UNIMPLEMENTED;
-}
 
-NTSTATUS STDCALL NtReleaseMutant(IN HANDLE MutantHandle,
-                                IN PULONG ReleaseCount OPTIONAL)
+NTSTATUS
+STDCALL
+NtReleaseMutant (
+       IN      HANDLE  MutantHandle,
+       IN      PULONG  ReleaseCount    OPTIONAL
+       )
 {
-   return(ZwReleaseMutant(MutantHandle,
-                         ReleaseCount));
+       UNIMPLEMENTED;
 }
 
-NTSTATUS STDCALL ZwReleaseMutant(IN HANDLE MutantHandle,
-                                IN PULONG ReleaseCount OPTIONAL)
-{
-   UNIMPLEMENTED;
-}
+/* EOF */
index 6550fba..a2959cf 100644 (file)
@@ -46,12 +46,9 @@ VOID NtInitializeEventImplementation(VOID)
    ExEventType->OkayToClose = NULL;
 }
 
-NTSTATUS STDCALL NtClearEvent(IN HANDLE EventHandle)
-{
-   return(ZwClearEvent(EventHandle));
-}
-
-NTSTATUS STDCALL ZwClearEvent(IN HANDLE EventHandle)
+NTSTATUS
+STDCALL
+NtClearEvent (IN HANDLE EventHandle)
 {
    PKEVENT Event;
    NTSTATUS Status;
@@ -71,24 +68,16 @@ NTSTATUS STDCALL ZwClearEvent(IN HANDLE EventHandle)
    return(STATUS_SUCCESS);
 }
 
-NTSTATUS STDCALL NtCreateEvent(OUT PHANDLE EventHandle,
-                              IN ACCESS_MASK DesiredAccess,
-                              IN POBJECT_ATTRIBUTES ObjectAttributes,
-                              IN BOOLEAN ManualReset,
-                              IN BOOLEAN InitialState)
-{
-   return(ZwCreateEvent(EventHandle,
-                       DesiredAccess,
-                       ObjectAttributes,
-                       ManualReset,
-                       InitialState));
-}
 
-NTSTATUS STDCALL ZwCreateEvent(OUT PHANDLE EventHandle,
-                              IN ACCESS_MASK DesiredAccess,
-                              IN POBJECT_ATTRIBUTES ObjectAttributes,
-                              IN BOOLEAN ManualReset,
-                              IN BOOLEAN InitialState)
+NTSTATUS
+STDCALL
+NtCreateEvent (
+       OUT     PHANDLE                 EventHandle,
+       IN      ACCESS_MASK             DesiredAccess,
+       IN      POBJECT_ATTRIBUTES      ObjectAttributes,
+       IN      BOOLEAN                 ManualReset,
+       IN      BOOLEAN                 InitialState
+       )
 {
    PKEVENT Event;
    
@@ -108,16 +97,13 @@ NTSTATUS STDCALL ZwCreateEvent(OUT PHANDLE EventHandle,
 }
 
 
-NTSTATUS STDCALL NtOpenEvent(OUT PHANDLE EventHandle,
-                            IN ACCESS_MASK DesiredAccess,
-                            IN POBJECT_ATTRIBUTES ObjectAttributes)
-{
-   return(ZwOpenEvent(EventHandle,DesiredAccess,ObjectAttributes));
-}
-
-NTSTATUS STDCALL ZwOpenEvent(OUT PHANDLE EventHandle,
-                            IN ACCESS_MASK DesiredAccess,
-                            IN POBJECT_ATTRIBUTES ObjectAttributes)
+NTSTATUS
+STDCALL
+NtOpenEvent (
+       OUT     PHANDLE                 EventHandle,
+       IN      ACCESS_MASK             DesiredAccess,
+       IN      POBJECT_ATTRIBUTES      ObjectAttributes
+       )
 {
    NTSTATUS Status;
    PKEVENT Event;   
@@ -146,48 +132,38 @@ NTSTATUS STDCALL ZwOpenEvent(OUT PHANDLE EventHandle,
    return(STATUS_SUCCESS);
 }
 
-NTSTATUS STDCALL NtPulseEvent(IN HANDLE EventHandle,
-                             IN PULONG PulseCount OPTIONAL)
-{
-   return(ZwPulseEvent(EventHandle,PulseCount));
-}
 
-NTSTATUS STDCALL ZwPulseEvent(IN HANDLE EventHandle, 
-                             IN PULONG PulseCount OPTIONAL)
+NTSTATUS
+STDCALL
+NtPulseEvent (
+       IN      HANDLE  EventHandle,
+       IN      PULONG  PulseCount      OPTIONAL
+       )
 {
-   UNIMPLEMENTED;
+       UNIMPLEMENTED;
 }
 
-NTSTATUS STDCALL NtQueryEvent(IN HANDLE EventHandle,
-                             IN CINT EventInformationClass,
-                             OUT PVOID EventInformation,
-                             IN ULONG EventInformationLength,
-                             OUT PULONG ReturnLength)
-{
-   return(ZwQueryEvent(EventHandle,
-                      EventInformationClass,
-                      EventInformation,
-                      EventInformationLength,
-                      ReturnLength));
-}
 
-NTSTATUS STDCALL ZwQueryEvent(IN HANDLE EventHandle,
-                             IN CINT EventInformationClass,
-                             OUT PVOID EventInformation,
-                             IN ULONG EventInformationLength,
-                             OUT PULONG ReturnLength)
+NTSTATUS
+STDCALL
+NtQueryEvent (
+       IN      HANDLE  EventHandle,
+       IN      CINT    EventInformationClass,
+       OUT     PVOID   EventInformation,
+       IN      ULONG   EventInformationLength,
+       OUT     PULONG  ReturnLength
+       )
 {
-   UNIMPLEMENTED;
+       UNIMPLEMENTED;
 }
 
-NTSTATUS STDCALL NtResetEvent(HANDLE EventHandle,
-                             PULONG NumberOfWaitingThreads OPTIONAL)
-{
-   return(ZwResetEvent(EventHandle,NumberOfWaitingThreads));
-}
 
-NTSTATUS STDCALL ZwResetEvent(HANDLE EventHandle,
-                             PULONG NumberOfWaitingThreads OPTIONAL)
+NTSTATUS
+STDCALL
+NtResetEvent (
+       HANDLE  EventHandle,
+       PULONG  NumberOfWaitingThreads  OPTIONAL
+       )
 {
    PKEVENT Event;
    NTSTATUS Status;
@@ -207,14 +183,13 @@ NTSTATUS STDCALL ZwResetEvent(HANDLE EventHandle,
    return(STATUS_SUCCESS);
 }
 
-NTSTATUS STDCALL NtSetEvent(IN HANDLE EventHandle,
-                           PULONG NumberOfThreadsReleased)
-{
-   return(ZwSetEvent(EventHandle,NumberOfThreadsReleased));
-}
 
-NTSTATUS STDCALL ZwSetEvent(IN HANDLE EventHandle,
-                           PULONG NumberOfThreadsReleased)
+NTSTATUS
+STDCALL
+NtSetEvent (
+       IN      HANDLE  EventHandle,
+       PULONG  NumberOfThreadsReleased
+       )
 {
    PKEVENT Event;
    NTSTATUS Status;
index 0f65514..d27a610 100644 (file)
 
 /* FUNCTIONS *****************************************************************/
 
-NTSTATUS STDCALL NtCreateSemaphore(OUT PHANDLE SemaphoreHandle,
-                          IN ACCESS_MASK DesiredAccess,
-                          IN POBJECT_ATTRIBUTES ObjectAttributes OPTIONAL,
-                          IN ULONG InitialCount,
-                          IN ULONG MaximumCount)
+NTSTATUS
+STDCALL
+NtCreateSemaphore (
+       OUT     PHANDLE                 SemaphoreHandle,
+       IN      ACCESS_MASK             DesiredAccess,
+       IN      POBJECT_ATTRIBUTES      ObjectAttributes        OPTIONAL,
+       IN      ULONG                   InitialCount,
+       IN      ULONG                   MaximumCount
+       )
 {
-   return(ZwCreateSemaphore(SemaphoreHandle,
-                           DesiredAccess,
-                           ObjectAttributes,
-                           InitialCount,
-                           MaximumCount));
+       UNIMPLEMENTED;
 }
 
-NTSTATUS STDCALL ZwCreateSemaphore(OUT PHANDLE SemaphoreHandle,
-                             IN ACCESS_MASK DesiredAccess,
-                             IN POBJECT_ATTRIBUTES ObjectAttributes OPTIONAL,
-                             IN ULONG InitialCount,
-                             IN ULONG MaximumCount)
-{
-   UNIMPLEMENTED;
-}
-
-
-NTSTATUS STDCALL NtOpenSemaphore(IN HANDLE SemaphoreHandle,
-                                IN ACCESS_MASK DesiredAccess,
-                                IN POBJECT_ATTRIBUTES ObjectAttributes)
-{
-   return(ZwOpenSemaphore(SemaphoreHandle,
-                         DesiredAccess,
-                         ObjectAttributes));
-}
 
-NTSTATUS STDCALL ZwOpenSemaphore(IN HANDLE SemaphoreHandle,
-                                IN ACCESS_MASK DesiredAccess,
-                                IN POBJECT_ATTRIBUTES ObjectAttributes)
+NTSTATUS
+STDCALL
+NtOpenSemaphore (
+       IN      HANDLE                  SemaphoreHandle,
+       IN      ACCESS_MASK             DesiredAccess,
+       IN      POBJECT_ATTRIBUTES      ObjectAttributes
+       )
 {
-   UNIMPLEMENTED;
+       UNIMPLEMENTED;
 }
 
-NTSTATUS STDCALL NtQuerySemaphore(HANDLE SemaphoreHandle,
-                                 CINT SemaphoreInformationClass,
-                                 OUT PVOID SemaphoreInformation,
-                                 ULONG Length,
-                                 PULONG ReturnLength)
-{
-   return(ZwQuerySemaphore(SemaphoreHandle,
-                          SemaphoreInformationClass,
-                          SemaphoreInformation,
-                          Length,
-                          ReturnLength));
-}
 
-NTSTATUS STDCALL ZwQuerySemaphore(HANDLE SemaphoreHandle,
-                                 CINT SemaphoreInformationClass,
-                                 OUT PVOID SemaphoreInformation,
-                                 ULONG Length,
-                                 PULONG ReturnLength)
+NTSTATUS
+STDCALL
+NtQuerySemaphore (
+               HANDLE  SemaphoreHandle,
+               CINT    SemaphoreInformationClass,
+       OUT     PVOID   SemaphoreInformation,
+               ULONG   Length,
+               PULONG  ReturnLength
+       )
 {
-   UNIMPLEMENTED;
+       UNIMPLEMENTED;
 }
 
-NTSTATUS STDCALL NtReleaseSemaphore(IN HANDLE SemaphoreHandle,
-                                   IN ULONG ReleaseCount,
-                                   IN PULONG PreviousCount)
-{
-   return(ZwReleaseSemaphore(SemaphoreHandle,
-                            ReleaseCount,
-                            PreviousCount));
-}
 
-NTSTATUS STDCALL ZwReleaseSemaphore(IN HANDLE SemaphoreHandle,
-                                   IN ULONG ReleaseCount,
-                                   IN PULONG PreviousCount)
+NTSTATUS
+STDCALL
+NtReleaseSemaphore (
+       IN      HANDLE  SemaphoreHandle,
+       IN      ULONG   ReleaseCount,
+       IN      PULONG  PreviousCount
+       )
 {
-   UNIMPLEMENTED;
+       UNIMPLEMENTED;
 }
index 6c03a0c..27f0aa9 100644 (file)
 
 /* FUNCTIONS *****************************************************************/
 
-NTSTATUS STDCALL NtCancelTimer(IN HANDLE TimerHandle,
-                              OUT PBOOLEAN CurrentState OPTIONAL)
+NTSTATUS
+STDCALL
+NtCancelTimer (
+       IN      HANDLE          TimerHandle,
+       OUT     PBOOLEAN        CurrentState    OPTIONAL
+       )
 {
-   UNIMPLEMENTED;
+       UNIMPLEMENTED;
 }
 
-NTSTATUS STDCALL ZwCancelTimer(IN HANDLE TimerHandle,
-                              OUT ULONG ElapsedTime)
-{
-   UNIMPLEMENTED;
-}
 
-NTSTATUS STDCALL NtCreateTimer(OUT PHANDLE TimerHandle,
-                              IN ACCESS_MASK DesiredAccess,
-                              IN POBJECT_ATTRIBUTES ObjectAttributes OPTIONAL,
-                              IN CINT TimerType)
+NTSTATUS
+STDCALL
+NtCreateTimer (
+       OUT     PHANDLE                 TimerHandle,
+       IN      ACCESS_MASK             DesiredAccess,
+       IN      POBJECT_ATTRIBUTES      ObjectAttributes        OPTIONAL,
+       IN      CINT                    TimerType
+       )
 {
-   return(ZwCreateTimer(TimerHandle,
-                       DesiredAccess,
-                       ObjectAttributes,
-                       TimerType));
+       UNIMPLEMENTED;
 }
 
-NTSTATUS STDCALL ZwCreateTimer(OUT PHANDLE TimerHandle,
-                              IN ACCESS_MASK DesiredAccess,
-                              IN POBJECT_ATTRIBUTES ObjectAttributes OPTIONAL,
-                              IN CINT TimerType)
-{
-   UNIMPLEMENTED;
-}
 
-NTSTATUS STDCALL NtOpenTimer(OUT PHANDLE TimerHandle,
-                            IN ACCESS_MASK DesiredAccess,
-                            IN POBJECT_ATTRIBUTES ObjectAttributes)
+NTSTATUS
+STDCALL
+NtOpenTimer (
+       OUT     PHANDLE                 TimerHandle,
+       IN      ACCESS_MASK             DesiredAccess,
+       IN      POBJECT_ATTRIBUTES      ObjectAttributes
+       )
 {
-   return(ZwOpenTimer(TimerHandle,
-                     DesiredAccess,
-                     ObjectAttributes));
+       UNIMPLEMENTED;
 }
 
-NTSTATUS STDCALL ZwOpenTimer(OUT PHANDLE TimerHandle,
-                            IN ACCESS_MASK DesiredAccess,
-                            IN POBJECT_ATTRIBUTES ObjectAttributes)
-{
-   UNIMPLEMENTED;
-}
 
-NTSTATUS STDCALL NtQueryTimer(IN HANDLE TimerHandle,
-                             IN CINT TimerInformationClass,
-                             OUT PVOID TimerInformation,
-                             IN ULONG Length,
-                             OUT PULONG ResultLength)
+NTSTATUS
+STDCALL
+NtQueryTimer (
+       IN      HANDLE  TimerHandle,
+       IN      CINT    TimerInformationClass,
+       OUT     PVOID   TimerInformation,
+       IN      ULONG   Length,
+       OUT     PULONG  ResultLength
+       )
 {
-   return(ZwQueryTimer(TimerHandle,
-                      TimerInformationClass,
-                      TimerInformation,
-                      Length,
-                      ResultLength));
+       UNIMPLEMENTED;
 }
 
-NTSTATUS STDCALL ZwQueryTimer(IN HANDLE TimerHandle,
-                             IN CINT TimerInformationClass,
-                             OUT PVOID TimerInformation,
-                             IN ULONG Length,
-                             OUT PULONG ResultLength)
-{
-   UNIMPLEMENTED;
-}
-
-NTSTATUS STDCALL NtSetTimer(IN HANDLE TimerHandle,
-                           IN PLARGE_INTEGER DueTime,
-                           IN PTIMERAPCROUTINE TimerApcRoutine,
-                           IN PVOID TimerContext,
-                           IN BOOL WakeTimer,
-                           IN ULONG Period OPTIONAL,
-                           OUT PBOOLEAN PreviousState OPTIONAL)
-{
-   return(ZwSetTimer(TimerHandle,
-                    DueTime,
-                    TimerApcRoutine,
-                    TimerContext,
-                    WakeTimer,
-                    Period,
-                    PreviousState));
-}
 
-NTSTATUS STDCALL ZwSetTimer(IN HANDLE TimerHandle,
-                           IN PLARGE_INTEGER DueTime,
-                           IN PTIMERAPCROUTINE TimerApcRoutine,
-                           IN PVOID TimerContext,
-                           IN BOOL WakeTimer,
-                           IN ULONG Period OPTIONAL,
-                           OUT PBOOLEAN PreviousState OPTIONAL)
+NTSTATUS
+STDCALL
+NtSetTimer (
+       IN      HANDLE                  TimerHandle,
+       IN      PLARGE_INTEGER          DueTime,
+       IN      PTIMERAPCROUTINE        TimerApcRoutine,
+       IN      PVOID                   TimerContext,
+       IN      BOOL                    WakeTimer,
+       IN      ULONG                   Period          OPTIONAL,
+       OUT     PBOOLEAN                PreviousState   OPTIONAL
+       )
 {
-   UNIMPLEMENTED;
+       UNIMPLEMENTED;
 }
index c19f013..0d2726a 100644 (file)
@@ -52,7 +52,7 @@ typedef struct _EPORT
 POBJECT_TYPE ExPortType = NULL;
 
 /* FUNCTIONS *****************************************************************/
-
+#ifndef PROTO_LPC
 NTSTATUS NiInitPort(VOID)
 {
    ExPortType = ExAllocatePool(NonPagedPool,sizeof(OBJECT_TYPE));
@@ -279,3 +279,187 @@ NTSTATUS STDCALL NtQueryInformationPort(VOID)
 {
    UNIMPLEMENTED;
 }
+
+#else
+NTSTATUS
+STDCALL
+NtAcceptConnectPort ( /* @24 */
+       IN      HANDLE  PortHandle,
+       DWORD   a1,
+       DWORD   a2,
+       DWORD   a3,
+       DWORD   a4,
+       DWORD   a5
+       )
+{
+       UNIMPLEMENTED;
+}
+
+
+NTSTATUS
+STDCALL
+NtCompleteConnectPort ( /* @4 */
+       HANDLE  PortHandle
+       )
+{
+       UNIMPLEMENTED;
+}
+
+
+NTSTATUS
+STDCALL
+NtConnectPort ( /* @32 */
+       IN      HANDLE  PortHandle,
+       DWORD   a1,
+       DWORD   a2,
+       DWORD   a3,
+       DWORD   a4,
+       DWORD   a5,
+       DWORD   a6,
+       DWORD   a7,
+       DWORD   a8
+       )
+{
+       UNIMPLEMENTED;
+}
+
+
+NTSTATUS
+STDCALL
+NtCreatePort ( /* @20 */
+       OUT     PHANDLE                 PortHandle,
+       IN      ACCESS_MASK             DesiredAccess,
+       IN      POBJECT_ATTRIBUTES      ObjectAttributes        OPTIONAL,  
+       IN      DWORD                   a3,
+       IN      DWORD                   a4
+       )
+{
+       UNIMPLEMENTED;
+}
+
+
+NTSTATUS
+STDCALL
+NtImpersonateClientOfPort ( /* @8 */
+       IN      HANDLE          PortHandle,
+       IN      PCLIENT_ID      ClientId
+       )
+{
+       UNIMPLEMENTED;
+}
+
+
+NTSTATUS
+STDCALL
+NtListenPort ( /* @8 */
+       IN      HANDLE  PortHAndle,
+       IN      DWORD   QueueSize       /* guess */
+       )
+{
+       UNIMPLEMENTED;
+}
+
+
+NTSTATUS
+STDCALL
+NtQueryInformationPort ( /* @20 */
+       IN      HANDLE  PortHandle,
+       IN      CINT    PortInformationClass,   /* guess */
+       OUT     PVOID   PortInformation,        /* guess */
+       IN      ULONG   PortInformationLength,  /* guess */
+       OUT     PULONG  ReturnLength            /* guess */
+       )
+{
+       UNIMPLEMENTED;
+}
+
+
+NTSTATUS
+STDCALL
+NtReplyPort ( /* @8 */
+       IN      HANDLE          PortHandle,
+       IN      PLPC_REPLY      LpcReply        /* guess */
+       )
+{
+       UNIMPLEMENTED;
+}
+
+
+NTSTATUS
+STDCALL
+NtReplyWaitReceivePort ( /* @16 */
+       IN      HANDLE          PortHandle,
+       IN      PLPC_REPLY      LpcReply,       /* guess */
+       OUT     PLPC_MESSAGE    LpcMessage,     /* guess */
+       OUT     PULONG          MessageLength   /* guess */
+       )
+{
+       UNIMPLEMENTED;
+}
+
+
+NTSTATUS
+STDCALL
+NtReplyWaitReplyPort ( /* @8 */
+       IN      HANDLE          PortHandle,
+       IN OUT  PLPC_REPLY      LpcReply        /* guess */
+       )
+{
+       UNIMPLEMENTED;
+}
+
+
+NTSTATUS
+STDCALL
+NtRequestPort ( /* @8 */
+       IN      HANDLE          PortHandle,
+       IN      PLPC_MESSAGE    LpcMessage      /* guess */
+       )
+{
+       UNIMPLEMENTED;
+}
+
+
+NTSTATUS
+STDCALL
+NtRequestWaitReplyPort ( /* @12 */
+       IN      HANDLE          PortHandle,
+       IN OUT  PLPC_REPLY      LpcReply,       /* guess */
+       IN      TIME            * TimeToWait    /* guess */
+       )
+{
+       UNIMPLEMENTED;
+}
+
+NTSTATUS
+STDCALL
+NtReadRequestData ( /* @24 */
+       DWORD   a0,
+       DWORD   a1,
+       DWORD   a2,
+       DWORD   a3,
+       DWORD   a4,
+       DWORD   a5
+       )
+{
+       UNIMPLEMENTED;
+}
+
+
+NTSTATUS
+STDCALL
+NtWriteRequestData ( /* @24 */
+       DWORD   a0,
+       DWORD   a1,
+       DWORD   a2,
+       DWORD   a3,
+       DWORD   a4,
+       DWORD   a5
+       )
+{
+       UNIMPLEMENTED;
+}
+#endif /* ndef PROTO_LPC */
+
+/* EOF */
index 2a2c7cc..db69f7e 100644 (file)
@@ -126,11 +126,88 @@ RtlMoveMemory
 RtlTimeFieldsToTime
 RtlTimeToTimeFields
 RtlZeroMemory
-ZwCreateDirectoryObject@12
 CcInitializeFileCache
 CcRequestCachePage
 CcReleaseCachePage
 CcReleaseFileCache
+ZwAccessCheckAndAuditAlarm = ZwAccessCheckAndAuditAlarm@44
+ZwAlertThread = ZwAlertThread@4
+ZwAllocateVirtualMemory = ZwAllocateVirtualMemory@24
+ZwClearEvent = ZwClearEvent@4
+ZwClose = ZwClose@4
+ZwCloseObjectAuditAlarm = ZwCloseObjectAuditAlarm@12
+ZwConnectPort = ZwConnectPort@32
+ZwCreateDirectoryObject = ZwCreateDirectoryObject@12
+ZwCreateDirectoryObject@12
+ZwCreateEvent = ZwCreateEvent@20
+ZwCreateFile = ZwCreateFile@44
+ZwCreateKey = ZwCreateKey@28
+ZwCreateSection = ZwCreateSection@28
+ZwCreateSymbolicLinkObject = ZwCreateSymbolicLinkObject@16
+ZwDeleteFile = ZwDeleteFile@4
+ZwDeleteKey = ZwDeleteKey@4
+ZwDeleteValueKey = ZwDeleteValueKey@8
+ZwDeviceIoControlFile = ZwDeviceIoControlFile@40
+ZwDisplayString = ZwDisplayString@4
+ZwDuplicateObject = ZwDuplicateObject@28
+ZwDuplicateToken = ZwDuplicateToken@24
+ZwEnumerateKey = ZwEnumerateKey@24
+ZwEnumerateValueKey = ZwEnumerateValueKey@24
+ZwFlushInstructionCache = ZwFlushInstructionCache@12
+ZwFlushKey = ZwFlushKey@4
+ZwFreeVirtualMemory = ZwFreeVirtualMemory@16
+ZwFsControlFile = ZwFsControlFile@40
+ZwLoadDriver = ZwLoadDriver@4
+ZwLoadKey = ZwLoadKey@8
+ZwMakeTemporaryObject = ZwMakeTemporaryObject@4
+ZwMapViewOfSection = ZwMapViewOfSection@40
+ZwNotifyChangeKey = ZwNotifyChangeKey@40
+ZwOpenDirectoryObject = ZwOpenDirectoryObject@12
+ZwOpenEvent = ZwOpenEvent@12
+ZwOpenFile = ZwOpenFile@24
+ZwOpenKey = ZwOpenKey@12
+ZwOpenProcess = ZwOpenProcess@16
+ZwOpenProcessToken = ZwOpenProcessToken@12
+ZwOpenSection = ZwOpenSection@12
+ZwOpenSymbolicLinkObject = ZwOpenSymbolicLinkObject@12
+ZwOpenThread = ZwOpenThread@16
+ZwOpenThreadToken = ZwOpenThreadToken@16
+ZwPulseEvent = ZwPulseEvent@8
+ZwQueryDefaultLocale = ZwQueryDefaultLocale@8
+ZwQueryDirectoryFile = ZwQueryDirectoryFile@44
+ZwQueryInformationFile = ZwQueryInformationFile@20
+ZwQueryInformationProcess = ZwQueryInformationProcess@20
+ZwQueryInformationToken = ZwQueryInformationToken@20
+ZwQueryKey = ZwQueryKey@20
+ZwQueryObject = ZwQueryObject@20
+ZwQuerySection = ZwQuerySection@20
+ZwQuerySecurityObject = ZwQuerySecurityObject@20
+ZwQuerySymbolicLinkObject = ZwQuerySymbolicLinkObject@12
+ZwQuerySystemInformation = ZwQuerySystemInformation@16
+ZwQueryValueKey = ZwQueryValueKey@24
+ZwQueryVolumeInformationFile = ZwQueryVolumeInformationFile@20
+ZwReadFile = ZwReadFile@36
+ZwReplaceKey = ZwReplaceKey@12
+ZwRequestWaitReplyPort = ZwRequestWaitReplyPort@12
+ZwResetEvent = ZwResetEvent@8
+ZwSaveKey = ZwSaveKey@8
+ZwSetDefaultLocale = ZwSetDefaultLocale@8
+ZwSetEvent = ZwSetEvent@8
+ZwSetInformationFile = ZwSetInformationFile@20
+ZwSetInformationObject = ZwSetInformationObject@16
+ZwSetInformationProcess = ZwSetInformationProcess@16
+ZwSetInformationThread = ZwSetInformationThread@16
+ZwSetSystemInformation = ZwSetSystemInformation@12
+ZwSetSystemTime = ZwSetSystemTime@8
+ZwSetValueKey = ZwSetValueKey@24
+ZwTerminateProcess = ZwTerminateProcess@8
+ZwUnloadDriver = ZwUnloadDriver@4
+ZwUnloadKey = ZwUnloadKey@4
+ZwUnmapViewOfSection = ZwUnmapViewOfSection@8
+ZwWaitForMultipleObjects = ZwWaitForMultipleObjects@20
+ZwWaitForSingleObject = ZwWaitForSingleObject@12
+ZwWriteFile = ZwWriteFile@36
+ZwYieldExecution = ZwYieldExecution@0
 isdigit
 islower
 isprint
index bff9f58..560ad41 100644 (file)
 
 /* FUNCTIONS **************************************************************/
 
-NTSTATUS NtOpenDirectoryObject(PHANDLE DirectoryHandle,
-                              ACCESS_MASK DesiredAccess,
-                              POBJECT_ATTRIBUTES ObjectAttributes)
-{
-   return(ZwOpenDirectoryObject(DirectoryHandle,
-                               DesiredAccess,
-                               ObjectAttributes));
-}
-
-NTSTATUS ZwOpenDirectoryObject(PHANDLE DirectoryHandle,
-                              ACCESS_MASK DesiredAccess,
-                              POBJECT_ATTRIBUTES ObjectAttributes)
+NTSTATUS
+NtOpenDirectoryObject (
+       PHANDLE                 DirectoryHandle,
+       ACCESS_MASK             DesiredAccess,
+       POBJECT_ATTRIBUTES      ObjectAttributes
+       )
 /*
  * FUNCTION: Opens a namespace directory object
  * ARGUMENTS:
@@ -70,30 +64,17 @@ NTSTATUS ZwOpenDirectoryObject(PHANDLE DirectoryHandle,
    return(STATUS_SUCCESS);
 }
 
-NTSTATUS NtQueryDirectoryObject(IN HANDLE DirObjHandle,
-                               OUT POBJDIR_INFORMATION DirObjInformation, 
-                               IN ULONG                BufferLength, 
-                               IN BOOLEAN              GetNextIndex, 
-                               IN BOOLEAN              IgnoreInputIndex, 
-                               IN OUT PULONG           ObjectIndex,
-                               OUT PULONG              DataWritten OPTIONAL)
-{
-   return(ZwQueryDirectoryObject(DirObjHandle,
-                                DirObjInformation,
-                                BufferLength,
-                                GetNextIndex,
-                                IgnoreInputIndex,
-                                ObjectIndex,
-                                DataWritten));
-}
 
-NTSTATUS ZwQueryDirectoryObject(IN HANDLE DirObjHandle,
-                               OUT POBJDIR_INFORMATION DirObjInformation, 
-                               IN ULONG                BufferLength, 
-                               IN BOOLEAN              GetNextIndex, 
-                               IN BOOLEAN              IgnoreInputIndex, 
-                               IN OUT PULONG           ObjectIndex,
-                               OUT PULONG              DataWritten OPTIONAL)
+NTSTATUS
+NtQueryDirectoryObject (
+       IN      HANDLE                  DirObjHandle,
+       OUT     POBJDIR_INFORMATION     DirObjInformation, 
+       IN      ULONG                   BufferLength, 
+       IN      BOOLEAN                 GetNextIndex, 
+       IN      BOOLEAN                 IgnoreInputIndex, 
+       IN OUT  PULONG                  ObjectIndex,
+       OUT     PULONG                  DataWritten     OPTIONAL
+       )
 /*
  * FUNCTION: Reads information from a namespace directory
  * ARGUMENTS:
@@ -121,7 +102,7 @@ NTSTATUS ZwQueryDirectoryObject(IN HANDLE DirObjHandle,
    ULONG EntriesToSkip;
    NTSTATUS Status;
    
-   DPRINT("ZwQueryDirectoryObject(DirObjHandle %x)\n",DirObjHandle);
+   DPRINT("NtQueryDirectoryObject(DirObjHandle %x)\n",DirObjHandle);
    DPRINT("dir %x namespc_root %x\n",dir,HEADER_TO_BODY(&(namespc_root.hdr)));
    
 //   assert_irql(PASSIVE_LEVEL);
@@ -202,18 +183,13 @@ NTSTATUS ZwQueryDirectoryObject(IN HANDLE DirObjHandle,
 }
 
 
-NTSTATUS STDCALL NtCreateDirectoryObject(PHANDLE DirectoryHandle,
-                                        ACCESS_MASK DesiredAccess,
-                                        POBJECT_ATTRIBUTES ObjectAttributes)
-{
-   return(ZwCreateDirectoryObject(DirectoryHandle,
-                                 DesiredAccess,
-                                 ObjectAttributes));
-}
-
-NTSTATUS STDCALL ZwCreateDirectoryObject(PHANDLE DirectoryHandle,
-                                        ACCESS_MASK DesiredAccess,
-                                        POBJECT_ATTRIBUTES ObjectAttributes)
+NTSTATUS
+STDCALL
+NtCreateDirectoryObject (
+       PHANDLE                 DirectoryHandle,
+       ACCESS_MASK             DesiredAccess,
+       POBJECT_ATTRIBUTES      ObjectAttributes
+       )
 /*
  * FUNCTION: Creates or opens a directory object (a container for other
  * objects)
index 5d649b2..2c19f2b 100644 (file)
@@ -70,30 +70,17 @@ static PHANDLE_REP ObpGetObjectByHandle(PEPROCESS Process,
    return(&(blk->handles[handle%HANDLE_BLOCK_ENTRIES]));
 }
 
-NTSTATUS STDCALL NtDuplicateObject(IN HANDLE SourceProcessHandle,
-                                  IN PHANDLE SourceHandle,
-                                  IN HANDLE TargetProcessHandle,
-                                  OUT PHANDLE TargetHandle,
-                                  IN ACCESS_MASK DesiredAccess,
-                                  IN BOOLEAN InheritHandle,
-                                  ULONG Options)
-{
-   return(ZwDuplicateObject(SourceProcessHandle,
-                           SourceHandle,
-                           TargetProcessHandle,
-                           TargetHandle,
-                           DesiredAccess,
-                           InheritHandle,
-                           Options));
-}
-
-NTSTATUS STDCALL ZwDuplicateObject(IN HANDLE SourceProcessHandle,
-                                  IN PHANDLE SourceHandle,
-                                  IN HANDLE TargetProcessHandle,
-                                  OUT PHANDLE TargetHandle,
-                                  IN ACCESS_MASK DesiredAccess,
-                                  IN BOOLEAN InheritHandle,
-                                  ULONG Options)
+NTSTATUS
+STDCALL
+NtDuplicateObject (
+       IN      HANDLE          SourceProcessHandle,
+       IN      PHANDLE         SourceHandle,
+       IN      HANDLE          TargetProcessHandle,
+       OUT     PHANDLE         TargetHandle,
+       IN      ACCESS_MASK     DesiredAccess,
+       IN      BOOLEAN         InheritHandle,
+               ULONG           Options
+       )
 /*
  * FUNCTION: Copies a handle from one process space to another
  * ARGUMENTS:
@@ -391,7 +378,7 @@ NTSTATUS ObReferenceObjectByHandle(HANDLE Handle,
    return(STATUS_SUCCESS);
 }
 
-NTSTATUS ZwClose(HANDLE Handle)
+NTSTATUS NtClose(HANDLE Handle)
 /*
  * FUNCTION: Closes a handle reference to an object
  * ARGUMENTS:
@@ -405,7 +392,7 @@ NTSTATUS ZwClose(HANDLE Handle)
    
    assert_irql(PASSIVE_LEVEL);
    
-   DPRINT("ZwClose(Handle %x)\n",Handle);
+   DPRINT("NtClose(Handle %x)\n",Handle);
    
    HandleRep = ObpGetObjectByHandle(PsGetCurrentProcess(),
                                    Handle);
index 1ef60c8..af87ef3 100644 (file)
 
 /* FUNCTIONS ************************************************************/
 
-NTSTATUS STDCALL NtSetInformationObject(IN HANDLE ObjectHandle,
-                                       IN CINT ObjectInformationClass,
-                                       IN PVOID ObjectInformation,
-                                       IN ULONG Length)
+NTSTATUS
+STDCALL
+NtSetInformationObject (
+       IN      HANDLE  ObjectHandle,
+       IN      CINT    ObjectInformationClass,
+       IN      PVOID   ObjectInformation,
+       IN      ULONG   Length
+       )
 {
-   return(ZwSetInformationObject(ObjectHandle,
-                                ObjectInformationClass,
-                                ObjectInformation,
-                                Length));
+       UNIMPLEMENTED;
 }
 
-NTSTATUS STDCALL ZwSetInformationObject(IN HANDLE ObjectHandle,
-                                       IN CINT ObjectInformationClass,
-                                       IN PVOID ObjectInformation,
-                                       IN ULONG Length)
-{
-   UNIMPLEMENTED;
-}
 
-NTSTATUS STDCALL NtQueryObject(IN HANDLE ObjectHandle,
-                              IN CINT ObjectInformationClass,
-                              OUT PVOID ObjectInformation,
-                              IN ULONG Length,
-                              OUT PULONG ResultLength)
+NTSTATUS
+STDCALL
+NtQueryObject (
+       IN      HANDLE  ObjectHandle,
+       IN      CINT    ObjectInformationClass,
+       OUT     PVOID   ObjectInformation,
+       IN      ULONG   Length,
+       OUT     PULONG  ResultLength
+       )
 {
-   return(ZwQueryObject(ObjectHandle,
-                       ObjectInformationClass,
-                       ObjectInformation,
-                       Length,
-                       ResultLength));
+       UNIMPLEMENTED
 }
 
-NTSTATUS STDCALL ZwQueryObject(IN HANDLE ObjectHandle,
-                              IN CINT ObjectInformationClass,
-                              OUT PVOID ObjectInformation,
-                              IN ULONG Length,
-                              OUT PULONG ResultLength)
-{
-   UNIMPLEMENTED
-}
 
 VOID ObMakeTemporaryObject(PVOID ObjectBody)
 {
@@ -69,12 +55,11 @@ VOID ObMakeTemporaryObject(PVOID ObjectBody)
    ObjectHeader->Permanent = FALSE;
 }
 
-NTSTATUS NtMakeTemporaryObject(HANDLE Handle)
-{
-   return(ZwMakeTemporaryObject(Handle));
-}
 
-NTSTATUS ZwMakeTemporaryObject(HANDLE Handle)
+NTSTATUS
+NtMakeTemporaryObject (
+       HANDLE  Handle
+       )
 {
    PVOID Object;
    NTSTATUS Status;  
@@ -98,9 +83,3 @@ NTSTATUS ZwMakeTemporaryObject(HANDLE Handle)
    
    return(STATUS_SUCCESS);
 }
-
-NTSTATUS NtClose(HANDLE Handle)
-{
-   return(ZwClose(Handle));
-}
-
index 312e953..9c92f24 100644 (file)
@@ -64,20 +64,18 @@ VOID PsTerminateOtherThread(PETHREAD Thread, NTSTATUS ExitStatus)
 }
 
 
-NTSTATUS STDCALL NtTerminateProcess(IN HANDLE ProcessHandle,
-                                   IN NTSTATUS ExitStatus)
-{
-   return(ZwTerminateProcess(ProcessHandle,ExitStatus));
-}
-
-NTSTATUS STDCALL ZwTerminateProcess(IN HANDLE ProcessHandle,
-                                   IN NTSTATUS ExitStatus)
+NTSTATUS
+STDCALL
+NtTerminateProcess (
+       IN      HANDLE          ProcessHandle,
+       IN      NTSTATUS        ExitStatus
+       )
 {
    NTSTATUS Status;
    PEPROCESS Process;
    KIRQL oldlvl;
    
-   DPRINT("ZwTerminateProcess(ProcessHandle %x, ExitStatus %x)\n",
+   DPRINT("NtTerminateProcess(ProcessHandle %x, ExitStatus %x)\n",
           ProcessHandle, ExitStatus);
    
    Status = ObReferenceObjectByHandle(ProcessHandle,
@@ -107,14 +105,12 @@ NTSTATUS STDCALL ZwTerminateProcess(IN HANDLE ProcessHandle,
 }
 
 
-NTSTATUS STDCALL NtTerminateThread(IN HANDLE ThreadHandle,
-                                  IN NTSTATUS ExitStatus)
-{
-   return(ZwTerminateThread(ThreadHandle,ExitStatus));
-}
-
-NTSTATUS STDCALL ZwTerminateThread(IN HANDLE ThreadHandle, 
-                                  IN NTSTATUS ExitStatus)
+NTSTATUS
+STDCALL
+NtTerminateThread (
+       IN      HANDLE          ThreadHandle,
+       IN      NTSTATUS        ExitStatus
+       )
 {
    PETHREAD Thread;
    NTSTATUS Status;
@@ -169,12 +165,12 @@ NTSTATUS PsTerminateSystemThread(NTSTATUS ExitStatus)
    return(STATUS_SUCCESS);
 }
 
-NTSTATUS STDCALL NtRegisterThreadTerminatePort(HANDLE TerminationPort)
-{
-   return(ZwRegisterThreadTerminatePort(TerminationPort));
-}
 
-NTSTATUS STDCALL ZwRegisterThreadTerminatePort(HANDLE TerminationPort)
+NTSTATUS
+STDCALL
+NtRegisterThreadTerminatePort (
+       HANDLE  TerminationPort
+       )
 {
-   UNIMPLEMENTED;
+       UNIMPLEMENTED;
 }
index 0be1864..aba4096 100644 (file)
@@ -133,35 +133,18 @@ struct _EPROCESS* PsGetCurrentProcess(VOID)
      }
 }
 
-NTSTATUS STDCALL NtCreateProcess(
-                          OUT PHANDLE ProcessHandle,
-                          IN ACCESS_MASK DesiredAccess,
-                          IN POBJECT_ATTRIBUTES ObjectAttributes OPTIONAL,
-                          IN HANDLE ParentProcessHandle,
-                          IN BOOLEAN InheritObjectTable,
-                          IN HANDLE SectionHandle OPTIONAL,
-                          IN HANDLE DebugPort OPTIONAL,
-                          IN HANDLE ExceptionPort OPTIONAL)
-{
-   return(ZwCreateProcess(ProcessHandle,
-                         DesiredAccess,
-                         ObjectAttributes,
-                         ParentProcessHandle,
-                         InheritObjectTable,
-                         SectionHandle,
-                         DebugPort,
-                         ExceptionPort));
-}
-
-NTSTATUS STDCALL ZwCreateProcess(
-                          OUT PHANDLE ProcessHandle,
-                          IN ACCESS_MASK DesiredAccess,
-                          IN POBJECT_ATTRIBUTES ObjectAttributes OPTIONAL,
-                          IN HANDLE ParentProcessHandle,
-                          IN BOOLEAN InheritObjectTable,
-                          IN HANDLE SectionHandle OPTIONAL,
-                          IN HANDLE DebugPort OPTIONAL,
-                          IN HANDLE ExceptionPort OPTIONAL)
+NTSTATUS
+STDCALL
+NtCreateProcess (
+       OUT     PHANDLE                 ProcessHandle,
+       IN      ACCESS_MASK             DesiredAccess,
+       IN      POBJECT_ATTRIBUTES      ObjectAttributes        OPTIONAL,
+       IN      HANDLE                  ParentProcessHandle,
+       IN      BOOLEAN                 InheritObjectTable,
+       IN      HANDLE                  SectionHandle           OPTIONAL,
+       IN      HANDLE                  DebugPort               OPTIONAL,
+       IN      HANDLE                  ExceptionPort           OPTIONAL
+       )
 /*
  * FUNCTION: Creates a process.
  * ARGUMENTS:
@@ -190,7 +173,7 @@ NTSTATUS STDCALL ZwCreateProcess(
    NTSTATUS Status;
    KIRQL oldIrql;
    
-   DPRINT("ZwCreateProcess(ObjectAttributes %x)\n",ObjectAttributes);
+   DPRINT("NtCreateProcess(ObjectAttributes %x)\n",ObjectAttributes);
 
    Status = ObReferenceObjectByHandle(ParentProcessHandle,
                                      PROCESS_CREATE_PROCESS,
@@ -201,7 +184,7 @@ NTSTATUS STDCALL ZwCreateProcess(
 
    if (Status != STATUS_SUCCESS)
      {
-       DPRINT("ZwCreateProcess() = %x\n",Status);
+       DPRINT("NtCreateProcess() = %x\n",Status);
        return(Status);
      }
 
@@ -233,7 +216,7 @@ NTSTATUS STDCALL ZwCreateProcess(
     */
    if (SectionHandle != NULL)
      {
-       DbgPrint("ZwCreateProcess() non-NULL SectionHandle\n");
+       DbgPrint("NtCreateProcess() non-NULL SectionHandle\n");
        return(STATUS_UNSUCCESSFUL);
      }
 
@@ -244,23 +227,16 @@ NTSTATUS STDCALL ZwCreateProcess(
 }
 
 
-NTSTATUS STDCALL NtOpenProcess (OUT PHANDLE ProcessHandle,
-                               IN ACCESS_MASK DesiredAccess,
-                               IN POBJECT_ATTRIBUTES ObjectAttributes,
-                               IN PCLIENT_ID ClientId)
-{
-   return(ZwOpenProcess(ProcessHandle,
-                       DesiredAccess,
-                       ObjectAttributes,
-                       ClientId));
-}
-
-NTSTATUS STDCALL ZwOpenProcess (OUT PHANDLE ProcessHandle,
-                               IN ACCESS_MASK DesiredAccess,
-                               IN POBJECT_ATTRIBUTES ObjectAttributes,
-                               IN PCLIENT_ID ClientId)
+NTSTATUS
+STDCALL
+NtOpenProcess (
+       OUT     PHANDLE                 ProcessHandle,
+       IN      ACCESS_MASK             DesiredAccess,
+       IN      POBJECT_ATTRIBUTES      ObjectAttributes,
+       IN      PCLIENT_ID              ClientId
+       )
 {
-   DPRINT("ZwOpenProcess(ProcessHandle %x, DesiredAccess %x, "
+   DPRINT("NtOpenProcess(ProcessHandle %x, DesiredAccess %x, "
          "ObjectAttributes %x, ClientId %x { UniP %d, UniT %d })\n",
          ProcessHandle, DesiredAccess, ObjectAttributes, ClientId,
          ClientId->UniqueProcess, ClientId->UniqueThread);
@@ -324,36 +300,28 @@ NTSTATUS STDCALL ZwOpenProcess (OUT PHANDLE ProcessHandle,
                                          ProcessHandle);
                  ObDereferenceObject(current);
                  DPRINT("*ProcessHandle %x\n", ProcessHandle);
-                 DPRINT("ZwOpenProcess() = %x\n", Status);
+                 DPRINT("NtOpenProcess() = %x\n", Status);
                  return(Status);                         
               }
             current_entry = current_entry->Flink;
          }
        KeReleaseSpinLock(&PsProcessListLock, oldIrql);
-       DPRINT("ZwOpenProcess() = STATUS_UNSUCCESSFUL\n");
+       DPRINT("NtOpenProcess() = STATUS_UNSUCCESSFUL\n");
        return(STATUS_UNSUCCESSFUL);
      }
    return(STATUS_UNSUCCESSFUL);
 }
 
-NTSTATUS STDCALL NtQueryInformationProcess(IN HANDLE ProcessHandle,
-                                          IN CINT ProcessInformationClass,
-                                          OUT PVOID ProcessInformation,
-                                          IN ULONG ProcessInformationLength,
-                                          OUT PULONG ReturnLength)
-{
-   return(ZwQueryInformationProcess(ProcessHandle,
-                                   ProcessInformationClass,
-                                   ProcessInformation,
-                                   ProcessInformationLength,
-                                   ReturnLength));
-}
 
-NTSTATUS STDCALL ZwQueryInformationProcess(IN HANDLE ProcessHandle,
-                                          IN CINT ProcessInformationClass,
-                                          OUT PVOID ProcessInformation,
-                                          IN ULONG ProcessInformationLength,
-                                          OUT PULONG ReturnLength)
+NTSTATUS
+STDCALL
+NtQueryInformationProcess (
+       IN      HANDLE  ProcessHandle,
+       IN      CINT    ProcessInformationClass,
+       OUT     PVOID   ProcessInformation,
+       IN      ULONG   ProcessInformationLength,
+       OUT     PULONG  ReturnLength
+       )
 {
    PEPROCESS Process;
    NTSTATUS Status;
@@ -411,21 +379,15 @@ NTSTATUS STDCALL ZwQueryInformationProcess(IN HANDLE ProcessHandle,
    return(Status);
 }
 
-NTSTATUS STDCALL NtSetInformationProcess(IN HANDLE ProcessHandle,
-                                        IN CINT ProcessInformationClass,
-                                        IN PVOID ProcessInformation,
-                                        IN ULONG ProcessInformationLength)
-{
-   return(ZwSetInformationProcess(ProcessHandle,
-                                 ProcessInformationClass,
-                                 ProcessInformation,
-                                 ProcessInformationLength));
-}
 
-NTSTATUS STDCALL ZwSetInformationProcess(IN HANDLE ProcessHandle,
-                                        IN CINT ProcessInformationClass,
-                                        IN PVOID ProcessInformation,
-                                        IN ULONG ProcessInformationLength)
+NTSTATUS
+STDCALL
+NtSetInformationProcess (
+       IN      HANDLE  ProcessHandle,
+       IN      CINT    ProcessInformationClass,
+       IN      PVOID   ProcessInformation,
+       IN      ULONG   ProcessInformationLength
+       )
 {
    PEPROCESS Process;
    NTSTATUS Status;
index 509409c..38e20c0 100644 (file)
@@ -354,38 +354,22 @@ VOID PsInitThreadManagment(VOID)
    DoneInitYet = TRUE;
 }
 
-NTSTATUS NtCreateThread(PHANDLE ThreadHandle,
-                       ACCESS_MASK DesiredAccess,
-                       POBJECT_ATTRIBUTES ObjectAttributes,
-                       HANDLE ProcessHandle,
-                       PCLIENT_ID Client,
-                       PCONTEXT ThreadContext,
-                       PINITIAL_TEB InitialTeb,
-                       BOOLEAN CreateSuspended)
-{
-   return(ZwCreateThread(ThreadHandle,
-                        DesiredAccess,
-                        ObjectAttributes,
-                        ProcessHandle,
-                        Client,
-                        ThreadContext,
-                        InitialTeb,
-                        CreateSuspended));
-}
-
-NTSTATUS ZwCreateThread(PHANDLE ThreadHandle,
-                       ACCESS_MASK DesiredAccess,
-                       POBJECT_ATTRIBUTES ObjectAttributes,
-                       HANDLE ProcessHandle,
-                       PCLIENT_ID Client,
-                       PCONTEXT ThreadContext,
-                       PINITIAL_TEB InitialTeb,
-                       BOOLEAN CreateSuspended)
+NTSTATUS
+NtCreateThread (
+       PHANDLE                 ThreadHandle,
+       ACCESS_MASK             DesiredAccess,
+       POBJECT_ATTRIBUTES      ObjectAttributes,
+       HANDLE                  ProcessHandle,
+       PCLIENT_ID              Client,
+       PCONTEXT                ThreadContext,
+       PINITIAL_TEB            InitialTeb,
+       BOOLEAN                 CreateSuspended
+       )
 {
    PETHREAD Thread;
    NTSTATUS Status;
    
-   DPRINT("ZwCreateThread(ThreadHandle %x, PCONTEXT %x)\n",
+   DPRINT("NtCreateThread(ThreadHandle %x, PCONTEXT %x)\n",
          ThreadHandle,ThreadContext);
    
    Status = PsInitializeThread(ProcessHandle,&Thread,ThreadHandle,
@@ -488,67 +472,58 @@ KPRIORITY KeSetPriorityThread(PKTHREAD Thread, KPRIORITY Priority)
    return(OldPriority);
 }
 
-NTSTATUS STDCALL NtAlertResumeThread(IN HANDLE ThreadHandle,
-                                    OUT PULONG SuspendCount)
-{
-   return(ZwAlertResumeThread(ThreadHandle,SuspendCount));
-}
 
-NTSTATUS STDCALL ZwAlertResumeThread(IN HANDLE ThreadHandle,
-                                    OUT PULONG SuspendCount)
+NTSTATUS
+STDCALL
+NtAlertResumeThread (
+       IN      HANDLE  ThreadHandle,
+       OUT     PULONG  SuspendCount
+       )
 {
-   UNIMPLEMENTED;
+       UNIMPLEMENTED;
 }
 
-NTSTATUS STDCALL NtAlertThread(IN HANDLE ThreadHandle)
-{
-   return(ZwAlertThread(ThreadHandle));
-}
 
-NTSTATUS STDCALL ZwAlertThread(IN HANDLE ThreadHandle)
+NTSTATUS
+STDCALL
+NtAlertThread (
+       IN      HANDLE  ThreadHandle
+       )
 {
-   UNIMPLEMENTED;
+       UNIMPLEMENTED;
 }
 
-NTSTATUS STDCALL NtGetContextThread(IN HANDLE ThreadHandle, 
-                                   OUT PCONTEXT Context)
-{
-   return(ZwGetContextThread(ThreadHandle,Context));
-}
 
-NTSTATUS STDCALL ZwGetContextThread(IN HANDLE ThreadHandle, 
-                                   OUT PCONTEXT Context)
+NTSTATUS
+STDCALL
+NtGetContextThread (
+       IN      HANDLE          ThreadHandle, 
+       OUT     PCONTEXT        Context
+       )
 {
-   UNIMPLEMENTED;
+       UNIMPLEMENTED;
 }
 
-NTSTATUS STDCALL NtOpenThread(OUT PHANDLE ThreadHandle,
-                             IN ACCESS_MASK DesiredAccess,
-                             IN POBJECT_ATTRIBUTES ObjectAttributes,
-                             IN PCLIENT_ID ClientId)
-{
-   return(ZwOpenThread(ThreadHandle,
-                      DesiredAccess,
-                      ObjectAttributes,
-                      ClientId));
-}
 
-NTSTATUS STDCALL ZwOpenThread(OUT PHANDLE ThreadHandle,
-                             IN ACCESS_MASK DesiredAccess,
-                             IN POBJECT_ATTRIBUTES ObjectAttributes,
-                             IN PCLIENT_ID ClientId)
+NTSTATUS
+STDCALL
+NtOpenThread (
+       OUT     PHANDLE                 ThreadHandle,
+       IN      ACCESS_MASK             DesiredAccess,
+       IN      POBJECT_ATTRIBUTES      ObjectAttributes,
+       IN      PCLIENT_ID              ClientId
+       )
 {
-   UNIMPLEMENTED;
+       UNIMPLEMENTED;
 }
 
-NTSTATUS STDCALL NtResumeThread(IN HANDLE ThreadHandle,
-                               IN PULONG SuspendCount)
-{
-   return(ZwResumeThread(ThreadHandle,SuspendCount));
-}
 
-NTSTATUS STDCALL ZwResumeThread(IN HANDLE ThreadHandle,
-                               IN PULONG SuspendCount)
+NTSTATUS
+STDCALL
+NtResumeThread (
+       IN      HANDLE  ThreadHandle,
+       IN      PULONG  SuspendCount
+       )
 /*
  * FUNCTION: Decrements a thread's resume count
  * ARGUMENTS: 
@@ -584,26 +559,24 @@ NTSTATUS STDCALL ZwResumeThread(IN HANDLE ThreadHandle,
    return(STATUS_SUCCESS);
 }
 
-NTSTATUS STDCALL NtSetContextThread(IN HANDLE ThreadHandle,
-                                   IN PCONTEXT Context)
-{
-   return(ZwSetContextThread(ThreadHandle,Context));
-}
 
-NTSTATUS STDCALL ZwSetContextThread(IN HANDLE ThreadHandle,
-                                   IN PCONTEXT Context)
+NTSTATUS
+STDCALL
+NtSetContextThread (
+       IN      HANDLE          ThreadHandle,
+       IN      PCONTEXT        Context
+       )
 {
-   UNIMPLEMENTED;
+       UNIMPLEMENTED;
 }
 
-NTSTATUS STDCALL NtSuspendThread(IN HANDLE ThreadHandle,
-                                IN PULONG PreviousSuspendCount)
-{
-   return(ZwSuspendThread(ThreadHandle,PreviousSuspendCount));
-}
 
-NTSTATUS STDCALL ZwSuspendThread(IN HANDLE ThreadHandle,
-                                IN PULONG PreviousSuspendCount)
+NTSTATUS
+STDCALL
+NtSuspendThread (
+       IN      HANDLE  ThreadHandle,
+       IN      PULONG  PreviousSuspendCount
+       )
 /*
  * FUNCTION: Increments a thread's suspend count
  * ARGUMENTS: 
@@ -646,23 +619,22 @@ NTSTATUS STDCALL ZwSuspendThread(IN HANDLE ThreadHandle,
    return(STATUS_SUCCESS);
 }
 
-NTSTATUS STDCALL NtContinue(IN PCONTEXT Context, IN CINT IrqLevel)
-{
-   return(ZwContinue(Context,IrqLevel));
-}
 
-NTSTATUS STDCALL ZwContinue(IN PCONTEXT Context, IN CINT IrqLevel)
+NTSTATUS
+STDCALL
+NtContinue (
+       IN      PCONTEXT        Context,
+       IN      CINT            IrqLevel
+       )
 {
-   UNIMPLEMENTED;
+       UNIMPLEMENTED;
 }
 
-NTSTATUS STDCALL NtYieldExecution(VOID)
-{
-   return(ZwYieldExecution());
-}
 
-NTSTATUS STDCALL ZwYieldExecution(VOID)
+NTSTATUS
+STDCALL
+NtYieldExecution(VOID)
 {
-   PsDispatchThread();
-   return(STATUS_SUCCESS);
+       PsDispatchThread();
+       return(STATUS_SUCCESS);
 }
index 24ba860..3d4de0b 100644 (file)
 
 /* FUNCTIONS *****************************************************************/
 
-NTSTATUS ZwSetInformationThread(HANDLE ThreadHandle,
-                               THREADINFOCLASS ThreadInformationClass,
-                               PVOID ThreadInformation,
-                               ULONG ThreadInformationLength)
+NTSTATUS
+NtSetInformationThread (
+       HANDLE          ThreadHandle,
+       THREADINFOCLASS ThreadInformationClass,
+       PVOID           ThreadInformation,
+       ULONG           ThreadInformationLength
+       )
 {
    PETHREAD Thread;
    NTSTATUS Status;
@@ -97,41 +100,15 @@ NTSTATUS ZwSetInformationThread(HANDLE ThreadHandle,
    return(Status);
 }
 
-NTSTATUS NtSetInformationThread(HANDLE ThreadHandle,
-                               THREADINFOCLASS ThreadInformationClass,
-                               PVOID ThreadInformation,
-                               ULONG ThreadInformationLength)
-{
-   return(ZwSetInformationThread(ThreadHandle,
-                                ThreadInformationClass,
-                                ThreadInformation,
-                                ThreadInformationLength));
-}
-
-
-
-NTSTATUS STDCALL ZwQueryInformationThread(
-                             IN HANDLE ThreadHandle,
-                             IN THREADINFOCLASS ThreadInformationClass,
-                             OUT PVOID ThreadInformation,
-                             IN ULONG ThreadInformationLength,
-                             OUT PULONG ReturnLength)
-{
-   UNIMPLEMENTED;
-}
 
 NTSTATUS
 STDCALL
 NtQueryInformationThread(
-       IN HANDLE ThreadHandle,
-       IN THREADINFOCLASS ThreadInformationClass,
-       OUT PVOID ThreadInformation,
-       IN ULONG ThreadInformationLength,
-       OUT PULONG ReturnLength)
+       IN      HANDLE          ThreadHandle,
+       IN      THREADINFOCLASS ThreadInformationClass,
+       OUT     PVOID           ThreadInformation,
+       IN      ULONG           ThreadInformationLength,
+       OUT     PULONG          ReturnLength)
 {
-   return(ZwQueryInformationThread(ThreadHandle,
-                                  ThreadInformationClass,
-                                  ThreadInformation,
-                                  ThreadInformationLength,
-                                  ReturnLength));
+       UNIMPLEMENTED
 }
index 0f02303..9f477c1 100644 (file)
 
 /* FUNCTIONS ***************************************************************/
 
-NTSTATUS STDCALL ZwQueryInformationToken(IN HANDLE TokenHandle,     
-       IN TOKEN_INFORMATION_CLASS TokenInformationClass,
-       OUT PVOID TokenInformation,  
-       IN ULONG TokenInformationLength,
-       OUT PULONG ReturnLength)
-{
-   UNIMPLEMENTED;
-}
 
-NTSTATUS STDCALL NtQueryInformationToken(IN HANDLE TokenHandle,     
-       IN TOKEN_INFORMATION_CLASS TokenInformationClass,
-       OUT PVOID TokenInformation,  
-       IN ULONG TokenInformationLength,
-       OUT PULONG ReturnLength)
+NTSTATUS
+STDCALL
+NtQueryInformationToken (
+       IN      HANDLE                  TokenHandle,     
+       IN      TOKEN_INFORMATION_CLASS TokenInformationClass,
+       OUT     PVOID                   TokenInformation,  
+       IN      ULONG                   TokenInformationLength,
+       OUT     PULONG                  ReturnLength
+       )
 {
-   return(ZwQueryInformationToken(TokenHandle,
-                                 TokenInformationClass,
-                                 TokenInformation,
-                                 TokenInformationLength,
-                                 ReturnLength));
+       UNIMPLEMENTED;
 }
 
-NTSTATUS STDCALL ZwQuerySecurityObject(IN HANDLE Object,
-                                      IN CINT SecurityObjectInformationClass,
-                                      OUT PVOID SecurityObjectInformation,
-                                      IN ULONG Length,
-                                      OUT PULONG ReturnLength)
-{
-   UNIMPLEMENTED;
-}
 
-NTSTATUS STDCALL NtQuerySecurityObject(IN HANDLE Object,
-                                      IN CINT SecurityObjectInformationClass,
-                                      OUT PVOID SecurityObjectInformation,
-                                      IN ULONG Length,
-                                      OUT PULONG ReturnLength)
+NTSTATUS
+STDCALL
+NtQuerySecurityObject (
+       IN      HANDLE  Object,
+       IN      CINT    SecurityObjectInformationClass,
+       OUT     PVOID   SecurityObjectInformation,
+       IN      ULONG   Length,
+       OUT     PULONG  ReturnLength
+       )
 {
-   return(ZwQuerySecurityObject(Object,
-                               SecurityObjectInformationClass,
-                               SecurityObjectInformation,
-                               Length,
-                               ReturnLength));
+       UNIMPLEMENTED;
 }
 
+
 NTSTATUS
 STDCALL
 NtSetSecurityObject(
-       IN HANDLE Handle, 
-       IN SECURITY_INFORMATION SecurityInformation, 
-       IN PSECURITY_DESCRIPTOR SecurityDescriptor 
+       IN      HANDLE                  Handle, 
+       IN      SECURITY_INFORMATION    SecurityInformation, 
+       IN      PSECURITY_DESCRIPTOR    SecurityDescriptor 
        )
 {
    UNIMPLEMENTED;
 }
 
+
 NTSTATUS
 STDCALL
 NtSetInformationToken(
-       IN HANDLE TokenHandle,            
-       IN TOKEN_INFORMATION_CLASS TokenInformationClass,
-       OUT PVOID TokenInformation,       
-       IN ULONG TokenInformationLength   
+       IN      HANDLE                  TokenHandle,            
+       IN      TOKEN_INFORMATION_CLASS TokenInformationClass,
+       OUT     PVOID                   TokenInformation,       
+       IN      ULONG                   TokenInformationLength   
        )
 {
-   UNIMPLEMENTED;
+       UNIMPLEMENTED;
 }
 
+
 NTSTATUS
 STDCALL
-NtPrivilegeCheck(
-       IN HANDLE ClientToken,             
-       IN PPRIVILEGE_SET RequiredPrivileges,  
-       IN PBOOLEAN Result                    
+NtPrivilegeCheck (
+       IN      HANDLE          ClientToken,             
+       IN      PPRIVILEGE_SET  RequiredPrivileges,  
+       IN      PBOOLEAN        Result                    
        )
 {
    UNIMPLEMENTED;
 }
 
+
 NTSTATUS
 STDCALL
-NtPrivilegedServiceAuditAlarm(
-       IN PUNICODE_STRING SubsystemName,       
-       IN PUNICODE_STRING ServiceName, 
-       IN HANDLE ClientToken,
-       IN PPRIVILEGE_SET Privileges,   
-       IN BOOLEAN AccessGranted        
+NtPrivilegedServiceAuditAlarm (
+       IN      PUNICODE_STRING SubsystemName,  
+       IN      PUNICODE_STRING ServiceName,    
+       IN      HANDLE          ClientToken,
+       IN      PPRIVILEGE_SET  Privileges,     
+       IN      BOOLEAN         AccessGranted   
        )
 {
    UNIMPLEMENTED;
 }
 
+
 NTSTATUS
 STDCALL
-NtPrivilegeObjectAuditAlarm(
-       IN PUNICODE_STRING SubsystemName,
-       IN PVOID HandleId,      
-       IN HANDLE ClientToken,
-       IN ULONG DesiredAccess,
-       IN PPRIVILEGE_SET Privileges,
-       IN BOOLEAN AccessGranted 
-       
-                           )
+NtPrivilegeObjectAuditAlarm (
+       IN      PUNICODE_STRING SubsystemName,
+       IN      PVOID           HandleId,       
+       IN      HANDLE          ClientToken,
+       IN      ULONG           DesiredAccess,
+       IN      PPRIVILEGE_SET  Privileges,
+       IN      BOOLEAN         AccessGranted 
+       )
 {
-   UNIMPLEMENTED;
+       UNIMPLEMENTED;
 }
 
+
 NTSTATUS
 STDCALL
-NtOpenObjectAuditAlarm(
-       IN PUNICODE_STRING SubsystemName,       
-       IN PVOID HandleId,      
-       IN POBJECT_ATTRIBUTES ObjectAttributes,
-       IN HANDLE ClientToken,  
-       IN ULONG DesiredAccess, 
-       IN ULONG GrantedAccess, 
-       IN PPRIVILEGE_SET Privileges,
-       IN BOOLEAN ObjectCreation,      
-       IN BOOLEAN AccessGranted,       
-       OUT PBOOLEAN GenerateOnClose    
+NtOpenObjectAuditAlarm (
+       IN      PUNICODE_STRING         SubsystemName,  
+       IN      PVOID                   HandleId,       
+       IN      POBJECT_ATTRIBUTES      ObjectAttributes,
+       IN      HANDLE                  ClientToken,    
+       IN      ULONG                   DesiredAccess,  
+       IN      ULONG                   GrantedAccess,  
+       IN      PPRIVILEGE_SET          Privileges,
+       IN      BOOLEAN                 ObjectCreation, 
+       IN      BOOLEAN                 AccessGranted,  
+       OUT     PBOOLEAN                GenerateOnClose         
        )
 {
-   UNIMPLEMENTED;
+       UNIMPLEMENTED;
 }
 
+
 NTSTATUS
 STDCALL
-NtOpenProcessToken(  
-       IN HANDLE ProcessHandle, 
-       IN ACCESS_MASK DesiredAccess,  
-       OUT PHANDLE TokenHandle  
+NtOpenProcessToken (  
+       IN      HANDLE          ProcessHandle,
+       IN      ACCESS_MASK     DesiredAccess,  
+       OUT     PHANDLE         TokenHandle  
        )
 {
-   UNIMPLEMENTED;
+       UNIMPLEMENTED;
 }
 
+
 NTSTATUS
 STDCALL
-NtOpenThreadToken(  
-       IN HANDLE ThreadHandle,  
-       IN ACCESS_MASK DesiredAccess,  
-       IN BOOLEAN OpenAsSelf,     
-       OUT PHANDLE TokenHandle  
+NtOpenThreadToken (  
+       IN      HANDLE          ThreadHandle,  
+       IN      ACCESS_MASK     DesiredAccess,  
+       IN      BOOLEAN         OpenAsSelf,     
+       OUT     PHANDLE         TokenHandle  
        )
 {
-   UNIMPLEMENTED;
+       UNIMPLEMENTED;
 }
 
-NTSTATUS STDCALL NtDuplicateToken(IN HANDLE ExistingToken, 
-                                 IN ACCESS_MASK DesiredAccess, 
-                                 IN POBJECT_ATTRIBUTES ObjectAttributes,
-                                 IN SECURITY_IMPERSONATION_LEVEL 
-                                 ImpersonationLevel,
-                                 IN TOKEN_TYPE TokenType,  
-                                 OUT PHANDLE NewToken)
+
+NTSTATUS
+STDCALL
+NtDuplicateToken (
+       IN      HANDLE                          ExistingToken, 
+       IN      ACCESS_MASK                     DesiredAccess, 
+       IN      POBJECT_ATTRIBUTES              ObjectAttributes,
+       IN      SECURITY_IMPERSONATION_LEVEL    ImpersonationLevel,
+       IN      TOKEN_TYPE                      TokenType,  
+       OUT     PHANDLE                         NewToken
+       )
 {
-   UNIMPLEMENTED;
+       UNIMPLEMENTED;
 }
 
 
-NTSTATUS STDCALL NtImpersonateClientOfPort(VOID)
+NTSTATUS
+STDCALL
+NtImpersonateClientOfPort(VOID)
 {
-   UNIMPLEMENTED;
+       UNIMPLEMENTED;
 }
 
-NTSTATUS STDCALL NtImpersonateThread(IN HANDLE ThreadHandle,
-                                    IN HANDLE ThreadToImpersonate,
-                                    IN PSECURITY_QUALITY_OF_SERVICE 
-                                         SecurityQualityOfService)
-{
-   UNIMPLEMENTED;
-}
 
 NTSTATUS
 STDCALL
-NtCreateToken(
-       OUT PHANDLE TokenHandle,
-       IN ACCESS_MASK DesiredAccess,
-       IN POBJECT_ATTRIBUTES ObjectAttributes,
-       IN TOKEN_TYPE TokenType,
-       IN PLUID AuthenticationId,
-       IN PLARGE_INTEGER ExpirationTime,
-       IN PTOKEN_USER TokenUser,
-       IN PTOKEN_GROUPS TokenGroups,
-       IN PTOKEN_PRIVILEGES TokenPrivileges,
-       IN PTOKEN_OWNER TokenOwner,
-       IN PTOKEN_PRIMARY_GROUP TokenPrimaryGroup,
-       IN PTOKEN_DEFAULT_DACL TokenDefaultDacl,
-       IN PTOKEN_SOURCE TokenSource
+NtImpersonateThread (
+       IN      HANDLE                          ThreadHandle,
+       IN      HANDLE                          ThreadToImpersonate,
+       IN      PSECURITY_QUALITY_OF_SERVICE    SecurityQualityOfService
        )
 {
-       return ZwCreateToken(TokenHandle,
-       DesiredAccess,
-       ObjectAttributes,
-       TokenType,
-       AuthenticationId,
-       ExpirationTime,
-       TokenUser,
-       TokenGroups,
-       TokenPrivileges,
-       TokenOwner,
-       TokenPrimaryGroup,
-       TokenDefaultDacl,
-       TokenSource
-       );
+       UNIMPLEMENTED;
 }
 
+
 NTSTATUS
 STDCALL
-ZwCreateToken(
+NtCreateToken (
        OUT PHANDLE TokenHandle,
        IN ACCESS_MASK DesiredAccess,
        IN POBJECT_ATTRIBUTES ObjectAttributes,
@@ -240,84 +208,77 @@ ZwCreateToken(
        IN PTOKEN_SOURCE TokenSource
        )
 {
-  UNIMPLEMENTED;
+       UNIMPLEMENTED;
 }
 
 
-NTSTATUS STDCALL NtAllocateLocallyUniqueId(OUT LUID *LocallyUniqueId)
+NTSTATUS
+STDCALL
+NtAllocateLocallyUniqueId (
+       OUT     LUID    * LocallyUniqueId
+       )
 {
-   return(ZwAllocateLocallyUniqueId(LocallyUniqueId));
+       UNIMPLEMENTED;
 }
 
-NTSTATUS STDCALL ZwAllocateLocallyUniqueId(OUT LUID *LocallyUniqueId)
-{
-   UNIMPLEMENTED;
-}
 
-NTSTATUS STDCALL NtAccessCheckAndAuditAlarm(IN PUNICODE_STRING SubsystemName,
-                                           IN PHANDLE ObjectHandle,    
-                                           IN POBJECT_ATTRIBUTES ObjectAttributes,
-                                           IN ACCESS_MASK DesiredAccess,       
-                                           IN PGENERIC_MAPPING GenericMapping, 
-                                           IN BOOLEAN ObjectCreation,  
-                                           OUT PULONG GrantedAccess,   
-                                           OUT PBOOLEAN AccessStatus,  
-                                           OUT PBOOLEAN GenerateOnClose)
+NTSTATUS
+STDCALL
+NtAccessCheckAndAuditAlarm (
+       IN PUNICODE_STRING SubsystemName,
+       IN PHANDLE ObjectHandle,        
+       IN POBJECT_ATTRIBUTES ObjectAttributes,
+       IN ACCESS_MASK DesiredAccess,   
+       IN PGENERIC_MAPPING GenericMapping,     
+       IN BOOLEAN ObjectCreation,      
+       OUT PULONG GrantedAccess,       
+       OUT PBOOLEAN AccessStatus,      
+       OUT PBOOLEAN GenerateOnClose
+       )
 {
    UNIMPLEMENTED;
 }
 
-NTSTATUS STDCALL NtAdjustGroupsToken(IN HANDLE TokenHandle,
-                                    IN BOOLEAN  ResetToDefault,        
-                                    IN PTOKEN_GROUPS  NewState, 
-                                    IN ULONG  BufferLength,    
-                                    OUT PTOKEN_GROUPS  PreviousState OPTIONAL, 
-                                    OUT PULONG  ReturnLength)
+
+NTSTATUS
+STDCALL
+NtAdjustGroupsToken (
+       IN      HANDLE          TokenHandle,
+       IN      BOOLEAN         ResetToDefault, 
+       IN      PTOKEN_GROUPS   NewState, 
+       IN      ULONG           BufferLength,   
+       OUT     PTOKEN_GROUPS   PreviousState           OPTIONAL,       
+       OUT     PULONG          ReturnLength
+       )
 {
    UNIMPLEMENTED;
 }
 
-NTSTATUS STDCALL NtAdjustPrivilegesToken(IN HANDLE  TokenHandle,       
-                                        IN BOOLEAN  DisableAllPrivileges,
-                                        IN PTOKEN_PRIVILEGES  NewState,        
-                                        IN ULONG  BufferLength,        
-                                        OUT PTOKEN_PRIVILEGES  PreviousState,  
-                                        OUT PULONG ReturnLength)
-{
-   return(ZwAdjustPrivilegesToken(TokenHandle,
-                                 DisableAllPrivileges,
-                                 NewState,
-                                 BufferLength,
-                                 PreviousState,
-                                 ReturnLength));
-}
 
-NTSTATUS STDCALL ZwAdjustPrivilegesToken(IN HANDLE TokenHandle,        
+NTSTATUS
+STDCALL
+NtAdjustPrivilegesToken(IN HANDLE  TokenHandle,        
                                         IN BOOLEAN  DisableAllPrivileges,
                                         IN PTOKEN_PRIVILEGES  NewState,        
                                         IN ULONG  BufferLength,        
                                         OUT PTOKEN_PRIVILEGES  PreviousState,  
                                         OUT PULONG ReturnLength)
 {
-   UNIMPLEMENTED;
+       UNIMPLEMENTED;
 }
 
-NTSTATUS STDCALL NtAllocateUuids(PLARGE_INTEGER Time,
-                                PULONG Version, // ???
-                                PULONG ClockCycle)
-{
-   return(ZwAllocateUuids(Time,
-                         Version,
-                         ClockCycle));
-}
-
-NTSTATUS STDCALL ZwAllocateUuids(PLARGE_INTEGER Time,
-                                PULONG Version, // ???
-                                PULONG ClockCycle)
+NTSTATUS
+STDCALL
+NtAllocateUuids (
+       PLARGE_INTEGER  Time,
+       PULONG          Version, // ???
+       PULONG          ClockCycle
+       )
 {
    UNIMPLEMENTED;
 }
 
+
 NTSTATUS STDCALL NtCloseObjectAuditAlarm(IN PUNICODE_STRING SubsystemName,     
                                         IN PVOID HandleId,     
                                         IN BOOLEAN GenerateOnClose)
@@ -333,25 +294,6 @@ NTSTATUS STDCALL NtAccessCheck(IN PSECURITY_DESCRIPTOR SecurityDescriptor,
                               OUT PULONG ReturnLength,
                               OUT PULONG GrantedAccess,
                               OUT PBOOLEAN AccessStatus)
-{
-   return(ZwAccessCheck(SecurityDescriptor,
-                       ClientToken,
-                       DesiredAccess,
-                       GenericMapping,
-                       PrivilegeSet,
-                       ReturnLength,
-                       GrantedAccess,
-                       AccessStatus));
-}
-
-NTSTATUS STDCALL ZwAccessCheck(IN PSECURITY_DESCRIPTOR SecurityDescriptor,
-                              IN HANDLE ClientToken,
-                              IN ACCESS_MASK DesiredAcces,
-                              IN PGENERIC_MAPPING GenericMapping,
-                              OUT PRIVILEGE_SET PrivilegeSet,
-                              OUT PULONG ReturnLength,
-                              OUT PULONG GrantedAccess,
-                              OUT PBOOLEAN AccessStatus)
 {
    UNIMPLEMENTED;
 }
@@ -365,23 +307,6 @@ NtDeleteObjectAuditAlarm (
        IN BOOLEAN GenerateOnClose 
        )
 {
-
-return ZwDeleteObjectAuditAlarm ( 
-       SubsystemName, 
-       HandleId, 
-       GenerateOnClose 
-       );
-}
-
-
-NTSTATUS
-STDCALL
-ZwDeleteObjectAuditAlarm ( 
-       IN PUNICODE_STRING SubsystemName, 
-       IN PVOID HandleId, 
-       IN BOOLEAN GenerateOnClose 
-       )
-{
  UNIMPLEMENTED;
 }
 
index 0ac8fcf..8756beb 100644 (file)
@@ -78,6 +78,8 @@ RC = $(PREFIX)windres
        $(CC) $(CFLAGS) -c $< -o $@
 %.o: %.asm
        $(NASM_CMD) $(NFLAGS) $< -o $@
+%.coff: %.rc
+       $(RC) $< $@
 
 
 RULES_MAK_INCLUDED = 1
index 03a0995..fd3ede4 100644 (file)
@@ -94,6 +94,19 @@ GuiLogin (VOID)
 }
 
 
+/***********************************************************************
+ *     GuiMonitor
+ *     
+ * DESCRIPTION
+ *     Graphical monitor procedure
+ */
+VOID
+GuiMonitor (VOID)
+{
+       /* FIXME: Open Monitor dialog */
+}
+
+
 /***********************************************************************
  *     CuiLogin
  *     
@@ -112,6 +125,89 @@ CuiLogin (VOID)
        fgets(username, 255, stdin);
        printf("Password: ");
        fgets(password, 255, stdin);
+       /*
+        * 
+        */
+       NtCreateProcess(
+               L"\\\\??\\C:\\reactos\\system\\userinit.exe",
+               );
+       /*
+        *      Security issue: buffers are cleared.
+        */
+       NtZeroMemory(username, sizeof username);
+       NtZeroMemory(password, sizeof password);
+}
+
+
+/***********************************************************************
+ *     CuiMonitor
+ *     
+ * DESCRIPTION
+ *     Text mode (console) Monitor procedure
+ */
+VOID
+CuiMonitor (VOID)
+{
+       WCHAR   HostName [64];
+       WCHAR   UserName [64];
+       WCHAR   FormattedDate [64];
+       WCHAR   InputKey = L'\0';
+
+       /* FIXME: query the system to get these info */
+       wcscpy( HostName, L"BACH" );
+       wcscpy( UserName, L"Administrator" );
+
+       /* FIXME: use locale info to format */
+       NtGetSystemtime(
+               );
+
+       /* Print info and Monitor menu */
+       NtDisplayString(L"\
+ReactOS Security:\n\
+\tYou are logged on as %s/%s\n\
+\yLogon date: %s\n\n\
+Use the Task Manager to close an application that is not responding.\n\n\
+1) Lock Workstation\n\
+2) Change Password\n\
+3) Logoff...\n\
+4) Task Manager...\n\
+5) Shut Down...\n\
+6) Cancel\n\n? ",
+               HostName,
+               UserName,
+               FormattedDate
+               );
+       while (TRUE)
+       {
+               /* FIXME: get a char and perform the requested action */
+               switch (InputKey)
+               {
+               case L'1':
+                       DisplayString(L"Workstation locked...\n");
+                       return;
+               case L'2':
+                       DisplayString(L"Changing Password:\n");
+                       return;
+               case L'3':
+                       DisplayString(L"Logging off...\n");
+                       return;
+               case L'4':
+                       DisplayString(L"Task Manager:\n");
+                       return;
+               case L'5':
+                       DisplayString(L"Shutting Down:\n");
+                       DisplayString(L"1) Shutdown\n");
+                       DisplayString(L"2) Restart\n");
+                       DisplayString(L"3) Logoff\n");
+                       DisplayString(L"4) Cancel\n");
+                       return;
+               case 27L: /* ESC */
+               case L'6':
+                       return;
+               default:
+                       DisplayString(L"Invalid key (1-6).\n");
+               }
+       }
 }
 
 
@@ -155,11 +251,20 @@ NtProcessStartup( PSTARTUP_ARGUMENT StartupArgument )
                        );
                /*
                 * If there is no local session, begin
-                * the login procedure; otherwise print
-                * display
+                * the logon procedure; otherwise open
+                * the monitor dialog.
                 */
                if (TRUE == HasSystemActiveSession())
                {
+                       /* MONITOR */
+                       if (TRUE == HasSystemGui())
+                       {
+                               /* GUI active: monitor in graphical mode */
+                               GuiMonitor();
+                               continue;
+                       }
+                       /* No GUI: monitor in text mode */
+                       CuiMonitor();
                        continue;
                }
                /* LOGON */