fixes
authorEmanuele Aliberti <ea@iol.it>
Sat, 17 Jul 1999 23:10:31 +0000 (23:10 +0000)
committerEmanuele Aliberti <ea@iol.it>
Sat, 17 Jul 1999 23:10:31 +0000 (23:10 +0000)
svn path=/trunk/; revision=595

69 files changed:
reactos/apps/tests/lpc/conport.c
reactos/apps/tests/lpc/creport.c
reactos/apps/tests/lpc/dumpinfo.c
reactos/apps/tests/lpc/dumpinfo.h
reactos/apps/tests/lpc/makefile
reactos/include/ddk/ccfuncs.h
reactos/include/ddk/defines.h
reactos/include/ddk/iofuncs.h
reactos/include/ddk/ntifs.h [deleted file]
reactos/include/ddk/rtl.h
reactos/include/ddk/zw.h
reactos/include/reactos/resource.h
reactos/lib/advapi32/advapi32.def
reactos/lib/advapi32/advapi32.edf [new file with mode: 0644]
reactos/lib/advapi32/makefile
reactos/lib/advapi32/misc/shutdown.c
reactos/lib/advapi32/reg/reg.c
reactos/lib/fmifs/fmifs.def
reactos/lib/fmifs/fmifs.edf [new file with mode: 0644]
reactos/lib/fmifs/makefile
reactos/lib/gdi32/gdi32.def
reactos/lib/gdi32/gdi32.edf [new file with mode: 0644]
reactos/lib/gdi32/makefile
reactos/lib/kernel32/kernel32.def
reactos/lib/kernel32/kernel32.edf [new file with mode: 0644]
reactos/lib/kernel32/makefile
reactos/lib/kernel32/misc/atom.c
reactos/lib/kernel32/misc/stubs.c
reactos/lib/ntdll/def/ntdll.def
reactos/lib/ntdll/def/ntdll.edf [new file with mode: 0644]
reactos/lib/ntdll/ldr/utils.c
reactos/lib/ntdll/makefile
reactos/lib/ntdll/rtl/unicode.c
reactos/lib/user32/makefile_rex
reactos/lib/user32/user32.def
reactos/lib/user32/user32.edf [new file with mode: 0644]
reactos/makefile.dos [new file with mode: 0644]
reactos/ntoskrnl/ldr/init.c
reactos/ntoskrnl/ldr/loader.c
reactos/ntoskrnl/ldr/pedump.c
reactos/ntoskrnl/ldr/syspath.c [new file with mode: 0644]
reactos/ntoskrnl/ldr/syspath.h [new file with mode: 0644]
reactos/ntoskrnl/makefile_rex
reactos/ntoskrnl/nt/misc.c
reactos/ntoskrnl/nt/port.c
reactos/ntoskrnl/ntoskrnl.def
reactos/ntoskrnl/ntoskrnl.edf [new file with mode: 0644]
reactos/rules.mak
reactos/services/lsass/init.c [new file with mode: 0644]
reactos/services/lsass/lsasrv.def [new file with mode: 0644]
reactos/services/lsass/lsass.c [new file with mode: 0644]
reactos/services/lsass/lsass.rc [new file with mode: 0644]
reactos/services/lsass/makefile [new file with mode: 0644]
reactos/services/winlogon/init.c
reactos/services/winlogon/winlogon.c
reactos/subsys/csrss/api.h
reactos/subsys/csrss/api/process.c
reactos/subsys/csrss/csrss.c
reactos/subsys/csrss/init.c
reactos/subsys/csrss/lpcstub.c
reactos/subsys/psxss/api.c [new file with mode: 0644]
reactos/subsys/psxss/api/process.c [new file with mode: 0644]
reactos/subsys/psxss/init.c [new file with mode: 0644]
reactos/subsys/psxss/makefile [new file with mode: 0644]
reactos/subsys/psxss/psxss.c [new file with mode: 0644]
reactos/subsys/psxss/psxss.rc [new file with mode: 0644]
reactos/subsys/psxss/sbapi.c [new file with mode: 0644]
reactos/subsys/win32k/objects/brush.c
reactos/subsys/win32k/win32k.def

index 4f0b163..b638456 100644 (file)
@@ -1,4 +1,4 @@
-/* $Id: conport.c,v 1.4 1999/07/04 22:04:31 ea Exp $
+/* $Id: conport.c,v 1.5 1999/07/17 23:10:12 ea Exp $
  *
  * reactos/apps/lpc/conport.c
  *
@@ -119,7 +119,7 @@ TryConnectPort(char *port_name)
        if (Status == STATUS_SUCCESS)
        {
                DumpInfo(
-                       port_name_save,
+                       Name,
                        Status,
                        "connected",
                        Port
index c90a6c9..f0a3541 100644 (file)
@@ -1,4 +1,4 @@
-/* $Id: creport.c,v 1.1 1999/07/04 22:04:31 ea Exp $
+/* $Id: creport.c,v 1.2 1999/07/17 23:10:12 ea Exp $
  *
  * reactos/apps/lpc/creport.c
  *
@@ -106,7 +106,7 @@ TryCreatePort(char *port_name)
        if (Status == STATUS_SUCCESS)
        {
                DumpInfo(
-                       port_name_save,
+                       Name,
                        Status,
                        "created",
                        Port
index c8fc9df..fb33857 100644 (file)
@@ -1,4 +1,4 @@
-/* $Id: dumpinfo.c,v 1.1 1999/07/04 22:04:31 ea Exp $
+/* $Id: dumpinfo.c,v 1.2 1999/07/17 23:10:12 ea Exp $
  *
  * reactos/apps/lpc/dumpinfo.c
  *
@@ -11,6 +11,8 @@
  * 19990704 (EA)
  *     Added code to find the basic information buffer size
  *     for the LPC port object.
+ * 19990710 (EA)
+ * 
  */
 #include <windows.h>
 #include <stdio.h>
@@ -31,6 +33,17 @@ NTSTATUS
        OUT     PULONG  ResultLength
        );
 
+extern
+NTSTATUS
+(STDCALL * QueryInformationPort)(
+       IN      HANDLE  PortHandle,
+       IN      CINT    PortInformationClass,   /* guess */
+       OUT     PVOID   PortInformation,        /* guess */
+       IN      ULONG   PortInformationLength,  /* guess */
+       OUT     PULONG  ReturnLength            /* guess */
+       );
+
+
 /*
 static
 VOID
@@ -56,16 +69,20 @@ DumpBuffer(
 
 VOID
 DumpInfo (
-       LPCSTR          Name,
+       LPCWSTR         Name,
        NTSTATUS        Status,
-       LPCSTR          Comment,
+       LPCWSTR         Comment,
        HANDLE          Port
        )
 {
        BYTE                    ObjectInformation [BUF_SIZE] = {0};
        ULONG                   ResultLength;
        
-       printf("Port \"%s\" %s:\n",Name,Comment);
+       wprintf(
+               L"Port \"%s\" %s:\n",
+               Name,
+               Comment
+               );
 
        printf("\tStatus = %08X\n",Status);
        printf("\tPort   = %08X\n\n",Port);
@@ -191,6 +208,31 @@ FIXME: why this always raise an access violation exception?
        {
                printf("\tStatus = %08X\n",Status);
        }
+//---
+       printf("Port Information:\n");
+/*     Status = QueryInformationPort(
+                       Port,
+                       1, /* info class * /
+                       ObjectInformation,
+                       sizeof ObjectInformation,
+                       & ResultLength
+                       );
+       if (Status == STATUS_SUCCESS)
+       {
+               DWORD * i = ObjectInformation;
+               int j = 0;
+
+               while (j < ResultLength / sizeof (DWORD))
+               {
+                       printf("\t%08X\n",i[j]);
+                       ++j;
+               }
+       }
+       else
+       {
+               printf("\tStatus = %08X\n",Status);
+       }
+*/
 }
 
 
index 7a62ccc..51e7873 100644 (file)
@@ -1,8 +1,8 @@
 VOID
 DumpInfo (
-       LPCSTR          Name,
+       LPCWSTR         Name,
        NTSTATUS        Status,
-       LPCSTR          Comment,
+       LPCWSTR         Comment,
        HANDLE          Port
        );
 
index ff510b5..f840e6b 100644 (file)
@@ -1,4 +1,4 @@
-# $Id: makefile,v 1.2 1999/07/04 22:04:31 ea Exp $
+# $Id: makefile,v 1.3 1999/07/17 23:10:12 ea Exp $
 # ReactOS Operating System
 # LPC test
 CC=gcc
@@ -6,7 +6,7 @@ LD=ld
 CFLAGS=-I../../include
 
 
-all: conport.exe creport.exe
+all: conport.exe creport.exe simpless.exe
 
 conport.exe: conport.o dumpinfo.o
        $(CC) -o conport conport.o dumpinfo.o
@@ -14,6 +14,9 @@ conport.exe: conport.o dumpinfo.o
 creport.exe: creport.o dumpinfo.o.
        $(CC) -o creport creport.o dumpinfo.o 
 
+simpless.exe: simpless.o dumpinfo.o.
+       $(CC) -o simpless simpless.o dumpinfo.o 
+
 %.o: %.c
        $(CC) $(CFLAGS) -c $< -o $@
 
index e1aef36..57f16da 100644 (file)
@@ -1,3 +1,6 @@
+#ifndef _DDK_DEFINES_H
+#define _DDK_DEFINES_H
+
 /* GENERAL DEFINITIONS ****************************************************/
 
 #include <internal/hal/irq.h>
@@ -234,3 +237,5 @@ enum
 #define DISPATCH_LEVEL               (3)
 #define FIRST_DEVICE_SPECIFIC_LEVEL  (4)
 #define HIGH_LEVEL (FIRST_DEVICE_SPECIFIC_LEVEL + NR_DEVICE_SPECIFIC_LEVELS)
+
+#endif /* ndef _DDK_DEFINES_H */
index aca389d..dd77649 100644 (file)
@@ -1,8 +1,11 @@
 /* IO MANAGER ***************************************************************/
 
-BOOLEAN IoRaiseInformationalHardError(NTSTATUS ErrorStatus,
-                                     PUNICODE_STRING String,
-                                     PKTHREAD Thread);
+BOOLEAN
+IoRaiseInformationalHardError (
+       NTSTATUS        ErrorStatus,
+       PUNICODE_STRING String,
+       PKTHREAD        Thread
+       );
 
 
 /*
@@ -20,12 +23,19 @@ BOOLEAN IoRaiseInformationalHardError(NTSTATUS ErrorStatus,
  * ARGUMENTS:
  *          Irpl = Variable to store the current IRQ level 
  */
-VOID IoAcquireCancelSpinLock(PKIRQL Irpl);
-
-typedef IO_ALLOCATION_ACTION (*PDRIVER_CONTROL)(PDEVICE_OBJECT DeviceObject,
-                                       PIRP irp,
-                                       PVOID MapRegisterBase,
-                                       PVOID Context);
+VOID
+IoAcquireCancelSpinLock (
+       PKIRQL  Irpl
+       );
+
+typedef
+IO_ALLOCATION_ACTION
+(*PDRIVER_CONTROL) (
+       PDEVICE_OBJECT  DeviceObject,
+       PIRP            irp,
+       PVOID           MapRegisterBase,
+       PVOID           Context
+       );
 
 /*
  * FUNCTION: Allocates an adaptor object for a DMA operation on the target
@@ -40,11 +50,14 @@ typedef IO_ALLOCATION_ACTION (*PDRIVER_CONTROL)(PDEVICE_OBJECT DeviceObject,
  *                   execution routine
  * RETURNS: Success or failure code
  */
-NTSTATUS IoAllocateAdapterChannel(PADAPTER_OBJECT AdaperObject,
-                                 PDEVICE_OBJECT DeviceObject,
-                                 ULONG NumberOfMapRegisters,
-                                 PDRIVER_CONTROL ExecutionRoutine,
-                                 PVOID Context);
+NTSTATUS
+IoAllocateAdapterChannel (
+       PADAPTER_OBJECT AdaperObject,
+       PDEVICE_OBJECT  DeviceObject,
+       ULONG           NumberOfMapRegisters,
+       PDRIVER_CONTROL ExecutionRoutine,
+       PVOID           Context
+       );
 
 /*
  * FUNCTION: Sets up a call to a driver supplied controller object as 
@@ -55,10 +68,13 @@ NTSTATUS IoAllocateAdapterChannel(PADAPTER_OBJECT AdaperObject,
  *        ExecutionObject = Routine to be called
  *        Context = Driver determined context to be based to the routine
  */
-VOID IoAllocateController(PCONTROLLER_OBJECT ControllerObject,
-                         PDEVICE_OBJECT DeviceObject,
-                         PDRIVER_CONTROL ExecutionRoutine,
-                         PVOID Context);
+VOID
+IoAllocateController (
+       PCONTROLLER_OBJECT      ControllerObject,
+       PDEVICE_OBJECT          DeviceObject,
+       PDRIVER_CONTROL         ExecutionRoutine,
+       PVOID                   Context
+       );
 
 /*
  * FUNCTION: Allocates an error log packet
@@ -68,7 +84,11 @@ VOID IoAllocateController(PCONTROLLER_OBJECT ControllerObject,
  * RETURNS: On success a pointer to the allocated packet
  *          On failure returns NULL
  */
-PVOID IoAllocateErrorLogEntry(PVOID IoObject, UCHAR EntrySize);
+PVOID
+IoAllocateErrorLogEntry (
+       PVOID   IoObject,
+       UCHAR   EntrySize
+       );
 
 /*
  * FUNCTION: Allocates an IRP
@@ -78,7 +98,11 @@ PVOID IoAllocateErrorLogEntry(PVOID IoObject, UCHAR EntrySize);
  * RETURNS: On success the allocated IRP
  *          On failure NULL
  */
-PIRP IoAllocateIrp(CCHAR StackSize, BOOLEAN ChargeQuota);
+PIRP
+IoAllocateIrp (
+       CCHAR   StackSize,
+       BOOLEAN ChargeQuota
+       );
 
 /*
  * FUNCTION: Allocates an MDL large enough to map the supplied buffer
@@ -91,9 +115,14 @@ PIRP IoAllocateIrp(CCHAR StackSize, BOOLEAN ChargeQuota);
  * RETURNS: On the success the allocated MDL
  *          On failure NULL
  */
-PMDL IoAllocateMdl(PVOID VirtualAddress, ULONG Length, 
-                  BOOLEAN SecondaryBuffer, BOOLEAN ChargeQuota,
-                  PIRP Irp);
+PMDL
+IoAllocateMdl (
+       PVOID   VirtualAddress,
+       ULONG   Length, 
+       BOOLEAN SecondaryBuffer,
+       BOOLEAN ChargeQuota,
+       PIRP    Irp
+       );
 
 /*
  * FUNCTION: Creates a symbolic link between the ARC name of a physical
@@ -102,7 +131,11 @@ PMDL IoAllocateMdl(PVOID VirtualAddress, ULONG Length,
  *        ArcName = ARC name of the device
  *        DeviceName = Name of the device object
  */
-VOID IoAssignArcName(PUNICODE_STRING ArcName, PUNICODE_STRING DeviceName);
+VOID
+IoAssignArcName (
+       PUNICODE_STRING ArcName,
+       PUNICODE_STRING DeviceName
+       );
 
 enum
 {
@@ -119,12 +152,15 @@ enum
  *        RequestedResources = List of resources
  * RETURNS: 
  */
-NTSTATUS IoAssignResources(PUNICODE_STRING RegistryPath,
-                          PUNICODE_STRING DriverClassName,
-                          PDRIVER_OBJECT DriverObject,
-                          PDEVICE_OBJECT DeviceObject,
-                          PIO_RESOURCE_REQUIREMENTS_LIST RequestedResources,
-                          PCM_RESOURCE_LIST* AllocatedResources);
+NTSTATUS
+IoAssignResources (
+       PUNICODE_STRING                 RegistryPath,
+       PUNICODE_STRING                 DriverClassName,
+       PDRIVER_OBJECT                  DriverObject,
+       PDEVICE_OBJECT                  DeviceObject,
+       PIO_RESOURCE_REQUIREMENTS_LIST  RequestedResources,
+       PCM_RESOURCE_LIST               * AllocatedResources
+       );
 
 /*
  * FUNCTION: Attaches the callers device object to a named target device
@@ -135,9 +171,12 @@ NTSTATUS IoAssignResources(PUNICODE_STRING RegistryPath,
  *                         a pointer to the target device
  * RETURNS: Success or failure code
  */
-NTSTATUS IoAttachDevice(PDEVICE_OBJECT SourceDevice,
-                       PUNICODE_STRING TargetDevice,
-                       PDEVICE_OBJECT* AttachedDevice);
+NTSTATUS
+IoAttachDevice (
+       PDEVICE_OBJECT  SourceDevice,
+       PUNICODE_STRING TargetDevice,
+       PDEVICE_OBJECT  * AttachedDevice
+       );
 
 /*
  * FUNCTION: Obsolete
@@ -146,8 +185,11 @@ NTSTATUS IoAttachDevice(PDEVICE_OBJECT SourceDevice,
  *       TargetDevice = device to be attached to
  * RETURNS: Success or failure code
  */
-NTSTATUS IoAttachDeviceByPointer(PDEVICE_OBJECT SourceDevice,
-                                PDEVICE_OBJECT TargetDevice);
+NTSTATUS
+IoAttachDeviceByPointer (
+       PDEVICE_OBJECT  SourceDevice,
+       PDEVICE_OBJECT  TargetDevice
+       );
 
 /*
  * FUNCTION: Attaches the callers device to the highest device in the chain
@@ -157,8 +199,11 @@ NTSTATUS IoAttachDeviceByPointer(PDEVICE_OBJECT SourceDevice,
  * RETURNS: On success the previously highest device
  *          On failure NULL
  */
-PDEVICE_OBJECT IoAttachDeviceToDeviceStack(PDEVICE_OBJECT SourceDevice,
-                                          PDEVICE_OBJECT TargetDevice);
+PDEVICE_OBJECT
+IoAttachDeviceToDeviceStack (
+       PDEVICE_OBJECT  SourceDevice,
+       PDEVICE_OBJECT  TargetDevice
+       );
 
 /*
  * FUNCTION: Builds a irp to be sent to lower level drivers
@@ -172,12 +217,15 @@ PDEVICE_OBJECT IoAttachDeviceToDeviceStack(PDEVICE_OBJECT SourceDevice,
  * RETURNS: On success the IRP allocated
  *          On failure NULL
  */
-PIRP IoBuildAsynchronousFsdRequest(ULONG MajorFunction,
-                                  PDEVICE_OBJECT DeviceObject,
-                                  PVOID Buffer,
-                                  ULONG Length,
-                                  PLARGE_INTEGER StartingOffset,
-                                  PIO_STATUS_BLOCK IoStatusBlock);
+PIRP
+IoBuildAsynchronousFsdRequest (
+       ULONG                   MajorFunction,
+       PDEVICE_OBJECT          DeviceObject,
+       PVOID                   Buffer,
+       ULONG                   Length,
+       PLARGE_INTEGER          StartingOffset,
+       PIO_STATUS_BLOCK        IoStatusBlock
+       );
 
 /*
  * FUNCTION: Allocates and sets up an IRP for a device control request
@@ -195,42 +243,61 @@ PIRP IoBuildAsynchronousFsdRequest(ULONG MajorFunction,
  *                        completed
  * RETURNS: Returns the IRP created
  */
-PIRP IoBuildDeviceIoControlRequest(ULONG IoControlCode,
-                                  PDEVICE_OBJECT DeviceObject,
-                                  PVOID InputBuffer,
-                                  ULONG InputBufferLength,
-                                  PVOID OutputBuffer,
-                                  ULONG OutputBufferLength,
-                                  BOOLEAN InternalDeviceIoControl,
-                                  PKEVENT Event,
-                                  PIO_STATUS_BLOCK IoStatusBlock);
+PIRP
+IoBuildDeviceIoControlRequest (
+       ULONG                   IoControlCode,
+       PDEVICE_OBJECT          DeviceObject,
+       PVOID                   InputBuffer,
+       ULONG                   InputBufferLength,
+       PVOID                   OutputBuffer,
+       ULONG                   OutputBufferLength,
+       BOOLEAN                 InternalDeviceIoControl,
+       PKEVENT                 Event,
+       PIO_STATUS_BLOCK        IoStatusBlock
+       );
    
 
-VOID IoBuildPartialMdl(PMDL SourceMdl,
-                      PMDL TargetMdl,
-                      PVOID VirtualAddress,
-                      ULONG Length);
-
-PIRP IoBuildSynchronousFsdRequest(ULONG MajorFunction,
-                                 PDEVICE_OBJECT DeviceObject,
-                                 PVOID Buffer,
-                                 ULONG Length,
-                                 PLARGE_INTEGER StartingOffset,
-                                 PKEVENT Event,
-                                 PIO_STATUS_BLOCK IoStatusBlock);
+VOID
+IoBuildPartialMdl (
+       PMDL    SourceMdl,
+       PMDL    TargetMdl,
+       PVOID   VirtualAddress,
+       ULONG   Length
+       );
+
+PIRP
+IoBuildSynchronousFsdRequest (
+       ULONG                   MajorFunction,
+       PDEVICE_OBJECT          DeviceObject,
+       PVOID                   Buffer,
+       ULONG                   Length,
+       PLARGE_INTEGER          StartingOffset,
+       PKEVENT                 Event,
+       PIO_STATUS_BLOCK        IoStatusBlock
+       );
 
 /*
  * FUNCTION: Sends an irp to the next lower driver
  */
-NTSTATUS IoCallDriver(PDEVICE_OBJECT DeviceObject, PIRP irp);
-
-BOOLEAN IoCancelIrp(PIRP Irp);
-
-NTSTATUS IoCheckShareAccess(ACCESS_MASK DesiredAccess,
-                           ULONG DesiredShareAccess,
-                           PFILE_OBJECT FileObject,
-                           PSHARE_ACCESS ShareAccess,
-                           BOOLEAN Update);
+NTSTATUS
+IoCallDriver (
+       PDEVICE_OBJECT  DeviceObject,
+       PIRP            irp
+       );
+
+BOOLEAN
+IoCancelIrp (
+       PIRP    Irp
+       );
+
+NTSTATUS
+IoCheckShareAccess (
+       ACCESS_MASK     DesiredAccess,
+       ULONG           DesiredShareAccess,
+       PFILE_OBJECT    FileObject,
+       PSHARE_ACCESS   ShareAccess,
+       BOOLEAN         Update
+       );
 
 /*
  * FUNCTION: Indicates the caller has finished all processing for a given
@@ -240,21 +307,31 @@ NTSTATUS IoCheckShareAccess(ACCESS_MASK DesiredAccess,
  *         PriorityBoost = Increment by which to boost the priority of the
  *                         thread making the request
  */
-VOID IoCompleteRequest(PIRP Irp, CCHAR PriorityBoost);
-
-NTSTATUS IoConnectInterrupt(PKINTERRUPT* InterruptObject,
-                           PKSERVICE_ROUTINE ServiceRoutine,
-                           PVOID ServiceContext,
-                           PKSPIN_LOCK SpinLock,
-                           ULONG Vector,
-                           KIRQL Irql,
-                           KIRQL SynchronizeIrql,
-                           KINTERRUPT_MODE InterruptMode,
-                           BOOLEAN ShareVector,
-                           KAFFINITY ProcessorEnableMask,
-                           BOOLEAN FloatingSave);
-
-PCONTROLLER_OBJECT IoCreateController(ULONG Size);
+VOID
+IoCompleteRequest (
+       PIRP    Irp,
+       CCHAR   PriorityBoost
+       );
+
+NTSTATUS
+IoConnectInterrupt (
+       PKINTERRUPT             * InterruptObject,
+       PKSERVICE_ROUTINE       ServiceRoutine,
+       PVOID                   ServiceContext,
+       PKSPIN_LOCK             SpinLock,
+       ULONG                   Vector,
+       KIRQL                   Irql,
+       KIRQL                   SynchronizeIrql,
+       KINTERRUPT_MODE         InterruptMode,
+       BOOLEAN                 ShareVector,
+       KAFFINITY               ProcessorEnableMask,
+       BOOLEAN                 FloatingSave
+       );
+
+PCONTROLLER_OBJECT
+IoCreateController (
+       ULONG   Size
+       );
 
 /*
  * FUNCTION: Allocates memory for and intializes a device object for use for
@@ -274,86 +351,167 @@ PCONTROLLER_OBJECT IoCreateController(ULONG Size);
  *                        if the call succeeded
  * NOTES: See the DDK documentation for more information        
  */
-NTSTATUS IoCreateDevice(PDRIVER_OBJECT DriverObject,
-                       ULONG DeviceExtensionSize,
-                       PUNICODE_STRING DeviceName,
-                       DEVICE_TYPE DeviceType,
-                       ULONG DeviceCharacteristics,
-                       BOOLEAN Exclusive,
-                        PDEVICE_OBJECT* DeviceObject);
-
-
-PKEVENT IoCreateNotificationEvent(PUNICODE_STRING EventName,
-                                 PHANDLE EventHandle);
-
-NTSTATUS IoCreateSymbolicLink(PUNICODE_STRING SymbolicLinkName,
-                             PUNICODE_STRING DeviceName);
-
-PKEVENT IoCreateSynchronizationEvent(PUNICODE_STRING EventName,
-                                    PHANDLE EventHandle);
-
-NTSTATUS IoCreateUnprotectedSymbolicLink(PUNICODE_STRING SymbolicLinkName,
-                                        PUNICODE_STRING DeviceName);
-
-
-VOID IoDeassignArcName(PUNICODE_STRING ArcName);
-
-VOID IoDeleteController(PCONTROLLER_OBJECT ControllerObject);
-
-VOID IoDeleteDevice(PDEVICE_OBJECT DeviceObject);
-
-NTSTATUS IoDeleteSymbolicLink(PUNICODE_STRING SymbolicLinkName);
-
-VOID IoDetachDevice(PDEVICE_OBJECT TargetDevice);
-
-VOID IoDisconnectInterrupt(PKINTERRUPT InterruptObject);
-
-BOOLEAN IoFlushAdapterBuffers(PADAPTER_OBJECT AdapterObject,
-                             PMDL Mdl,
-                             PVOID MapRegisterBase,
-                             PVOID CurrentVa,
-                             ULONG Length,
-                             BOOLEAN WriteToDevice);
-
-VOID IoFreeAdapterChannel(PADAPTER_OBJECT AdapterObject);
-VOID IoFreeController(PCONTROLLER_OBJECT ControllerObject);
-VOID IoFreeIrp(PIRP Irp);
-VOID IoFreeMapRegisters(PADAPTER_OBJECT AdapterObject,
-                       PVOID MapRegisterBase,
-                       ULONG NumberOfMapRegisters);
-VOID IoFreeMdl(PMDL Mdl);
-PCONFIGURATION_INFORMATION IoGetConfigurationInformation(VOID);
+NTSTATUS
+IoCreateDevice (
+       PDRIVER_OBJECT  DriverObject,
+       ULONG           DeviceExtensionSize,
+       PUNICODE_STRING DeviceName,
+       DEVICE_TYPE     DeviceType,
+       ULONG           DeviceCharacteristics,
+       BOOLEAN         Exclusive,
+       PDEVICE_OBJECT  * DeviceObject
+       );
+
+
+PKEVENT
+IoCreateNotificationEvent (
+       PUNICODE_STRING EventName,
+       PHANDLE EventHandle
+       );
+
+NTSTATUS
+IoCreateSymbolicLink (
+       PUNICODE_STRING SymbolicLinkName,
+       PUNICODE_STRING DeviceName
+       );
+
+PKEVENT
+IoCreateSynchronizationEvent (
+       PUNICODE_STRING EventName,
+       PHANDLE EventHandle
+       );
+
+NTSTATUS
+IoCreateUnprotectedSymbolicLink (
+       PUNICODE_STRING SymbolicLinkName,
+       PUNICODE_STRING DeviceName
+       );
+
+
+VOID
+IoDeassignArcName (
+       PUNICODE_STRING ArcName
+       );
+
+VOID
+IoDeleteController (
+       PCONTROLLER_OBJECT      ControllerObject
+       );
+
+VOID
+IoDeleteDevice (
+       PDEVICE_OBJECT  DeviceObject
+       );
+
+NTSTATUS
+IoDeleteSymbolicLink (
+       PUNICODE_STRING SymbolicLinkName
+       );
+
+VOID
+IoDetachDevice (
+       PDEVICE_OBJECT  TargetDevice
+       );
+
+VOID
+IoDisconnectInterrupt (
+       PKINTERRUPT     InterruptObject
+       );
+
+BOOLEAN
+IoFlushAdapterBuffers (
+       PADAPTER_OBJECT AdapterObject,
+       PMDL            Mdl,
+       PVOID           MapRegisterBase,
+       PVOID           CurrentVa,
+       ULONG           Length,
+       BOOLEAN         WriteToDevice
+       );
+
+VOID
+IoFreeAdapterChannel (
+       PADAPTER_OBJECT AdapterObject
+       );
+
+VOID
+IoFreeController (
+       PCONTROLLER_OBJECT      ControllerObject
+       );
+
+VOID
+IoFreeIrp (
+       PIRP    Irp
+       );
+
+VOID
+IoFreeMapRegisters (
+       PADAPTER_OBJECT AdapterObject,
+       PVOID           MapRegisterBase,
+       ULONG           NumberOfMapRegisters
+       );
+
+VOID
+IoFreeMdl (
+       PMDL    Mdl
+       );
+
+PCONFIGURATION_INFORMATION
+IoGetConfigurationInformation (VOID);
 
 
 /*
  * FUNCTION: Returns a pointer to the callers stack location in the irp 
  */
-PIO_STACK_LOCATION IoGetCurrentIrpStackLocation(IRP* irp);
-
-struct _EPROCESS* IoGetCurrentProcess(VOID);
-
-NTSTATUS IoGetDeviceObjectPointer(PUNICODE_STRING ObjectName,
-                                 ACCESS_MASK DesiredAccess,
-                                 PFILE_OBJECT* FileObject,
-                                 PDEVICE_OBJECT* DeviceObject);
-
-PDEVICE_OBJECT IoGetDeviceToVerify(PETHREAD Thread);
-
-PGENERIC_MAPPING IoGetFileObjectGenericMapping(VOID);
-
-ULONG IoGetFunctionCodeFromCtlCode(ULONG ControlCode);
-
-PVOID IoGetInitialStack(VOID);
+PIO_STACK_LOCATION
+IoGetCurrentIrpStackLocation (
+       IRP     * irp
+       );
+
+struct _EPROCESS *
+IoGetCurrentProcess (VOID);
+
+NTSTATUS
+IoGetDeviceObjectPointer (
+       PUNICODE_STRING ObjectName,
+       ACCESS_MASK     DesiredAccess,
+       PFILE_OBJECT    * FileObject,
+       PDEVICE_OBJECT  * DeviceObject
+       );
+
+PDEVICE_OBJECT
+IoGetDeviceToVerify (
+       PETHREAD        Thread
+       );
+
+PGENERIC_MAPPING
+IoGetFileObjectGenericMapping (VOID);
+
+ULONG
+IoGetFunctionCodeFromCtlCode (
+       ULONG   ControlCode
+       );
+
+PVOID
+IoGetInitialStack (VOID);
 
 /*
  * FUNCTION:  
  */
-PIO_STACK_LOCATION IoGetNextIrpStackLocation(IRP* irp);
-
-PDEVICE_OBJECT IoGetRelatedDeviceObject(PFILE_OBJECT FileObject);
-
-VOID IoInitializeDpcRequest(PDEVICE_OBJECT DeviceObject,
-                           PIO_DPC_ROUTINE DpcRoutine);
+PIO_STACK_LOCATION
+IoGetNextIrpStackLocation (
+       IRP     * irp
+       );
+
+PDEVICE_OBJECT
+IoGetRelatedDeviceObject (
+       PFILE_OBJECT    FileObject
+       );
+
+VOID
+IoInitializeDpcRequest (
+       PDEVICE_OBJECT  DeviceObject,
+       PIO_DPC_ROUTINE DpcRoutine
+       );
 
 /*
  * FUNCTION: Initalizes an irp allocated by the caller
@@ -362,24 +520,45 @@ VOID IoInitializeDpcRequest(PDEVICE_OBJECT DeviceObject,
  *          PacketSize = Size in bytes of the IRP
  *          StackSize = Number of stack locations in the IRP
  */
-VOID IoInitializeIrp(PIRP Irp, USHORT PacketSize, CCHAR StackSize);
-
-NTSTATUS IoInitializeTimer(PDEVICE_OBJECT DeviceObject,
-                          PIO_TIMER_ROUTINE TimerRoutine,
-                          PVOID Context);
-
-BOOLEAN IoIsErrorUserInduced(NTSTATUS Status);
-
-BOOLEAN IoIsTotalDeviceFailure(NTSTATUS Status);
-
-PIRP IoMakeAssociatedIrp(PIRP Irp, CCHAR StackSize);
-
-PHYSICAL_ADDRESS IoMapTransfer(PADAPTER_OBJECT AdapterObject,
-                              PMDL Mdl,
-                              PVOID MapRegisterBase,
-                              PVOID CurrentVa,
-                              PULONG Length,
-                              BOOLEAN WriteToDevice);
+VOID
+IoInitializeIrp (
+       PIRP    Irp,
+       USHORT  PacketSize,
+       CCHAR   StackSize
+       );
+
+NTSTATUS
+IoInitializeTimer (
+       PDEVICE_OBJECT          DeviceObject,
+       PIO_TIMER_ROUTINE       TimerRoutine,
+       PVOID                   Context
+       );
+
+BOOLEAN
+IoIsErrorUserInduced (
+       NTSTATUS        Status
+       );
+
+BOOLEAN
+IoIsTotalDeviceFailure (
+       NTSTATUS        Status
+       );
+
+PIRP
+IoMakeAssociatedIrp (
+       PIRP    Irp,
+       CCHAR   StackSize
+       );
+
+PHYSICAL_ADDRESS
+IoMapTransfer (
+       PADAPTER_OBJECT AdapterObject,
+       PMDL            Mdl,
+       PVOID           MapRegisterBase,
+       PVOID           CurrentVa,
+       PULONG          Length,
+       BOOLEAN         WriteToDevice
+       );
 
 /*
  * FUNCTION: Marks an IRP as pending
@@ -389,75 +568,130 @@ PHYSICAL_ADDRESS IoMapTransfer(PADAPTER_OBJECT AdapterObject,
  * must mark it pending otherwise the I/O manager will complete it on
  * return from the dispatch routine.
  */
-VOID IoMarkIrpPending(PIRP Irp);
-
-NTSTATUS IoQueryDeviceDescription(PINTERFACE_TYPE BusType,
-                                 PULONG BusNumber,
-                                 PCONFIGURATION_TYPE ControllerType,
-                                 PULONG ControllerNumber,
-                                 PCONFIGURATION_TYPE PeripheralType,
-                                 PULONG PeripheralNumber,
-                                 PIO_QUERY_DEVICE_ROUTINE CalloutRoutine,
-                                 PVOID Context);
-
-VOID IoRaiseHardError(PIRP Irp, PVPB Vpb, PDEVICE_OBJECT RealDeviceObject);
-
-BOOLEAN IoRaiseHardInformationalError(NTSTATUS ErrorStatus,
-                                     PUNICODE_STRING String,
-                                     PKTHREAD Thread);
-
-NTSTATUS IoReadPartitionTable(PDEVICE_OBJECT DeviceObject,
-                             ULONG SectorSize,
-                             BOOLEAN ReturnedRecognizedPartitions,
-                             struct _DRIVE_LAYOUT_INFORMATION** PBuffer);
-
-VOID IoRegisterDriverReinitialization(PDRIVER_OBJECT DriverObject,
-                                     PDRIVER_REINITIALIZE ReinitRoutine,
-                                     PVOID Context);
-
-NTSTATUS IoRegisterShutdownNotification(PDEVICE_OBJECT DeviceObject);
-
-VOID IoReleaseCancelSpinLock(KIRQL Irql);
-
-VOID IoRemoveShareAccess(PFILE_OBJECT FileObject,
-                        PSHARE_ACCESS ShareAccess);
-
-NTSTATUS IoReportResourceUsage(PUNICODE_STRING DriverClassName,
-                              PDRIVER_OBJECT DriverObject,
-                              PCM_RESOURCE_LIST DriverList,
-                              ULONG DriverListSize,
-                              PDEVICE_OBJECT DeviceObject,
-                              PCM_RESOURCE_LIST DeviceList,
-                              ULONG DeviceListSize,
-                              BOOLEAN OverrideConflict,
-                              PBOOLEAN ConflictDetected);
-
-VOID IoRequestDpc(PDEVICE_OBJECT DeviceObject,
-                 PIRP Irp,
-                 PVOID Context);
-
-PDRIVER_CANCEL IoSetCancelRoutine(PIRP Irp, PDRIVER_CANCEL CancelRoutine);
-
-VOID IoSetCompletionRoutine(PIRP Irp,
-                           PIO_COMPLETION_ROUTINE CompletionRoutine,
-                           PVOID Context,
-                           BOOLEAN InvokeOnSuccess,
-                           BOOLEAN InvokeOnError,
-                           BOOLEAN InvokeOnCancel);
-
-VOID IoSetHardErrorOrVerifyDevice(PIRP Irp, PDEVICE_OBJECT DeviceObject);
-
-VOID IoSetNextIrpStackLocation(PIRP Irp);
-
-NTSTATUS IoSetPartitionInformation(PDEVICE_OBJECT DeviceObject,
-                                  ULONG SectorSize,
-                                  ULONG PartitionNumber,
-                                  ULONG PartitionType);
-
-VOID IoSetShareAccess(ACCESS_MASK DesiredAccess,
-                     ULONG DesiredShareAccess,
-                     PFILE_OBJECT FileObject,
-                     PSHARE_ACCESS ShareAccess);
+VOID
+IoMarkIrpPending (
+       PIRP    Irp
+       );
+
+NTSTATUS
+IoQueryDeviceDescription (
+       PINTERFACE_TYPE                 BusType,
+       PULONG                          BusNumber,
+       PCONFIGURATION_TYPE             ControllerType,
+       PULONG                          ControllerNumber,
+       PCONFIGURATION_TYPE             PeripheralType,
+       PULONG                          PeripheralNumber,
+       PIO_QUERY_DEVICE_ROUTINE        CalloutRoutine,
+       PVOID                           Context
+       );
+
+VOID
+IoRaiseHardError (
+       PIRP            Irp,
+       PVPB            Vpb,
+       PDEVICE_OBJECT  RealDeviceObject
+       );
+
+BOOLEAN
+IoRaiseHardInformationalError (
+       NTSTATUS        ErrorStatus,
+       PUNICODE_STRING String,
+       PKTHREAD        Thread
+       );
+
+NTSTATUS
+IoReadPartitionTable (
+       PDEVICE_OBJECT                          DeviceObject,
+       ULONG                                   SectorSize,
+       BOOLEAN                                 ReturnedRecognizedPartitions,
+       struct _DRIVE_LAYOUT_INFORMATION        ** PBuffer
+       );
+
+VOID
+IoRegisterDriverReinitialization (
+       PDRIVER_OBJECT          DriverObject,
+       PDRIVER_REINITIALIZE    ReinitRoutine,
+       PVOID                   Context
+       );
+
+NTSTATUS
+IoRegisterShutdownNotification (
+       PDEVICE_OBJECT  DeviceObject
+       );
+
+VOID
+IoReleaseCancelSpinLock (
+       KIRQL   Irql
+       );
+
+VOID
+IoRemoveShareAccess (
+       PFILE_OBJECT    FileObject,
+       PSHARE_ACCESS   ShareAccess
+       );
+
+NTSTATUS
+IoReportResourceUsage (
+       PUNICODE_STRING         DriverClassName,
+       PDRIVER_OBJECT          DriverObject,
+       PCM_RESOURCE_LIST       DriverList,
+       ULONG                   DriverListSize,
+       PDEVICE_OBJECT          DeviceObject,
+       PCM_RESOURCE_LIST       DeviceList,
+       ULONG                   DeviceListSize,
+       BOOLEAN                 OverrideConflict,
+       PBOOLEAN                ConflictDetected
+       );
+
+VOID
+IoRequestDpc (
+       PDEVICE_OBJECT  DeviceObject,
+       PIRP            Irp,
+       PVOID           Context
+       );
+
+PDRIVER_CANCEL
+IoSetCancelRoutine (
+       PIRP            Irp,
+       PDRIVER_CANCEL  CancelRoutine
+       );
+
+VOID
+IoSetCompletionRoutine (
+       PIRP                    Irp,
+       PIO_COMPLETION_ROUTINE  CompletionRoutine,
+       PVOID                   Context,
+       BOOLEAN                 InvokeOnSuccess,
+       BOOLEAN                 InvokeOnError,
+       BOOLEAN                 InvokeOnCancel
+       );
+
+VOID
+IoSetHardErrorOrVerifyDevice (
+       PIRP            Irp,
+       PDEVICE_OBJECT  DeviceObject
+       );
+
+VOID
+IoSetNextIrpStackLocation (
+       PIRP    Irp
+       );
+
+NTSTATUS
+IoSetPartitionInformation (
+       PDEVICE_OBJECT  DeviceObject,
+       ULONG           SectorSize,
+       ULONG           PartitionNumber,
+       ULONG           PartitionType
+       );
+
+VOID
+IoSetShareAccess (
+       ACCESS_MASK     DesiredAccess,
+       ULONG           DesiredShareAccess,
+       PFILE_OBJECT    FileObject,
+       PSHARE_ACCESS   ShareAccess
+       );
 
 /*
  * FUNCTION:  Determines the size of an IRP
@@ -465,7 +699,10 @@ VOID IoSetShareAccess(ACCESS_MASK DesiredAccess,
  *           StackSize = number of stack locations in the IRP
  * RETURNS: The size of the IRP in bytes 
  */
-USHORT IoSizeOfIrp(CCHAR StackSize);
+USHORT
+IoSizeOfIrp (
+       CCHAR   StackSize
+       );
 
 /*
  * FUNCTION: Dequeues the next IRP from the device's associated queue and
@@ -474,11 +711,18 @@ USHORT IoSizeOfIrp(CCHAR StackSize);
  *          DeviceObject = Device object
  *          Cancelable = True if IRPs in the queue can be cancelled
  */
-VOID IoStartNextPacket(PDEVICE_OBJECT DeviceObject, BOOLEAN Cancelable);
+VOID
+IoStartNextPacket (
+       PDEVICE_OBJECT  DeviceObject,
+       BOOLEAN         Cancelable
+       );
    
-VOID IoStartNextPacketByKey(PDEVICE_OBJECT DeviceObject, 
-                           BOOLEAN Cancelable,
-                           ULONG Key);
+VOID
+IoStartNextPacketByKey (
+       PDEVICE_OBJECT  DeviceObject, 
+       BOOLEAN         Cancelable,
+       ULONG           Key
+       );
 
 /*
  * FUNCTION: Calls the drivers StartIO routine with the IRP or queues it if
@@ -489,43 +733,84 @@ VOID IoStartNextPacketByKey(PDEVICE_OBJECT DeviceObject,
  *         Key = Optional value for where to insert the IRP
  *         CancelFunction = Entry point for a driver supplied cancel function
  */
-VOID IoStartPacket(PDEVICE_OBJECT DeviceObject, PIRP Irp, PULONG Key,
-                  PDRIVER_CANCEL CancelFunction);
-
-VOID IoStartTimer(PDEVICE_OBJECT DeviceObject);
-
-VOID IoStopTimer(PDEVICE_OBJECT DeviceObject);
-
-VOID IoUnregisterShutdownNotification(PDEVICE_OBJECT DeviceObject);
-
-VOID IoUpdateShareAccess(PFILE_OBJECT FileObject, PSHARE_ACCESS ShareAccess);
-
-VOID IoWriteErrorLogEntry(PVOID ElEntry);
-
-NTSTATUS IoWritePartitionTable(PDEVICE_OBJECT DeviceObject,
-                              ULONG SectorSize,
-                              ULONG SectorsPerTrack,
-                              ULONG NumberOfHeads,
-                              struct _DRIVE_LAYOUT_INFORMATION* PBuffer);
+VOID
+IoStartPacket (
+       PDEVICE_OBJECT  DeviceObject,
+       PIRP            Irp,
+       PULONG          Key,
+       PDRIVER_CANCEL  CancelFunction
+       );
+
+VOID
+IoStartTimer (
+       PDEVICE_OBJECT  DeviceObject
+       );
+
+VOID
+IoStopTimer (
+       PDEVICE_OBJECT  DeviceObject
+       );
+
+VOID
+IoUnregisterShutdownNotification (
+       PDEVICE_OBJECT  DeviceObject
+       );
+
+VOID
+IoUpdateShareAccess (
+       PFILE_OBJECT    FileObject,
+       PSHARE_ACCESS   ShareAccess
+       );
+
+VOID
+IoWriteErrorLogEntry (
+       PVOID   ElEntry
+       );
+
+NTSTATUS
+IoWritePartitionTable (
+       PDEVICE_OBJECT  DeviceObject,
+       ULONG SectorSize,
+       ULONG SectorsPerTrack,
+       ULONG NumberOfHeads,
+       struct _DRIVE_LAYOUT_INFORMATION* PBuffer
+       );
 
 
 // Preliminary guess
-NTKERNELAPI NTSTATUS IoQueryFileVolumeInformation(IN PFILE_OBJECT FileObject, 
-                                 IN FS_INFORMATION_CLASS FsInformationClass, 
-                                                 IN ULONG Length, 
-                                                 OUT PVOID FsInformation, 
-                                                 OUT PULONG ReturnedLength);
+NTKERNELAPI
+NTSTATUS
+IoQueryFileVolumeInformation (
+       IN      PFILE_OBJECT            FileObject, 
+       IN      FS_INFORMATION_CLASS    FsInformationClass, 
+       IN      ULONG                   Length, 
+       OUT     PVOID                   FsInformation, 
+       OUT     PULONG                  ReturnedLength
+       );
 
 NTKERNELAPI // confirmed - Undocumented because it does not require a valid file handle 
 NTSTATUS 
-IoQueryFileInformation(
-IN PFILE_OBJECT FileObject,
-IN FILE_INFORMATION_CLASS FileInformationClass,
-IN ULONG Length,
-OUT PVOID FileInformation,
-OUT PULONG ReturnedLength
-);
-VOID IoRegisterFileSystem(PDEVICE_OBJECT DeviceObject);
-PDEVICE_OBJECT IoGetAttachedDevice(PDEVICE_OBJECT DeviceObject);
-PFILE_OBJECT IoCreateStreamFileObject(PFILE_OBJECT FileObject,
-                                     PDEVICE_OBJECT DeviceObject);
+IoQueryFileInformation (
+       IN      PFILE_OBJECT            FileObject,
+       IN      FILE_INFORMATION_CLASS  FileInformationClass,
+       IN      ULONG                   Length,
+       OUT     PVOID                   FileInformation,
+       OUT     PULONG                  ReturnedLength  
+       );
+
+VOID
+IoRegisterFileSystem (
+       PDEVICE_OBJECT  DeviceObject
+       );
+
+PDEVICE_OBJECT
+IoGetAttachedDevice (
+       PDEVICE_OBJECT  DeviceObject
+       );
+
+PFILE_OBJECT
+IoCreateStreamFileObject (
+       PFILE_OBJECT    FileObject,
+       PDEVICE_OBJECT  DeviceObject
+       );
+
diff --git a/reactos/include/ddk/ntifs.h b/reactos/include/ddk/ntifs.h
deleted file mode 100644 (file)
index b0510db..0000000
+++ /dev/null
@@ -1,1499 +0,0 @@
-/*
-    This is a free version of the file ntifs.h, release 8.
-    The purpose of this include file is to build Windows NT file system and
-    file system filter drivers.
-    Copyright (C) 1999  Bo Branten
-    This program is free software; you can redistribute it and/or modify
-    it under the terms of the GNU General Public License as published by
-    the Free Software Foundation; either version 2 of the License, or
-    (at your option) any later version.
-    This program is distributed in the hope that it will be useful,
-    but WITHOUT ANY WARRANTY; without even the implied warranty of
-    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
-    GNU General Public License for more details.
-    You should have received a copy of the GNU General Public License
-    along with this program; if not, write to the Free Software
-    Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
-
-    DISCLAIMER: I do not encourage anyone to use this include file to build
-    Windows NT file system or file system filter drivers used in production.
-    The information in this include file is incomplete and intended only as
-    an studying companion. The information has been found in books, magazines,
-    on the Internet and received from contributors.
-
-    Please send comments, corrections and contributions to bosse@acc.umu.se
-
-    The most recent version of this file is available from:
-    http://www.acc.umu.se/~bosse/ntifs.h
-
-    Thanks to Andrey Shedel, Bartjan Wattel and Darja Isaksson.
-
-    Revision history:
-
-    8. Corrected:
-         ZwOpenProcessToken
-         ZwOpenThreadToken
-       Added:
-         Defines:
-           FILE_OPLOCK_BROKEN_TO_LEVEL_2
-           FILE_OPLOCK_BROKEN_TO_NONE
-           FILE_CASE_SENSITIVE_SEARCH
-           FILE_CASE_PRESERVED_NAMES
-           FILE_UNICODE_ON_DISK
-           FILE_PERSISTENT_ACLS
-           FILE_FILE_COMPRESSION
-           FILE_VOLUME_IS_COMPRESSED
-           FSRTL_FLAG_ACQUIRE_MAIN_RSRC_EX
-           FSRTL_FLAG_ACQUIRE_MAIN_RSRC_SH
-           IOCTL_REDIR_QUERY_PATH
-         Structures:
-           FILE_FS_LABEL_INFORMATION
-           PATHNAME_BUFFER
-         In IO_STACK_LOCATION:
-           FileSystemControl
-           LockControl
-           SetVolume
-         Function prototypes:
-           FsRtlCopyRead
-           FsRtlCopyWrite
-           IoVerifyVolume
-
-    7. Added:
-         defines for TOKEN_XXX
-         SID_NAME_USE
-         TOKEN_INFORMATION_CLASS
-         TOKEN_TYPE
-         FILE_FS_ATTRIBUTE_INFORMATION
-         FILE_FS_SIZE_INFORMATION
-         SID_IDENTIFIER_AUTHORITY
-         SID
-         SID_AND_ATTRIBUTES
-         TOKEN_CONTROL
-         TOKEN_DEFAULT_DACL
-         TOKEN_GROUPS
-         TOKEN_OWNER
-         TOKEN_PRIMARY_GROUP
-         TOKEN_PRIVILEGES
-         TOKEN_SOURCE
-         TOKEN_STATISTICS
-         TOKEN_USER
-         IoCreateFile
-         IoGetAttachedDevice
-         IoGetBaseFileSystemDeviceObject
-         PsReferenceImpersonationToken
-         PsReferencePrimaryToken
-         RtlConvertSidToUnicodeString
-         SeCaptureSubjectContext
-         SeMarkLogonSessionForTerminationNotification
-         SeRegisterLogonSessionTerminatedRoutine
-         SeUnregisterLogonSessionTerminatedRoutine
-         ZwOpenProcessToken
-         ZwOpenThreadToken
-         ZwQueryInformationToken
-
-    6. Corrected declarations of Zw functions.
-       Added:
-         ZwCancelIoFile
-         ZwDeleteFile
-         ZwFlushBuffersFile
-         ZwFsControlFile
-         ZwLockFile
-         ZwNotifyChangeDirectoryFile
-         ZwOpenFile
-         ZwQueryEaFile
-         ZwSetEaFile
-         ZwSetVolumeInformationFile
-         ZwUnlockFile
-
-    5. Added:
-         defines for FILE_ACTION_XXX and FILE_NOTIFY_XXX
-         FILE_FS_VOLUME_INFORMATION
-         RETRIEVAL_POINTERS_BUFFER
-         STARTING_VCN_INPUT_BUFFER
-         FsRtlNotifyFullReportChange
-
-    4. Corrected:
-         ZwCreateThread
-       Added:
-         define _GNU_NTIFS_
-
-    3. Added:
-         defines for MAP_XXX, MEM_XXX and SEC_XXX
-         FILE_BOTH_DIR_INFORMATION
-         FILE_DIRECTORY_INFORMATION
-         FILE_FULL_DIR_INFORMATION
-         FILE_NAMES_INFORMATION
-         FILE_NOTIFY_INFORMATION
-         FsRtlNotifyCleanup
-         KeAttachProcess
-         KeDetachProcess
-         MmCreateSection
-         ZwCreateProcess
-         ZwCreateThread
-         ZwDeviceIoControlFile
-         ZwGetContextThread
-         ZwLoadDriver
-         ZwOpenDirectoryObject
-         ZwOpenProcess
-         ZwOpenSymbolicLinkObject
-         ZwQueryDirectoryFile
-         ZwUnloadDriver
-
-    2. Added:
-         FILE_COMPRESSION_INFORMATION
-         FILE_STREAM_INFORMATION
-         FILE_LINK_INFORMATION
-         FILE_RENAME_INFORMATION
-         EXTENDED_IO_STACK_LOCATION
-         IoQueryFileInformation
-         IoQueryFileVolumeInformation
-         ZwQueryVolumeInformationFile
-       Moved include of ntddk.h to inside extern "C" block.
-
-    1. Initial release.
-*/
-
-#ifndef _NTIFS_
-#define _NTIFS_
-#define _GNU_NTIFS_
-
-#ifdef __cplusplus
-extern "C" {
-#endif
-
-#include <ntddk.h>
-
-#define FILE_ACTION_ADDED               0x00000001
-#define FILE_ACTION_REMOVED             0x00000002
-#define FILE_ACTION_MODIFIED            0x00000003
-#define FILE_ACTION_RENAMED_OLD_NAME    0x00000004
-#define FILE_ACTION_RENAMED_NEW_NAME    0x00000005
-#define FILE_ACTION_ADDED_STREAM        0x00000006
-#define FILE_ACTION_REMOVED_STREAM      0x00000007
-#define FILE_ACTION_MODIFIED_STREAM     0x00000008
-
-#define FILE_NOTIFY_CHANGE_FILE_NAME    0x00000001
-#define FILE_NOTIFY_CHANGE_DIR_NAME     0x00000002
-#define FILE_NOTIFY_CHANGE_NAME         0x00000003
-#define FILE_NOTIFY_CHANGE_ATTRIBUTES   0x00000004
-#define FILE_NOTIFY_CHANGE_SIZE         0x00000008
-#define FILE_NOTIFY_CHANGE_LAST_WRITE   0x00000010
-#define FILE_NOTIFY_CHANGE_LAST_ACCESS  0x00000020
-#define FILE_NOTIFY_CHANGE_CREATION     0x00000040
-#define FILE_NOTIFY_CHANGE_EA           0x00000080
-#define FILE_NOTIFY_CHANGE_SECURITY     0x00000100
-#define FILE_NOTIFY_CHANGE_STREAM_NAME  0x00000200
-#define FILE_NOTIFY_CHANGE_STREAM_SIZE  0x00000400
-#define FILE_NOTIFY_CHANGE_STREAM_WRITE 0x00000800
-#define FILE_NOTIFY_VALID_MASK          0x00000fff
-
-#define FILE_OPLOCK_BROKEN_TO_LEVEL_2   0x00000007
-#define FILE_OPLOCK_BROKEN_TO_NONE      0x00000008
-
-#define FILE_CASE_SENSITIVE_SEARCH      0x00000001
-#define FILE_CASE_PRESERVED_NAMES       0x00000002
-#define FILE_UNICODE_ON_DISK            0x00000004
-#define FILE_PERSISTENT_ACLS            0x00000008
-#define FILE_FILE_COMPRESSION           0x00000010
-#define FILE_VOLUME_IS_COMPRESSED       0x00008000
-
-#define FSRTL_FLAG_ACQUIRE_MAIN_RSRC_EX (0x08)
-#define FSRTL_FLAG_ACQUIRE_MAIN_RSRC_SH (0x10)
-
-#define FSRTL_FSP_TOP_LEVEL_IRP         (0x01)
-#define FSRTL_CACHE_TOP_LEVEL_IRP       (0x02)
-#define FSRTL_MOD_WRITE_TOP_LEVEL_IRP   (0x03)
-#define FSRTL_FAST_IO_TOP_LEVEL_IRP     (0x04)
-#define FSRTL_MAX_TOP_LEVEL_IRP_FLAG    (0x04)
-
-#define IOCTL_REDIR_QUERY_PATH CTL_CODE(FILE_DEVICE_NETWORK_FILE_SYSTEM, \
-                                        99, METHOD_NEITHER, FILE_ANY_ACCESS)
-
-#define MAP_PROCESS                     1L
-#define MAP_SYSTEM                      2L
-
-#define MEM_DOS_LIM                     0x40000000
-#define MEM_IMAGE                       SEC_IMAGE
-
-#define SEC_BASED                       0x00200000
-#define SEC_NO_CHANGE                   0x00400000
-#define SEC_FILE                        0x00800000
-#define SEC_IMAGE                       0x01000000
-#define SEC_COMMIT                      0x08000000
-#define SEC_NOCACHE                     0x10000000
-
-#define TOKEN_ASSIGN_PRIMARY            (0x0001)
-#define TOKEN_DUPLICATE                 (0x0002)
-#define TOKEN_IMPERSONATE               (0x0004)
-#define TOKEN_QUERY                     (0x0008)
-#define TOKEN_QUERY_SOURCE              (0x0010)
-#define TOKEN_ADJUST_PRIVILEGES         (0x0020)
-#define TOKEN_ADJUST_GROUPS             (0x0040)
-#define TOKEN_ADJUST_DEFAULT            (0x0080)
-
-#define TOKEN_ALL_ACCESS (STANDARD_RIGHTS_REQUIRED |\
-                          TOKEN_ASSIGN_PRIMARY     |\
-                          TOKEN_DUPLICATE          |\
-                          TOKEN_IMPERSONATE        |\
-                          TOKEN_QUERY              |\
-                          TOKEN_QUERY_SOURCE       |\
-                          TOKEN_ADJUST_PRIVILEGES  |\
-                          TOKEN_ADJUST_GROUPS      |\
-                          TOKEN_ADJUST_DEFAULT)
-
-#define TOKEN_READ       (STANDARD_RIGHTS_READ     |\
-                          TOKEN_QUERY)
-
-#define TOKEN_WRITE      (STANDARD_RIGHTS_WRITE    |\
-                          TOKEN_ADJUST_PRIVILEGES  |\
-                          TOKEN_ADJUST_GROUPS      |\
-                          TOKEN_ADJUST_DEFAULT)
-
-#define TOKEN_EXECUTE    (STANDARD_RIGHTS_EXECUTE)
-
-#define TOKEN_SOURCE_LENGTH 8
-
-typedef PVOID PNOTIFY_SYNC;
-
-typedef enum _FAST_IO_POSSIBLE {
-    FastIoIsPossible,
-    FastIoIsNotPossible,
-    FastIoIsQuestionable
-} FAST_IO_POSSIBLE;
-
-typedef enum _MMFLUSH_TYPE {
-    MmFlushForDelete,
-    MmFlushForWrite
-} MMFLUSH_TYPE;
-
-typedef enum _SID_NAME_USE {
-    SidTypeUser = 1,
-    SidTypeGroup,
-    SidTypeDomain,
-    SidTypeAlias,
-    SidTypeWellKnownGroup,
-    SidTypeDeletedAccount,
-    SidTypeInvalid,
-    SidTypeUnknown
-} SID_NAME_USE, *PSID_NAME_USE;
-  
-typedef struct _CACHE_UNINITIALIZE_EVENT {
-    struct _CACHE_UNINITIALIZE_EVENT    *Next;
-    KEVENT                              Event;
-} CACHE_UNINITIALIZE_EVENT, *PCACHE_UNINITIALIZE_EVENT;
-
-typedef struct _CC_FILE_SIZES {
-    LARGE_INTEGER AllocationSize;
-    LARGE_INTEGER FileSize;
-    LARGE_INTEGER ValidDataLength;
-} CC_FILE_SIZES, *PCC_FILE_SIZES;
-
-/*
- * When needing these cast your PIO_STACK_LOCATION to
- * PEXTENDED_IO_STACK_LOCATION
- */
-typedef struct _EXTENDED_IO_STACK_LOCATION {
-
-    union {
-
-        struct {
-            ULONG                   OutputBufferLength;
-            ULONG                   InputBufferLength;
-            ULONG                   FsControlCode;
-            PVOID                   Type3InputBuffer;
-        } FileSystemControl;
-
-        struct {
-            PLARGE_INTEGER          Length;
-            ULONG                   Key;
-            LARGE_INTEGER           ByteOffset;
-        } LockControl;
-
-        struct {
-            ULONG                   Length;
-            ULONG                   CompletionFilter;
-        } NotifyDirectory;
-
-        struct {
-            ULONG                   Length;
-            PSTRING                 FileName;
-            FILE_INFORMATION_CLASS  FileInformationClass;
-            ULONG                   FileIndex;
-        } QueryDirectory;
-
-        struct {
-            ULONG                   Length;
-            PVOID                   EaList;
-            ULONG                   EaListLength;
-            ULONG                   EaaIndex;
-        } QueryEa;
-
-        struct {
-            ULONG                   Length;
-            FS_INFORMATION_CLASS    FsInformationClass;
-        } SetVolume;
-
-    } Parameters;
-
-} EXTENDED_IO_STACK_LOCATION, *PEXTENDED_IO_STACK_LOCATION;
-
-typedef struct _FILE_LINK_INFORMATION {
-    BOOLEAN ReplaceIfExists;
-    HANDLE  RootDirectory;
-    ULONG   FileNameLength;
-    WCHAR   FileName[1];
-} FILE_LINK_INFORMATION, *PFILE_LINK_INFORMATION;
-
-typedef struct _FSRTL_COMMON_FCB_HEADER {
-    CSHORT          NodeTypeCode;
-    CSHORT          NodeByteSize;
-    UCHAR           Flags;
-    UCHAR           IsFastIoPossible;
-#if (_WIN32_WINNT >= 0x0400)
-    UCHAR           Flags2;
-    UCHAR           Reserved;
-#endif // (_WIN32_WINNT >= 0x0400)
-    PERESOURCE      Resource;
-    PERESOURCE      PagingIoResource;
-    LARGE_INTEGER   AllocationSize;
-    LARGE_INTEGER   FileSize;
-    LARGE_INTEGER   ValidDataLength;
-} FSRTL_COMMON_FCB_HEADER, *PFSRTL_COMMON_FCB_HEADER;
-
-typedef struct _PATHNAME_BUFFER {
-    ULONG PathNameLength;
-    WCHAR Name[1];
-} PATHNAME_BUFFER, *PPATHNAME_BUFFER;
-
-typedef struct _PUBLIC_BCB {
-    CSHORT          NodeTypeCode;
-    CSHORT          NodeByteSize;
-    ULONG           MappedLength;
-    LARGE_INTEGER   MappedFileOffset;
-} PUBLIC_BCB, *PPUBLIC_BCB;
-
-typedef struct _QUERY_PATH_REQUEST {
-    ULONG                   PathNameLength;
-    PIO_SECURITY_CONTEXT    SecurityContext;
-    WCHAR                   FilePathName[1];
-} QUERY_PATH_REQUEST, *PQUERY_PATH_REQUEST;
-
-typedef struct _QUERY_PATH_RESPONSE {
-    ULONG LengthAccepted;
-} QUERY_PATH_RESPONSE, *PQUERY_PATH_RESPONSE;
-
-typedef struct _RETRIEVAL_POINTERS_BUFFER {
-    ULONG               ExtentCount;
-    LARGE_INTEGER       StartingVcn;
-    struct {
-        LARGE_INTEGER   NextVcn;
-        LARGE_INTEGER   Lcn;
-    } Extents[1];
-} RETRIEVAL_POINTERS_BUFFER, *PRETRIEVAL_POINTERS_BUFFER;
-
-typedef struct _STARTING_VCN_INPUT_BUFFER {
-    LARGE_INTEGER StartingVcn;
-} STARTING_VCN_INPUT_BUFFER, *PSTARTING_VCN_INPUT_BUFFER;
-
-typedef struct _TOKEN_CONTROL {
-    LUID            TokenId;
-    LUID            AuthenticationId;
-    LUID            ModifiedId;
-    TOKEN_SOURCE    TokenSource;
-} TOKEN_CONTROL, *PTOKEN_CONTROL;
-
-typedef struct _TOKEN_STATISTICS {
-    LUID                            TokenId;
-    LUID                            AuthenticationId;
-    LARGE_INTEGER                   ExpirationTime;
-    TOKEN_TYPE                      TokenType;
-    SECURITY_IMPERSONATION_LEVEL    ImpersonationLevel;
-    ULONG                           DynamicCharged;
-    ULONG                           DynamicAvailable;
-    ULONG                           GroupCount;
-    ULONG                           PrivilegeCount;
-    LUID                            ModifiedId;
-} TOKEN_STATISTICS, *PTOKEN_STATISTICS;
-
-NTKERNELAPI
-BOOLEAN
-CcCanIWrite (
-    IN PFILE_OBJECT FileObject,
-    IN ULONG        BytesToWrite,
-    IN BOOLEAN      Wait,
-    IN BOOLEAN      Retrying
-);
-
-NTKERNELAPI
-BOOLEAN
-CcCopyRead (
-    IN PFILE_OBJECT         FileObject,
-    IN PLARGE_INTEGER       FileOffset,
-    IN ULONG                Length,
-    IN BOOLEAN              Wait,
-    OUT PVOID               Buffer,
-    OUT PIO_STATUS_BLOCK    IoStatus
-);
-
-NTKERNELAPI
-BOOLEAN
-CcCopyWrite (
-    IN PFILE_OBJECT     FileObject,
-    IN PLARGE_INTEGER   FileOffset,
-    IN ULONG            Length,
-    IN BOOLEAN          Wait,
-    IN PVOID            Buffer
-);
-
-typedef VOID (*PCC_POST_DEFERRED_WRITE) (
-    IN PVOID Context1,
-    IN PVOID Context2
-);
-
-NTKERNELAPI
-VOID
-CcDeferWrite (
-    IN PFILE_OBJECT             FileObject,
-    IN PCC_POST_DEFERRED_WRITE  PostRoutine,
-    IN PVOID                    Context1,
-    IN PVOID                    Context2,
-    IN ULONG                    BytesToWrite,
-    IN BOOLEAN                  Retrying
-);
-
-NTKERNELAPI
-VOID
-CcFastCopyRead (
-    IN PFILE_OBJECT         FileObject,
-    IN ULONG                FileOffset,
-    IN ULONG                Length,
-    IN ULONG                PageCount,
-    OUT PVOID               Buffer,
-    OUT PIO_STATUS_BLOCK    IoStatus
-);
-
-NTKERNELAPI
-VOID
-CcFastCopyWrite (
-    IN PFILE_OBJECT FileObject,
-    IN ULONG        FileOffset,
-    IN ULONG        Length,
-    IN PVOID        Buffer
-);
-
-NTKERNELAPI
-VOID
-CcFlushCache (
-    IN PSECTION_OBJECT_POINTERS SectionObjectPointer,
-    IN PLARGE_INTEGER           FileOffset OPTIONAL,
-    IN ULONG                    Length,
-    OUT PIO_STATUS_BLOCK        IoStatus OPTIONAL
-);
-
-typedef VOID (*PDIRTY_PAGE_ROUTINE) (
-    IN PFILE_OBJECT     FileObject,
-    IN PLARGE_INTEGER   FileOffset,
-    IN ULONG            Length,
-    IN PLARGE_INTEGER   OldestLsn,
-    IN PLARGE_INTEGER   NewestLsn,
-    IN PVOID            Context1,
-    IN PVOID            Context2
-);
-
-NTKERNELAPI
-LARGE_INTEGER
-CcGetDirtyPages (
-    IN PVOID                LogHandle,
-    IN PDIRTY_PAGE_ROUTINE  DirtyPageRoutine,
-    IN PVOID                Context1,
-    IN PVOID                Context2
-);
-
-NTKERNELAPI
-PFILE_OBJECT
-CcGetFileObjectFromBcb (
-    IN PVOID Bcb
-);
-
-NTKERNELAPI
-PFILE_OBJECT
-CcGetFileObjectFromSectionPtrs (
-    IN PSECTION_OBJECT_POINTERS SectionObjectPointer
-);
-
-NTKERNELAPI
-LARGE_INTEGER
-CcGetLsnForFileObject(
-    IN PFILE_OBJECT     FileObject,
-    OUT PLARGE_INTEGER  OldestLsn OPTIONAL
-);
-
-typedef BOOLEAN (*PACQUIRE_FOR_LAZY_WRITE) (
-    IN PVOID    Context,
-    IN BOOLEAN  Wait
-);
-
-typedef VOID (*PRELEASE_FROM_LAZY_WRITE) (
-    IN PVOID Context
-);
-
-typedef BOOLEAN (*PACQUIRE_FOR_READ_AHEAD) (
-    IN PVOID    Context,
-    IN BOOLEAN  Wait
-);
-
-typedef VOID (*PRELEASE_FROM_READ_AHEAD) (
-    IN PVOID Context
-);
-
-typedef struct _CACHE_MANAGER_CALLBACKS {
-    PACQUIRE_FOR_LAZY_WRITE     AcquireForLazyWrite;
-    PRELEASE_FROM_LAZY_WRITE    ReleaseFromLazyWrite;
-    PACQUIRE_FOR_READ_AHEAD     AcquireForReadAhead;
-    PRELEASE_FROM_READ_AHEAD    ReleaseFromReadAhead;
-} CACHE_MANAGER_CALLBACKS, *PCACHE_MANAGER_CALLBACKS;
-
-NTKERNELAPI
-VOID
-CcInitializeCacheMap (
-    IN PFILE_OBJECT             FileObject,
-    IN PCC_FILE_SIZES           FileSizes,
-    IN BOOLEAN                  PinAccess,
-    IN PCACHE_MANAGER_CALLBACKS Callbacks,
-    IN PVOID                    LazyWriteContext
-);
-
-NTKERNELAPI
-BOOLEAN
-CcIsThereDirtyData (
-    IN PVPB Vpb
-);
-
-NTKERNELAPI
-BOOLEAN
-CcMapData (
-    IN PFILE_OBJECT     FileObject,
-    IN PLARGE_INTEGER   FileOffset,
-    IN ULONG            Length,
-    IN BOOLEAN          Wait,
-    OUT PVOID           *Bcb,
-    OUT PVOID           *Buffer
-);
-
-NTKERNELAPI
-VOID
-CcMdlRead (
-    IN PFILE_OBJECT         FileObject,
-    IN PLARGE_INTEGER       FileOffset,
-    IN ULONG                Length,
-    OUT PMDL                *MdlChain,
-    OUT PIO_STATUS_BLOCK    IoStatus
-);
-
-NTKERNELAPI
-VOID
-CcMdlReadComplete (
-    IN PFILE_OBJECT FileObject,
-    IN PMDL         MdlChain
-);
-
-NTKERNELAPI
-VOID
-CcMdlWriteComplete (
-    IN PFILE_OBJECT     FileObject,
-    IN PLARGE_INTEGER   FileOffset,
-    IN PMDL             MdlChain
-);
-
-NTKERNELAPI
-BOOLEAN
-CcPinMappedData (
-    IN PFILE_OBJECT     FileObject,
-    IN PLARGE_INTEGER   FileOffset,
-    IN ULONG            Length,
-    IN BOOLEAN          Wait,
-    IN OUT PVOID        *Bcb
-);
-
-NTKERNELAPI
-BOOLEAN
-CcPinRead (
-    IN PFILE_OBJECT     FileObject,
-    IN PLARGE_INTEGER   FileOffset,
-    IN ULONG            Length,
-    IN BOOLEAN          Wait,
-    OUT PVOID           *Bcb,
-    OUT PVOID           *Buffer
-);
-
-NTKERNELAPI
-VOID
-CcPrepareMdlWrite (
-    IN PFILE_OBJECT         FileObject,
-    IN PLARGE_INTEGER       FileOffset,
-    IN ULONG                Length,
-    OUT PMDL                *MdlChain,
-    OUT PIO_STATUS_BLOCK    IoStatus
-);
-
-NTKERNELAPI
-BOOLEAN
-CcPreparePinWrite (
-    IN PFILE_OBJECT     FileObject,
-    IN PLARGE_INTEGER   FileOffset,
-    IN ULONG            Length,
-    IN BOOLEAN          Zero,
-    IN BOOLEAN          Wait,
-    OUT PVOID           *Bcb,
-    OUT PVOID           *Buffer
-);
-
-NTKERNELAPI
-BOOLEAN
-CcPurgeCacheSection (
-    IN PSECTION_OBJECT_POINTERS SectionObjectPointer,
-    IN PLARGE_INTEGER           FileOffset OPTIONAL,
-    IN ULONG                    Length,
-    IN BOOLEAN                  UninitializeCacheMaps
-);
-
-#define CcReadAhead(FO, FOFF, LEN) ( \
-    if ((LEN) >= 256) { \
-        CcScheduleReadAhead((FO), (FOFF), (LEN)); \
-    } \
-)
-
-NTKERNELAPI
-VOID
-CcRepinBcb (
-    IN PVOID Bcb
-);
-
-NTKERNELAPI
-VOID
-CcScheduleReadAhead (
-    IN PFILE_OBJECT     FileObject,
-    IN PLARGE_INTEGER   FileOffset,
-    IN ULONG            Length
-);
-
-NTKERNELAPI
-VOID
-CcSetAdditionalCacheAttributes (
-    IN PFILE_OBJECT FileObject,
-    IN BOOLEAN      DisableReadAhead,
-    IN BOOLEAN      DisableWriteBehind
-);
-
-NTKERNELAPI
-VOID
-CcSetBcbOwnerPointer (
-    IN PVOID Bcb,
-    IN PVOID OwnerPointer
-);
-
-NTKERNELAPI
-VOID
-CcSetDirtyPageThreshold (
-    IN PFILE_OBJECT FileObject,
-    IN ULONG        DirtyPageThreshold
-);
-
-NTKERNELAPI
-VOID
-CcSetDirtyPinnedData (
-    IN PVOID            Bcb,
-    IN PLARGE_INTEGER   Lsn OPTIONAL
-);
-
-NTKERNELAPI
-VOID
-CcSetFileSizes (
-    IN PFILE_OBJECT     FileObject,
-    IN PCC_FILE_SIZES   FileSizes
-);
-
-typedef VOID (*PFLUSH_TO_LSN) (
-    IN PVOID            LogHandle,
-    IN PLARGE_INTEGER   Lsn
-);
-
-NTKERNELAPI
-VOID
-CcSetLogHandleForFile (
-    IN PFILE_OBJECT     FileObject,
-    IN PVOID            LogHandle,
-    IN PFLUSH_TO_LSN    FlushToLsnRoutine
-);
-
-NTKERNELAPI
-VOID
-CcSetReadAheadGranularity (
-    IN PFILE_OBJECT FileObject,
-    IN ULONG        Granularity     // default: PAGE_SIZE, allowed: 2^n * PAGE_SIZE
-);
-
-NTKERNELAPI
-BOOLEAN
-CcUninitializeCacheMap (
-    IN PFILE_OBJECT                 FileObject,
-    IN PLARGE_INTEGER               TruncateSize OPTIONAL,
-    IN PCACHE_UNINITIALIZE_EVENT    UninitializeCompleteEvent OPTIONAL
-);
-
-NTKERNELAPI
-VOID
-CcUnpinData (
-    IN PVOID Bcb
-);
-
-NTKERNELAPI
-VOID
-CcUnpinDataForThread (
-    IN PVOID            Bcb,
-    IN ERESOURCE_THREAD ResourceThreadId
-);
-
-NTKERNELAPI
-VOID
-CcUnpinRepinnedBcb (
-    IN PVOID                Bcb,
-    IN BOOLEAN              WriteThrough,
-    OUT PIO_STATUS_BLOCK    IoStatus
-);
-
-NTKERNELAPI
-BOOLEAN
-CcZeroData (
-    IN PFILE_OBJECT     FileObject,
-    IN PLARGE_INTEGER   StartOffset,
-    IN PLARGE_INTEGER   EndOffset,
-    IN BOOLEAN          Wait
-);
-
-NTKERNELAPI
-VOID
-CcZeroEndOfLastPage (
-    IN PFILE_OBJECT FileObject
-);
-
-NTKERNELAPI
-BOOLEAN
-FsRtlCopyRead (
-    IN PFILE_OBJECT         FileObject,
-    IN PLARGE_INTEGER       FileOffset,
-    IN ULONG                Length,
-    IN BOOLEAN              Wait,
-    IN ULONG                LockKey,
-    OUT PVOID               Buffer,
-    OUT PIO_STATUS_BLOCK    IoStatus,
-    IN PDEVICE_OBJECT       DeviceObject
-);
-
-NTKERNELAPI
-BOOLEAN
-FsRtlCopyWrite (
-    IN PFILE_OBJECT         FileObject,
-    IN PLARGE_INTEGER       FileOffset,
-    IN ULONG                Length,
-    IN BOOLEAN              Wait,
-    IN ULONG                LockKey,
-    IN PVOID                Buffer,
-    OUT PIO_STATUS_BLOCK    IoStatus,
-    IN PDEVICE_OBJECT       DeviceObject
-);
-
-#define FsRtlEnterFileSystem    KeEnterCriticalRegion
-
-#define FsRtlExitFileSystem     KeLeaveCriticalRegion
-
-NTKERNELAPI
-BOOLEAN
-FsRtlIsNtstatusExpected (
-    IN NTSTATUS Ntstatus
-);
-
-NTKERNELAPI
-BOOLEAN
-FsRtlMdlReadCompleteDev (
-    IN PFILE_OBJECT     FileObject,
-    IN PMDL             MdlChain,
-    IN PDEVICE_OBJECT   DeviceObject
-);
-
-NTKERNELAPI
-BOOLEAN
-FsRtlMdlWriteCompleteDev (
-    IN PFILE_OBJECT     FileObject,
-    IN PLARGE_INTEGER   FileOffset,
-    IN PMDL             MdlChain,
-    IN PDEVICE_OBJECT   DeviceObject
-);
-
-NTKERNELAPI
-VOID
-FsRtlNotifyCleanup (
-    IN PNOTIFY_SYNC NotifySync,
-    IN PLIST_ENTRY  NotifyList,
-    IN PVOID        FsContext
-);
-
-typedef BOOLEAN (*PCHECK_FOR_TRAVERSE_ACCESS) (
-    IN PVOID                        NotifyContext,
-    IN PVOID                        TargetContext,
-    IN PSECURITY_SUBJECT_CONTEXT    SubjectContext
-);
-
-NTKERNELAPI
-VOID
-FsRtlNotifyFullChangeDirectory (
-    IN PNOTIFY_SYNC                 NotifySync,
-    IN PLIST_ENTRY                  NotifyList,
-    IN PVOID                        FsContext,
-    IN PSTRING                      FullDirectoryName,
-    IN BOOLEAN                      WatchTree,
-    IN BOOLEAN                      IgnoreBuffer,
-    IN ULONG                        CompletionFilter,
-    IN PIRP                         NotifyIrp,
-    IN PCHECK_FOR_TRAVERSE_ACCESS   TraverseCallback OPTIONAL,
-    IN PSECURITY_SUBJECT_CONTEXT    SubjectContext OPTIONAL
-);
-
-NTKERNELAPI
-VOID
-FsRtlNotifyFullReportChange (
-    IN PNOTIFY_SYNC NotifySync,
-    IN PLIST_ENTRY  NotifyList,
-    IN PSTRING      FullTargetName,
-    IN USHORT       TargetNameOffset,
-    IN PSTRING      StreamName OPTIONAL,
-    IN PSTRING      NormalizedParentName OPTIONAL,
-    IN ULONG        FilterMatch,
-    IN ULONG        Action,
-    IN PVOID        TargetContext
-);
-
-NTKERNELAPI
-VOID
-IoAcquireVpbSpinLock (
-    OUT PKIRQL Irql
-);
-/*
-NTKERNELAPI
-NTSTATUS
-IoCreateFile (
-    OUT PHANDLE             FileHandle,
-    IN ACCESS_MASK          DesiredAccess,
-    IN POBJECT_ATTRIBUTES   ObjectAttributes,
-    OUT PIO_STATUS_BLOCK    IoStatusBlock,
-    IN PLARGE_INTEGER       AllocationSize OPTIONAL,
-    IN ULONG                FileAttributes,
-    IN ULONG                ShareAccess,
-    IN ULONG                CreateDisposition,
-    IN ULONG                CreateOptions,
-    IN PVOID                EaBuffer OPTIONAL,
-    IN ULONG                EaLength,
-    IN CREATE_FILE_TYPE     CreateFileType,
-    IN ULONG                ExtraCreateParameters,
-    IN ULONG                Options
-);
-*/
-  
-NTKERNELAPI
-PFILE_OBJECT
-IoCreateStreamFileObject (
-    IN PFILE_OBJECT   FileObject,
-    IN PDEVICE_OBJECT DeviceObject
-);
-
-NTKERNELAPI
-PDEVICE_OBJECT
-IoGetAttachedDevice (
-    IN PDEVICE_OBJECT DeviceObject
-);
-
-NTKERNELAPI
-PDEVICE_OBJECT
-IoGetBaseFileSystemDeviceObject (
-    IN PFILE_OBJECT FileObject
-);
-
-NTKERNELAPI
-PIRP
-IoGetTopLevelIrp (
-    VOID
-);
-
-NTKERNELAPI
-BOOLEAN
-IoIsOperationSynchronous (
-    IN PIRP Irp
-);
-
-NTKERNELAPI
-NTSTATUS
-IoQueryFileInformation (
-    IN PFILE_OBJECT             FileObject,
-    IN FILE_INFORMATION_CLASS   FileInformationClass,
-    IN ULONG                    Length,
-    OUT PVOID                   FileInformation,
-    OUT PULONG                  ReturnedLength
-);
-
-NTKERNELAPI
-NTSTATUS
-IoQueryFileVolumeInformation (
-    IN PFILE_OBJECT         FileObject,
-    IN FS_INFORMATION_CLASS FsInformationClass,
-    IN ULONG                Length,
-    OUT PVOID               FsInformation,
-    OUT PULONG              ReturnedLength
-);
-
-NTKERNELAPI
-VOID
-IoRegisterFileSystem (
-    IN PDEVICE_OBJECT DeviceObject
-);
-
-#if (_WIN32_WINNT >= 0x0400)
-typedef VOID (*PFSDNOTIFICATIONPROC) (
-    IN PDEVICE_OBJECT PtrTargetFileSystemDeviceObject,
-    IN BOOLEAN        DriverActive
-);
-
-NTKERNELAPI
-NTSTATUS
-IoRegisterFsRegistrationChange (
-    IN PDRIVER_OBJECT       DriverObject,
-    IN PFSDNOTIFICATIONPROC FSDNotificationProc
-);
-#endif // (_WIN32_WINNT >= 0x0400)
-
-NTKERNELAPI
-VOID
-IoReleaseVpbSpinLock (
-    IN KIRQL Irql
-);
-
-NTKERNELAPI
-VOID
-IoSetTopLevelIrp (
-    IN PIRP Irp
-);
-
-NTKERNELAPI
-VOID
-IoUnregisterFileSystem (
-    IN PDEVICE_OBJECT DeviceObject
-);
-
-NTKERNELAPI
-NTSTATUS
-IoVerifyVolume (
-    IN PDEVICE_OBJECT   DeviceObject,
-    IN BOOLEAN          AllowRawMount
-);
-
-NTKERNELAPI
-VOID
-KeAttachProcess (
-    IN PEPROCESS Process
-);
-
-NTKERNELAPI
-VOID
-KeDetachProcess (
-    VOID
-);
-
-NTKERNELAPI
-BOOLEAN
-MmCanFileBeTruncated (
-    IN PSECTION_OBJECT_POINTERS     SectionObjectPointer,
-    IN PLARGE_INTEGER               NewFileSize
-);
-
-NTKERNELAPI
-NTSTATUS
-MmCreateSection (
-    OUT PVOID               *SectionObject,
-    IN ACCESS_MASK          DesiredAccess,
-    IN POBJECT_ATTRIBUTES   ObjectAttributes OPTIONAL,
-    IN PLARGE_INTEGER       MaximumSize,
-    IN ULONG                SectionPageProtection,
-    IN ULONG                AllocationAttributes,
-    IN HANDLE               FileHandle OPTIONAL,
-    IN PFILE_OBJECT         File OPTIONAL
-);
-
-NTKERNELAPI
-BOOLEAN
-MmFlushImageSection (
-    IN PSECTION_OBJECT_POINTERS     SectionObjectPointer,
-    IN MMFLUSH_TYPE                 FlushType
-);
-
-#define MmIsRecursiveIoFault() ( \
-    (PsGetCurrentThread()->DisablePageFaultClustering) | \
-    (PsGetCurrentThread()->ForwardClusterOnly) \
-)
-
-NTKERNELAPI
-NTSTATUS
-ObOpenObjectByPointer (
-    IN PVOID            Object,
-    IN ULONG            HandleAttributes,
-    IN PACCESS_STATE    PassedAccessState OPTIONAL,
-    IN ACCESS_MASK      DesiredAccess OPTIONAL,
-    IN POBJECT_TYPE     ObjectType OPTIONAL,
-    IN KPROCESSOR_MODE  AccessMode,
-    OUT PHANDLE         Handle
-);
-
-NTKERNELAPI
-HANDLE
-PsReferenceImpersonationToken (
-    IN PETHREAD Thread
-);
-
-NTKERNELAPI
-HANDLE
-PsReferencePrimaryToken (
-    IN PEPROCESS Process
-);
-
-NTKERNELAPI
-NTSTATUS
-RtlConvertSidToUnicodeString (
-    OUT PUNICODE_STRING DestinationString,
-    IN PVOID            Sid,
-    IN BOOLEAN          AllocateDestinationString
-);
-
-NTKERNELAPI
-VOID
-SeCaptureSubjectContext (
-    OUT PSECURITY_SUBJECT_CONTEXT SubjectContext
-);
-
-NTKERNELAPI
-NTSTATUS
-SeMarkLogonSessionForTerminationNotification (
-    IN PLUID LogonId
-);
-
-typedef NTSTATUS (*PSE_LOGON_SESSION_TERMINATED_ROUTINE) (
-    IN PLUID LogonId
-);
-
-NTKERNELAPI
-NTSTATUS
-SeRegisterLogonSessionTerminatedRoutine (
-    IN PSE_LOGON_SESSION_TERMINATED_ROUTINE CallbackRoutine
-);
-
-NTKERNELAPI
-NTSTATUS
-SeUnregisterLogonSessionTerminatedRoutine (
-    IN PSE_LOGON_SESSION_TERMINATED_ROUTINE CallbackRoutine
-);
-
-NTSYSAPI
-NTSTATUS
-NTAPI
-ZwAllocateVirtualMemory (
-    IN HANDLE       ProcessHandle,
-    IN OUT PVOID    *BaseAddress,
-    IN ULONG        ZeroBits,
-    IN OUT PULONG   RegionSize,
-    IN ULONG        AllocationType,
-    IN ULONG        Protect
-);
-
-NTSYSAPI
-NTSTATUS
-NTAPI
-ZwCancelIoFile (
-    IN HANDLE               FileHandle,
-    OUT PIO_STATUS_BLOCK    IoStatusBlock
-);
-
-NTSYSAPI
-NTSTATUS
-NTAPI
-ZwCreateProcess (
-    OUT PHANDLE             ProcessHandle,
-    IN ACCESS_MASK          DesiredAccess,
-    IN POBJECT_ATTRIBUTES   ObjectAttributes OPTIONAL,
-    IN HANDLE               ParentProcessHandle,
-    IN BOOLEAN              InheritObjectTable,
-    IN HANDLE               SectionHandle,
-    IN HANDLE               DebugPort,
-    IN HANDLE               ExceptionPort
-);
-
-NTSYSAPI
-NTSTATUS
-NTAPI
-ZwCreateSection (
-    OUT PHANDLE             SectionHandle,
-    IN ACCESS_MASK          DesiredAccess,
-    IN POBJECT_ATTRIBUTES   ObjectAttributes OPTIONAL,
-    IN PLARGE_INTEGER       MaximumSize OPTIONAL,
-    IN ULONG                SectionPageProtection,
-    IN ULONG                AllocationAttributes,
-    IN HANDLE               FileHandle OPTIONAL
-);
-  
-#if 0
-NTSYSAPI
-NTSTATUS
-NTAPI
-ZwCreateThread (
-    OUT PHANDLE             ThreadHandle,
-    IN ACCESS_MASK          DesiredAccess,
-    IN POBJECT_ATTRIBUTES   ObjectAttributes OPTIONAL,
-    IN HANDLE               ProcessHandle OPTIONAL,
-    OUT PCLIENT_ID          ClientId OPTIONAL,
-    IN PCONTEXT             ThreadContext,
-    IN HANDLE               ThreadStack,
-    IN BOOLEAN              CreateSuspended
-);
-#endif
-  
-NTSYSAPI
-NTSTATUS
-NTAPI
-ZwDeleteFile (
-    IN POBJECT_ATTRIBUTES ObjectAttributes
-);
-
-NTSYSAPI
-NTSTATUS
-NTAPI
-ZwDeviceIoControlFile (
-    IN HANDLE               FileHandle,
-    IN HANDLE               Event OPTIONAL,
-    IN PIO_APC_ROUTINE      ApcRoutine OPTIONAL,
-    IN PVOID                ApcContext OPTIONAL,
-    OUT PIO_STATUS_BLOCK    IoStatusBlock,
-    IN ULONG                IoControlCode,
-    IN PVOID                InputBuffer OPTIONAL,
-    IN ULONG                InputBufferLength,
-    OUT PVOID               OutputBuffer OPTIONAL,
-    IN ULONG                OutputBufferLength
-);
-
-NTSYSAPI
-NTSTATUS
-NTAPI
-ZwFlushBuffersFile (
-    IN HANDLE               FileHandle,
-    OUT PIO_STATUS_BLOCK    IoStatusBlock
-);
-
-NTSYSAPI
-NTSTATUS
-NTAPI
-ZwFreeVirtualMemory (
-    IN HANDLE       ProcessHandle,
-    IN OUT PVOID    *BaseAddress,
-    IN OUT PULONG   RegionSize,
-    IN ULONG        FreeType
-);
-
-NTSYSAPI
-NTSTATUS
-NTAPI
-ZwFsControlFile (
-    IN HANDLE               FileHandle,
-    IN HANDLE               Event OPTIONAL,
-    IN PIO_APC_ROUTINE      ApcRoutine OPTIONAL,
-    IN PVOID                ApcContext OPTIONAL,
-    OUT PIO_STATUS_BLOCK    IoStatusBlock,
-    IN ULONG                FsControlCode,
-    IN PVOID                InputBuffer OPTIONAL,
-    IN ULONG                InputBufferLength,
-    OUT PVOID               OutputBuffer OPTIONAL,
-    IN ULONG                OutputBufferLength
-);
-
-NTSYSAPI
-NTSTATUS
-NTAPI
-ZwGetContextThread (
-    IN HANDLE       ThreadHandle,
-    IN OUT PCONTEXT ThreadContext
-);
-
-NTSYSAPI
-NTSTATUS
-NTAPI
-ZwLoadDriver (
-    // "\\Registry\\Machine\\System\\CurrentControlSet\\Services\\<DriverName>"
-    IN PUNICODE_STRING RegistryPath
-);
-
-NTSYSAPI
-NTSTATUS
-NTAPI
-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              FailImmediately,
-    IN BOOLEAN              ExclusiveLock
-);
-
-NTSYSAPI
-NTSTATUS
-NTAPI
-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                Length,
-    IN ULONG                CompletionFilter,
-    IN BOOLEAN              WatchTree
-);
-
-NTSYSAPI
-NTSTATUS
-NTAPI
-ZwOpenDirectoryObject (
-    OUT PHANDLE             DirectoryHandle,
-    IN ACCESS_MASK          DesiredAccess,
-    IN POBJECT_ATTRIBUTES   ObjectAttributes
-);
-
-NTSYSAPI
-NTSTATUS
-NTAPI
-ZwOpenFile (
-    OUT PHANDLE             FileHandle,
-    IN ACCESS_MASK          DesiredAccess,
-    IN POBJECT_ATTRIBUTES   ObjectAttributes,
-    OUT PIO_STATUS_BLOCK    IoStatusBlock,
-    IN ULONG                ShareAccess,
-    IN ULONG                OpenOptions
-);
-
-NTSYSAPI
-NTSTATUS
-NTAPI
-ZwOpenProcess (
-    OUT PHANDLE             ProcessHandle,
-    IN ACCESS_MASK          DesiredAccess,
-    IN POBJECT_ATTRIBUTES   ObjectAttributes,
-    IN PCLIENT_ID           ClientId OPTIONAL
-);
-
-#if 0
-NTSYSAPI
-NTSTATUS
-NTAPI
-ZwOpenProcessToken (
-    IN PEPROCESS    Process,
-    IN ACCESS_MASK  DesiredAccess,
-    OUT PHANDLE     TokenHandle
-);
-#endif
-  
-NTSYSAPI
-NTSTATUS
-NTAPI
-ZwOpenSymbolicLinkObject (
-    OUT PHANDLE             SymbolicLinkHandle,
-    IN ACCESS_MASK          DesiredAccess,
-    IN POBJECT_ATTRIBUTES   ObjectAttributes
-);
-
-#if 0
-NTSYSAPI
-NTSTATUS
-NTAPI
-ZwOpenThreadToken (
-    IN PETHREAD     Thread,
-    IN ACCESS_MASK  DesiredAccess,
-    IN BOOLEAN      OpenAsSelf,
-    OUT PHANDLE     TokenHandle
-);
-#endif
-  
-NTSYSAPI
-NTSTATUS
-NTAPI
-ZwQueryDirectoryFile (
-    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
-);
-
-NTSYSAPI
-NTSTATUS
-NTAPI
-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
-);
-
-NTSYSAPI
-NTSTATUS
-NTAPI
-ZwQueryInformationToken (
-    IN HANDLE                   TokenHandle,
-    IN TOKEN_INFORMATION_CLASS  TokenInformationClass,
-    OUT PVOID                   TokenInformation,
-    IN ULONG                    Length,
-    OUT PULONG                  ResultLength
-);
-
-NTSYSAPI
-NTSTATUS
-NTAPI
-ZwQueryVolumeInformationFile (
-    IN HANDLE               FileHandle,
-    OUT PIO_STATUS_BLOCK    IoStatusBlock,
-    OUT PVOID               FsInformation,
-    IN ULONG                Length,
-    IN FS_INFORMATION_CLASS FsInformationClass
-);
-
-NTSYSAPI
-NTSTATUS
-NTAPI
-ZwSetEaFile (
-    IN HANDLE               FileHandle,
-    OUT PIO_STATUS_BLOCK    IoStatusBlock,
-    OUT PVOID               Buffer,
-    IN ULONG                Length
-);
-
-#if 0
-NTSYSAPI
-NTSTATUS
-NTAPI
-ZwSetVolumeInformationFile (
-    IN HANDLE               FileHandle,
-    OUT PIO_STATUS_BLOCK    IoStatusBlock,
-    IN PVOID                FsInformation,
-    IN ULONG                Length,
-    IN FS_INFORMATION_CLASS FsInformationClass
-);
-#endif
-  
-NTSYSAPI
-NTSTATUS
-NTAPI
-ZwUnloadDriver (
-    // "\\Registry\\Machine\\System\\CurrentControlSet\\Services\\<DriverName>"
-    IN PUNICODE_STRING RegistryPath
-);
-
-NTSYSAPI
-NTSTATUS
-NTAPI
-ZwUnlockFile (
-    IN HANDLE               FileHandle,
-    OUT PIO_STATUS_BLOCK    IoStatusBlock,
-    IN PLARGE_INTEGER       ByteOffset,
-    IN PLARGE_INTEGER       Length,
-    IN PULONG               Key
-);
-
-#ifdef __cplusplus
-}
-#endif
-
-/* --- BEGIN - REACTOS ONLY --- */
-
-typedef struct _BCB
-{
-       LIST_ENTRY      CacheSegmentListHead;
-       PFILE_OBJECT    FileObject;
-       KSPIN_LOCK      BcbLock;
-       
-} BCB, *PBCB;
-
-#define CACHE_SEGMENT_SIZE (0x1000)
-
-struct _MEMORY_AREA;
-
-typedef struct _CACHE_SEGMENT
-{
-       PVOID                   BaseAddress;
-       struct _MEMORY_AREA     * MemoryArea;
-       BOOLEAN                 Valid;
-       LIST_ENTRY              ListEntry;
-       ULONG                   FileOffset;
-       KEVENT                  Lock;
-       ULONG                   ReferenceCount;
-       PBCB                    Bcb;
-       
-} CACHE_SEGMENT, *PCACHE_SEGMENT;
-
-
-NTSTATUS
-CcFlushCachePage (
-       PCACHE_SEGMENT  CacheSeg
-       );
-
-NTSTATUS
-CcReleaseCachePage (
-       PBCB            Bcb,
-       PCACHE_SEGMENT  CacheSeg,
-       BOOLEAN         Valid
-       );
-
-NTSTATUS
-CcRequestCachePage (
-       PBCB            Bcb,
-       ULONG           FileOffset,
-       PVOID           * BaseAddress,
-       PBOOLEAN        UptoDate,
-       PCACHE_SEGMENT  * CacheSeg
-       );
-
-NTSTATUS
-CcInitializeFileCache (
-       PFILE_OBJECT    FileObject,
-       PBCB            * Bcb
-       );
-
-NTSTATUS
-CcReleaseFileCache (
-       PFILE_OBJECT    FileObject,
-       PBCB            Bcb
-       );
-
-#include <ddk/cctypes.h>
-
-#include <ddk/ccfuncs.h>
-
-/* --- END - REACTOS ONLY --- */
-
-#endif // _NTIFS_
index fe2bb9e..5d5c771 100644 (file)
@@ -111,167 +111,539 @@ enum
  *        RootDirectory = Where the object should be placed or NULL
  *        SecurityDescriptor = Ignored
  */
-VOID InitializeObjectAttributes(POBJECT_ATTRIBUTES InitializedAttributes,
-                               PUNICODE_STRING ObjectName,
-                               ULONG Attributes,
-                               HANDLE RootDirectory,
-                                PSECURITY_DESCRIPTOR SecurityDescriptor);
-
-VOID InitializeListHead(PLIST_ENTRY ListHead);
-VOID InsertHeadList(PLIST_ENTRY ListHead, PLIST_ENTRY Entry);
-VOID InsertTailList(PLIST_ENTRY ListHead, PLIST_ENTRY Entry);
-BOOLEAN IsListEmpty(PLIST_ENTRY ListHead);
-PSINGLE_LIST_ENTRY PopEntryList(PSINGLE_LIST_ENTRY ListHead);
-VOID PushEntryList(PSINGLE_LIST_ENTRY ListHead, PSINGLE_LIST_ENTRY Entry);
-VOID RemoveEntryList(PLIST_ENTRY Entry);
-PLIST_ENTRY RemoveHeadList(PLIST_ENTRY ListHead);
-PLIST_ENTRY RemoveTailList(PLIST_ENTRY ListHead);
-ULONG RtlAnsiStringToUnicodeSize(PANSI_STRING AnsiString);
-NTSTATUS RtlAnsiStringToUnicodeString(PUNICODE_STRING DestinationString,
-                                     PANSI_STRING SourceString,
-                                     BOOLEAN AllocateDestinationString);
-NTSTATUS RtlAppendUnicodeStringToString(PUNICODE_STRING Destination,
-                                       PUNICODE_STRING Source);
-NTSTATUS RtlAppendUnicodeToString(PUNICODE_STRING Destination,
-                                 PWSTR Source);
-NTSTATUS RtlCharToInteger(PCSZ String, ULONG Base, PULONG Value);
-NTSTATUS RtlCheckRegistryKey(ULONG RelativeTo, PWSTR Path);
-ULONG RtlCompareMemory(PVOID Source1, PVOID Source2, ULONG Length);
-LONG RtlCompareString(PSTRING String1, PSTRING String2, 
-                     BOOLEAN CaseInsensitive);
-LONG RtlCompareUnicodeString(PUNICODE_STRING String1,
-                            PUNICODE_STRING String2,
-                            BOOLEAN BaseInsensitive);
-LARGE_INTEGER RtlConvertLongToLargeInteger(LONG SignedInteger);
-LARGE_INTEGER RtlConvertUlongToLargeInteger(ULONG UnsignedInteger);
-VOID RtlCopyBytes(PVOID Destination, CONST VOID* Source, ULONG Length);
-VOID RtlCopyMemory(VOID* Destination, CONST VOID* Source, ULONG Length);
-VOID RtlCopyString(PSTRING DestinationString, PSTRING SourceString);
-VOID RtlCopyUnicodeString(PUNICODE_STRING DestinationString,
-                         PUNICODE_STRING SourceString);
-NTSTATUS RtlCreateRegistryKey(ULONG RelativeTo,
-                             PWSTR Path);
-NTSTATUS RtlCreateSecurityDescriptor(PSECURITY_DESCRIPTOR SecurityDescriptor,
-                                    ULONG Revision);
-NTSTATUS RtlDeleteRegistryValue(ULONG RelativeTo,
-                               PWSTR Path,
-                               PWSTR ValueName);
-LARGE_INTEGER RtlEnlargedIntegerMultiply(LONG Multiplicand,
-                                        LONG Multiplier);
-ULONG RtlEnlargedUnsignedDivide(ULARGE_INTEGER Dividend,
-                               ULONG Divisor,
-                               PULONG Remainder);
-LARGE_INTEGER RtlEnlargedUnsignedMultiply(ULONG Multiplicand,
-                                         ULONG Multiplier);
-BOOLEAN RtlEqualString(PSTRING String1,
-                      PSTRING String2,
-                      BOOLEAN CaseInSensitive);
-BOOLEAN RtlEqualUnicodeString(PUNICODE_STRING String1,
-                             PUNICODE_STRING String2,
-                             BOOLEAN CaseInSensitive);
-LARGE_INTEGER RtlExtendedIntegerMultiply(LARGE_INTEGER Multiplicand,
-                                        LONG Multiplier);
-LARGE_INTEGER RtlExtendedLargeIntegerDivide(LARGE_INTEGER Dividend,
-                                           ULONG Divisor,
-                                           PULONG Remainder);
-LARGE_INTEGER RtlExtendedMagicDivide(LARGE_INTEGER Dividend,
-                                    LARGE_INTEGER MagicDivisor,
-                                    CCHAR ShiftCount);
-VOID RtlFillMemory(PVOID Destination, ULONG Length, UCHAR Fill);
-VOID RtlFreeAnsiString(PANSI_STRING AnsiString);
-VOID RtlFreeUnicodeString(PUNICODE_STRING UnicodeString);
-VOID RtlInitAnsiString(PANSI_STRING DestinationString,
-                      PCSZ SourceString);
-VOID RtlInitString(PSTRING DestinationString, PCSZ SourceString);
-VOID RtlInitUnicodeString(PUNICODE_STRING DestinationString,
-                         PCWSTR SourceString);
-NTSTATUS RtlIntegerToUnicodeString(ULONG Value,
-                                  ULONG Base,
-                                  PUNICODE_STRING String);
-LARGE_INTEGER RtlLargeIntegerAdd(LARGE_INTEGER Addend1,
-                                LARGE_INTEGER Addend2);
-VOID RtlLargeIntegerAnd(PLARGE_INTEGER Result,
-                       LARGE_INTEGER Source,
-                       LARGE_INTEGER Mask);
+VOID
+InitializeObjectAttributes (
+       POBJECT_ATTRIBUTES      InitializedAttributes,
+       PUNICODE_STRING         ObjectName,
+       ULONG                   Attributes,
+       HANDLE                  RootDirectory,
+       PSECURITY_DESCRIPTOR    SecurityDescriptor
+       );
+
+VOID
+InitializeListHead (
+       PLIST_ENTRY     ListHead
+       );
+
+VOID
+InsertHeadList (
+       PLIST_ENTRY     ListHead,
+       PLIST_ENTRY     Entry
+       );
+
+VOID
+InsertTailList (
+       PLIST_ENTRY     ListHead,
+       PLIST_ENTRY     Entry
+       );
+
+BOOLEAN
+IsListEmpty (
+       PLIST_ENTRY     ListHead
+       );
+
+PSINGLE_LIST_ENTRY
+PopEntryList (
+       PSINGLE_LIST_ENTRY      ListHead
+       );
+
+VOID
+PushEntryList (
+       PSINGLE_LIST_ENTRY      ListHead,
+       PSINGLE_LIST_ENTRY      Entry
+       );
+
+VOID
+RemoveEntryList (
+       PLIST_ENTRY     Entry
+       );
+
+PLIST_ENTRY
+RemoveHeadList (
+       PLIST_ENTRY     ListHead
+       );
+
+PLIST_ENTRY
+RemoveTailList (
+       PLIST_ENTRY     ListHead
+       );
+
+ULONG
+RtlAnsiStringToUnicodeSize (
+       PANSI_STRING    AnsiString
+       );
+
+NTSTATUS
+RtlAnsiStringToUnicodeString (
+       PUNICODE_STRING DestinationString,
+       PANSI_STRING    SourceString,
+       BOOLEAN         AllocateDestinationString
+       );
+
+NTSTATUS
+RtlAppendUnicodeStringToString (
+       PUNICODE_STRING Destination,
+       PUNICODE_STRING Source
+       );
+
+NTSTATUS
+RtlAppendUnicodeToString (
+       PUNICODE_STRING Destination,
+       PWSTR           Source
+       );
+
+NTSTATUS
+RtlCharToInteger (
+       PCSZ    String,
+       ULONG   Base,
+       PULONG  Value
+       );
+
+NTSTATUS
+RtlCheckRegistryKey (
+       ULONG   RelativeTo,
+       PWSTR   Path
+       );
+
+ULONG
+RtlCompareMemory (
+       PVOID   Source1,
+       PVOID   Source2,
+       ULONG   Length
+       );
+
+LONG
+RtlCompareString (
+       PSTRING String1,
+       PSTRING String2, 
+       BOOLEAN CaseInsensitive
+       );
+
+LONG
+RtlCompareUnicodeString (
+       PUNICODE_STRING String1,
+       PUNICODE_STRING String2,
+       BOOLEAN         BaseInsensitive
+       );
+
+LARGE_INTEGER
+RtlConvertLongToLargeInteger (
+       LONG    SignedInteger
+       );
+
+LARGE_INTEGER
+RtlConvertUlongToLargeInteger (
+       ULONG   UnsignedInteger
+       );
+
+VOID
+RtlCopyBytes (
+       PVOID           Destination,
+       CONST VOID      * Source,
+       ULONG           Length
+       );
+
+VOID
+RtlCopyMemory (
+       VOID            * Destination,
+       CONST VOID      * Source,
+       ULONG           Length
+       );
+
+VOID
+RtlCopyString (
+       PSTRING DestinationString,
+       PSTRING SourceString
+       );
+
+VOID
+RtlCopyUnicodeString (
+       PUNICODE_STRING DestinationString,
+       PUNICODE_STRING SourceString
+       );
+
+NTSTATUS
+RtlCreateRegistryKey (
+       ULONG   RelativeTo,
+       PWSTR   Path
+       );
+
+NTSTATUS
+RtlCreateSecurityDescriptor (
+       PSECURITY_DESCRIPTOR    SecurityDescriptor,
+       ULONG                   Revision
+       );
+
+NTSTATUS
+RtlDeleteRegistryValue (
+       ULONG   RelativeTo,
+       PWSTR   Path,
+       PWSTR   ValueName
+       );
+
+LARGE_INTEGER
+RtlEnlargedIntegerMultiply (
+       LONG    Multiplicand,
+       LONG    Multiplier
+       );
+
+ULONG
+RtlEnlargedUnsignedDivide (
+       ULARGE_INTEGER  Dividend,
+       ULONG           Divisor,
+       PULONG          Remainder
+       );
+
+LARGE_INTEGER
+RtlEnlargedUnsignedMultiply (
+       ULONG   Multiplicand,
+       ULONG   Multiplier
+       );
+
+BOOLEAN
+RtlEqualString (
+       PSTRING String1,
+       PSTRING String2,
+       BOOLEAN CaseInSensitive
+       );
+
+BOOLEAN
+RtlEqualUnicodeString (
+       PUNICODE_STRING String1,
+       PUNICODE_STRING String2,
+       BOOLEAN         CaseInSensitive
+       );
+
+LARGE_INTEGER
+RtlExtendedIntegerMultiply (
+       LARGE_INTEGER   Multiplicand,
+       LONG            Multiplier
+       );
+
+LARGE_INTEGER
+RtlExtendedLargeIntegerDivide (
+       LARGE_INTEGER   Dividend,
+       ULONG           Divisor,
+       PULONG          Remainder
+       );
+
+LARGE_INTEGER
+RtlExtendedMagicDivide (
+       LARGE_INTEGER   Dividend,
+       LARGE_INTEGER   MagicDivisor,
+       CCHAR           ShiftCount
+       );
+
+VOID
+RtlFillMemory (
+       PVOID   Destination,
+       ULONG   Length,
+       UCHAR   Fill
+       );
+
+VOID
+RtlFreeAnsiString (
+       PANSI_STRING    AnsiString
+       );
+
+VOID
+RtlFreeUnicodeString (
+       PUNICODE_STRING UnicodeString
+       );
+
+VOID
+RtlInitAnsiString (
+       PANSI_STRING    DestinationString,
+       PCSZ            SourceString
+       );
+
+VOID
+RtlInitString (
+       PSTRING DestinationString,
+       PCSZ    SourceString
+       );
+
+VOID
+RtlInitUnicodeString (
+       PUNICODE_STRING DestinationString,
+       PCWSTR          SourceString
+       );
+
+NTSTATUS
+RtlIntegerToUnicodeString (
+       ULONG           Value,
+       ULONG           Base,
+       PUNICODE_STRING String
+       );
+
+LARGE_INTEGER
+RtlLargeIntegerAdd (
+       LARGE_INTEGER   Addend1,
+       LARGE_INTEGER   Addend2
+       );
+
+VOID
+RtlLargeIntegerAnd (
+       PLARGE_INTEGER  Result,
+       LARGE_INTEGER   Source,
+       LARGE_INTEGER   Mask
+       );
 
 /* MISSING FUNCTIONS GO HERE */
-LARGE_INTEGER RtlConvertLongToLargeInteger(LONG SignedInteger);
-LARGE_INTEGER RtlConvertUlongToLargeInteger(ULONG UnsignedInteger);
-LARGE_INTEGER RtlEnlargedIntegerMultiply(LONG Multiplicand,
-                                         LONG Multiplier);
-ULONG RtlEnlargedUnsignedDivide(ULARGE_INTEGER Dividend,
-                               ULONG Divisor,
-                               PULONG Remainder);
-LARGE_INTEGER RtlEnlargedUnsignedMultiply(ULONG Multiplicand,
-                                         ULONG Multipler);
-LARGE_INTEGER RtlExtendedIntegerMultiply(LARGE_INTEGER Multiplicand,
-                                         LONG Multiplier);
-LARGE_INTEGER RtlExtendedLargeIntegerDivide(LARGE_INTEGER Dividend,
-                                           ULONG Divisor,
-                                           PULONG Remainder);
-LARGE_INTEGER RtlExtendedMagicDivide(LARGE_INTEGER Dividend,
-                                    LARGE_INTEGER MagicDivisor,
-                                    CCHAR ShiftCount);
-LARGE_INTEGER ExInterlockedAddLargeInteger(PLARGE_INTEGER Addend,
-                                          LARGE_INTEGER Increment,
-                                          PKSPIN_LOCK Lock);
-LARGE_INTEGER RtlLargeIntegerAdd(LARGE_INTEGER Addend1,
-                                 LARGE_INTEGER Addend2);
-VOID RtlLargeIntegerAnd(PLARGE_INTEGER Result,
-                       LARGE_INTEGER Source,
-                       LARGE_INTEGER Mask);
-LARGE_INTEGER RtlLargeIntegerArithmeticShift(LARGE_INTEGER LargeInteger,
-                                            CCHAR ShiftCount);
-LARGE_INTEGER RtlLargeIntegerDivide(LARGE_INTEGER Dividend,
-                                   LARGE_INTEGER Divisor,
-                                   PLARGE_INTEGER Remainder);
-BOOLEAN RtlLargeIntegerEqualTo(LARGE_INTEGER Operand1,
-                               LARGE_INTEGER Operand2);
-BOOLEAN RtlLargeIntegerEqualToZero(LARGE_INTEGER Operand);
-BOOLEAN RtlLargeIntegerGreaterThan(LARGE_INTEGER Operand1,
-                                   LARGE_INTEGER Operand2);
-BOOLEAN RtlLargeIntegerGreaterThanOrEqualTo(LARGE_INTEGER Operand1,
-                                            LARGE_INTEGER Operand2);
-BOOLEAN RtlLargeIntegerGreaterThanOrEqualToZero(LARGE_INTEGER Operand1);
-BOOLEAN RtlLargeIntegerGreaterThanZero(LARGE_INTEGER Operand1);
-BOOLEAN RtlLargeIntegerLessThan(LARGE_INTEGER Operand1,
-                                LARGE_INTEGER Operand2);
-BOOLEAN RtlLargeIntegerLessThanOrEqualTo(LARGE_INTEGER Operand1,
-                                         LARGE_INTEGER Operand2);
-BOOLEAN RtlLargeIntegerLessThanOrEqualToZero(LARGE_INTEGER Operand);
-BOOLEAN RtlLargeIntegerLessThanZero(LARGE_INTEGER Operand);
-LARGE_INTEGER RtlLargeIntegerNegate(LARGE_INTEGER Subtrahend);
-BOOLEAN RtlLargeIntegerNotEqualTo(LARGE_INTEGER Operand1,
-                                  LARGE_INTEGER Operand2);
-BOOLEAN RtlLargeIntegerNotEqualToZero(LARGE_INTEGER Operand);
-LARGE_INTEGER RtlLargeIntegerShiftLeft(LARGE_INTEGER LargeInteger,
-                                      CCHAR ShiftCount);
-LARGE_INTEGER RtlLargeIntegerShiftRight(LARGE_INTEGER LargeInteger,
-                                       CCHAR ShiftCount);
-LARGE_INTEGER RtlLargeIntegerSubtract(LARGE_INTEGER Minuend,
-                                     LARGE_INTEGER Subtrahend);
-
-ULONG RtlLengthSecurityDescriptor(PSECURITY_DESCRIPTOR SecurityDescriptor);
-VOID RtlMoveMemory(PVOID Destination, CONST VOID* Source, ULONG Length);
-NTSTATUS RtlQueryRegistryValues(ULONG RelativeTo,
-                               PWSTR Path, 
-                               PRTL_QUERY_REGISTRY_TABLE QueryTable,
-                               PVOID Context, PVOID Environment);
-VOID RtlRetrieveUlong(PULONG DestinationAddress,
-                     PULONG SourceAddress);
-VOID RtlRetrieveUshort(PUSHORT DestinationAddress,
-                      PUSHORT SourceAddress);
-NTSTATUS RtlSetDaclSecurityDescriptor(PSECURITY_DESCRIPTOR SecurityDescriptor,
-                                     BOOLEAN DaclPresent,
-                                     PACL Dacl,
-                                     BOOLEAN DaclDefaulted);
-VOID RtlStoreLong(PULONG Address, ULONG Value);
-VOID RtlStoreUshort(PUSHORT Address, USHORT Value);
-BOOLEAN RtlTimeFieldsToTime(PTIME_FIELDS TimeFields, PLARGE_INTEGER Time);
-VOID RtlTimeToTimeFields(PLARGE_INTEGER Time, PTIME_FIELDS TimeFields);
-PWSTR RtlStrtok(PUNICODE_STRING _string, PWSTR _sep, PWSTR* temp);
-VOID RtlGetCallersAddress(PVOID* CallersAddress);
-VOID RtlZeroMemory(PVOID Destination, ULONG Length);
+
+LARGE_INTEGER
+RtlConvertLongToLargeInteger (
+       LONG    SignedInteger
+       );
+
+LARGE_INTEGER
+RtlConvertUlongToLargeInteger (
+       ULONG   UnsignedInteger
+       );
+
+LARGE_INTEGER
+RtlEnlargedIntegerMultiply (
+       LONG    Multiplicand,
+       LONG    Multiplier
+       );
+
+ULONG
+RtlEnlargedUnsignedDivide (
+       ULARGE_INTEGER  Dividend,
+       ULONG           Divisor,
+       PULONG          Remainder
+       );
+
+LARGE_INTEGER
+RtlEnlargedUnsignedMultiply (
+       ULONG   Multiplicand,
+       ULONG   Multipler
+       );
+
+LARGE_INTEGER
+RtlExtendedIntegerMultiply (
+       LARGE_INTEGER   Multiplicand,
+       LONG            Multiplier
+       );
+
+LARGE_INTEGER
+RtlExtendedLargeIntegerDivide (
+       LARGE_INTEGER   Dividend,
+       ULONG           Divisor,
+       PULONG          Remainder
+       );
+
+LARGE_INTEGER
+RtlExtendedMagicDivide (
+       LARGE_INTEGER   Dividend,
+       LARGE_INTEGER   MagicDivisor,
+       CCHAR           ShiftCount
+       );
+
+LARGE_INTEGER
+ExInterlockedAddLargeInteger (
+       PLARGE_INTEGER  Addend,
+       LARGE_INTEGER   Increment,
+       PKSPIN_LOCK     Lock
+       );
+
+LARGE_INTEGER
+RtlLargeIntegerAdd (
+       LARGE_INTEGER   Addend1,
+       LARGE_INTEGER   Addend2
+       );
+
+VOID
+RtlLargeIntegerAnd (
+       PLARGE_INTEGER  Result,
+       LARGE_INTEGER   Source,
+       LARGE_INTEGER   Mask
+       );
+
+LARGE_INTEGER
+RtlLargeIntegerArithmeticShift (
+       LARGE_INTEGER   LargeInteger,
+       CCHAR   ShiftCount
+       );
+
+LARGE_INTEGER
+RtlLargeIntegerDivide (
+       LARGE_INTEGER   Dividend,
+       LARGE_INTEGER   Divisor,
+       PLARGE_INTEGER  Remainder
+       );
+
+BOOLEAN
+RtlLargeIntegerEqualTo (
+       LARGE_INTEGER   Operand1,
+       LARGE_INTEGER   Operand2
+       );
+
+BOOLEAN
+RtlLargeIntegerEqualToZero (
+       LARGE_INTEGER   Operand
+       );
+
+BOOLEAN
+RtlLargeIntegerGreaterThan (
+       LARGE_INTEGER   Operand1,
+       LARGE_INTEGER   Operand2
+       );
+
+BOOLEAN
+RtlLargeIntegerGreaterThanOrEqualTo (
+       LARGE_INTEGER   Operand1,
+       LARGE_INTEGER   Operand2
+       );
+
+BOOLEAN
+RtlLargeIntegerGreaterThanOrEqualToZero (
+       LARGE_INTEGER   Operand1
+       );
+
+BOOLEAN
+RtlLargeIntegerGreaterThanZero (
+       LARGE_INTEGER   Operand1
+       );
+
+BOOLEAN
+RtlLargeIntegerLessThan (
+       LARGE_INTEGER   Operand1,
+       LARGE_INTEGER   Operand2
+       );
+
+BOOLEAN
+RtlLargeIntegerLessThanOrEqualTo (
+       LARGE_INTEGER   Operand1,
+       LARGE_INTEGER   Operand2
+       );
+
+BOOLEAN
+RtlLargeIntegerLessThanOrEqualToZero (
+       LARGE_INTEGER   Operand
+       );
+
+BOOLEAN
+RtlLargeIntegerLessThanZero (
+       LARGE_INTEGER   Operand
+       );
+
+LARGE_INTEGER
+RtlLargeIntegerNegate (
+       LARGE_INTEGER   Subtrahend
+       );
+
+BOOLEAN
+RtlLargeIntegerNotEqualTo (
+       LARGE_INTEGER   Operand1,
+       LARGE_INTEGER   Operand2
+       );
+
+BOOLEAN
+RtlLargeIntegerNotEqualToZero (
+       LARGE_INTEGER   Operand
+       );
+
+LARGE_INTEGER
+RtlLargeIntegerShiftLeft (
+       LARGE_INTEGER   LargeInteger,
+       CCHAR           ShiftCount
+       );
+
+LARGE_INTEGER
+RtlLargeIntegerShiftRight (
+       LARGE_INTEGER   LargeInteger,
+       CCHAR           ShiftCount
+       );
+
+LARGE_INTEGER
+RtlLargeIntegerSubtract (
+       LARGE_INTEGER   Minuend,
+       LARGE_INTEGER   Subtrahend
+       );
+
+ULONG
+RtlLengthSecurityDescriptor (
+       PSECURITY_DESCRIPTOR    SecurityDescriptor
+       );
+
+VOID
+RtlMoveMemory (
+       PVOID           Destination,
+       CONST VOID      * Source,
+       ULONG           Length
+       );
+
+NTSTATUS
+RtlQueryRegistryValues (
+       ULONG                           RelativeTo,
+       PWSTR                           Path, 
+       PRTL_QUERY_REGISTRY_TABLE       QueryTable,
+       PVOID                           Context,
+       PVOID                           Environment
+       );
+
+VOID
+RtlRetrieveUlong (
+       PULONG  DestinationAddress,
+       PULONG  SourceAddress
+       );
+
+VOID
+RtlRetrieveUshort (
+       PUSHORT DestinationAddress,
+       PUSHORT SourceAddress
+       );
+
+NTSTATUS
+RtlSetDaclSecurityDescriptor (
+       PSECURITY_DESCRIPTOR    SecurityDescriptor,
+       BOOLEAN                 DaclPresent,
+       PACL                    Dacl,
+       BOOLEAN                 DaclDefaulted
+       );
+
+VOID
+RtlStoreLong (
+       PULONG  Address,
+       ULONG   Value
+       );
+
+VOID
+RtlStoreUshort (
+       PUSHORT Address,
+       USHORT  Value
+       );
+
+BOOLEAN
+RtlTimeFieldsToTime (
+       PTIME_FIELDS    TimeFields,
+       PLARGE_INTEGER  Time
+       );
+
+VOID
+RtlTimeToTimeFields (
+       PLARGE_INTEGER  Time,
+       PTIME_FIELDS    TimeFields
+       );
+
+PWSTR
+RtlStrtok (
+       PUNICODE_STRING _string,
+       PWSTR           _sep,
+       PWSTR           * temp
+       );
+
+VOID
+RtlGetCallersAddress (
+       PVOID   * CallersAddress
+       );
+
+VOID
+RtlZeroMemory (
+       PVOID   Destination,
+       ULONG   Length
+       );
 
 typedef struct {
        ULONG           Length;
@@ -280,60 +652,154 @@ typedef struct {
 
 // Heap creation routine
 
-HANDLE STDCALL RtlCreateHeap(ULONG Flags, 
-                            PVOID BaseAddress, 
-                            ULONG SizeToReserve, 
-                            ULONG SizeToCommit, 
-                            PVOID Unknown,
-                            PRTL_HEAP_DEFINITION Definition);
+HANDLE
+STDCALL
+RtlCreateHeap (
+       ULONG                   Flags, 
+       PVOID                   BaseAddress, 
+       ULONG                   SizeToReserve, 
+       ULONG                   SizeToCommit, 
+       PVOID                   Unknown,
+       PRTL_HEAP_DEFINITION    Definition
+       );
+
+PVOID
+STDCALL
+RtlAllocateHeap (
+       HANDLE  Heap, 
+       ULONG   Flags, 
+       ULONG   Size
+       );
+
+
+BOOLEAN
+STDCALL
+RtlFreeHeap (
+       HANDLE  Heap, 
+       ULONG   Flags, 
+       PVOID   Address
+       );
+
+NTSTATUS
+RtlUnicodeStringToAnsiString (
+       IN OUT  PANSI_STRING    DestinationString,
+       IN      PUNICODE_STRING SourceString,
+       IN      BOOLEAN         AllocateDestinationString
+       );
+
+NTSTATUS
+RtlUnicodeStringToInteger (
+       IN      PUNICODE_STRING String,
+       IN      ULONG           Base,
+       OUT     PULONG          Value
+       );
+
+NTSTATUS
+RtlUpcaseUnicodeString (
+       IN OUT  PUNICODE_STRING DestinationString,
+       IN      PUNICODE_STRING SourceString,
+       IN      BOOLEAN         AllocateDestinationString
+       );
+
+VOID
+RtlUpperString (
+       PSTRING DestinationString,
+       PSTRING SourceString
+       );
+
+BOOLEAN
+RtlValidSecurityDescriptor (
+       PSECURITY_DESCRIPTOR    SecurityDescriptor
+       );
+
+NTSTATUS
+RtlWriteRegistryValue (
+       ULONG   RelativeTo,
+       PWSTR   Path,
+       PWSTR   ValueName,
+       ULONG   ValueType,
+       PVOID   ValueData,
+       ULONG   ValueLength
+       );
 
-PVOID STDCALL RtlAllocateHeap(HANDLE Heap, 
-                             ULONG Flags, 
-                             ULONG Size);
+VOID
+RtlStoreUlong (
+       PULONG  Address,
+       ULONG   Value
+       );
 
 
-BOOLEAN STDCALL RtlFreeHeap(HANDLE Heap, 
-                           ULONG Flags, 
-                           PVOID Address);
+DWORD
+RtlNtStatusToDosError (
+       NTSTATUS        StatusCode
+       );
 
-NTSTATUS RtlUnicodeStringToAnsiString(IN OUT PANSI_STRING DestinationString,
-                                      IN PUNICODE_STRING SourceString,
-                                      IN BOOLEAN AllocateDestinationString);
-NTSTATUS RtlUnicodeStringToInteger(IN PUNICODE_STRING String, IN ULONG Base,
-                                   OUT PULONG Value);
-NTSTATUS RtlUpcaseUnicodeString(IN OUT PUNICODE_STRING DestinationString,
-                                IN PUNICODE_STRING SourceString,
-                                IN BOOLEAN AllocateDestinationString);
-VOID RtlUpperString(PSTRING DestinationString, PSTRING SourceString);
-BOOLEAN RtlValidSecurityDescriptor(PSECURITY_DESCRIPTOR SecurityDescriptor);
-NTSTATUS RtlWriteRegistryValue(ULONG RelativeTo,
-                              PWSTR Path,
-                              PWSTR ValueName,
-                              ULONG ValueType,
-                              PVOID ValueData,
-                              ULONG ValueLength);
 
 
+BOOL
+WINAPI
+RtlDestroyHeap (
+       HANDLE  hheap
+       );
 
+LPVOID
+STDCALL
+RtlReAllocHeap (
+       HANDLE  hheap,
+       DWORD   flags,
+       LPVOID  ptr, 
+       DWORD   size
+       );
 
+HANDLE
+WINAPI
+RtlGetProcessHeap (VOID);
 
-VOID RtlStoreUlong(PULONG Address,
-                  ULONG Value);
+BOOL
+WINAPI
+RtlLockHeap (
+       HANDLE  hheap
+       );
 
+BOOL
+WINAPI
+RtlUnlockHeap (
+       HANDLE  hheap
+       );
 
-DWORD RtlNtStatusToDosError(NTSTATUS StatusCode);
+UINT
+RtlCompactHeap (
+       HANDLE  hheap,
+       DWORD   flags
+       );
 
+DWORD
+WINAPI
+RtlSizeHeap (
+       HANDLE  hheap,
+       DWORD   flags,
+       PVOID   pmem
+       );
 
+BOOL
+WINAPI
+RtlValidateHeap (
+       HANDLE  hheap,
+       DWORD   flags,
+       PVOID   pmem
+       );
 
-BOOL WINAPI RtlDestroyHeap(HANDLE hheap);
-LPVOID STDCALL RtlReAllocHeap(HANDLE hheap, DWORD flags, LPVOID ptr, 
-                             DWORD size);
-HANDLE WINAPI RtlGetProcessHeap(VOID);
-BOOL WINAPI RtlLockHeap(HANDLE hheap);
-BOOL WINAPI RtlUnlockHeap(HANDLE hheap);
-UINT RtlCompactHeap(HANDLE hheap, DWORD flags);
-DWORD WINAPI RtlSizeHeap(HANDLE hheap, DWORD flags, PVOID pmem);
-BOOL WINAPI RtlValidateHeap(HANDLE hheap, DWORD flags, PVOID pmem);
+/* NtProcessStartup */
 
+VOID
+WINAPI
+RtlDestroyProcessParameters(
+       IN OUT  PSTARTUP_ARGUMENT       pArgument
+       );
+VOID
+WINAPI
+RtlDenormalizeProcessParams (
+       IN OUT  PSTARTUP_ARGUMENT       pArgument
+       );
 
 #endif /* __DDK_RTL_H */
index 0e4a746..ab2a094 100644 (file)
@@ -1,4 +1,4 @@
-/* $Id: zw.h,v 1.15 1999/07/13 01:08:47 rex Exp $
+/* $Id: zw.h,v 1.16 1999/07/17 23:10:15 ea Exp $
  *
  * COPYRIGHT:        See COPYING in the top level directory
  * PROJECT:          ReactOS kernel
@@ -1069,14 +1069,14 @@ ZwCreateSymbolicLinkObject(
 NTSTATUS
 STDCALL 
 NtCreateThread(
-       OUT PHANDLE ThreadHandle,
-       IN ACCESS_MASK DesiredAccess,
-       IN POBJECT_ATTRIBUTES ObjectAttributes OPTIONAL,
-       IN HANDLE ProcessHandle,
-       OUT PCLIENT_ID ClientId,
-       IN PCONTEXT ThreadContext,
-       IN PINITIAL_TEB InitialTeb,
-       IN BOOLEAN CreateSuspended
+       OUT     PHANDLE                 ThreadHandle,
+       IN      ACCESS_MASK             DesiredAccess,
+       IN      POBJECT_ATTRIBUTES      ObjectAttributes        OPTIONAL,
+       IN      HANDLE                  ProcessHandle,
+       OUT     PCLIENT_ID              ClientId,
+       IN      PCONTEXT                ThreadContext,
+       IN      PINITIAL_TEB            InitialTeb,
+       IN      BOOLEAN                 CreateSuspended
        );
 
 NTSTATUS
@@ -4638,51 +4638,7 @@ ZwSetVolumeInformationFile(
        PVOID VolumeInformation,
        ULONG Length
        );
-/*
- * FUNCTION: Shuts the system down
- * ARGUMENTS: 
- *        Action: Specifies the type of shutdown, it can be one of the following values:
-                       ShutdownNoReboot, ShutdownReboot, ShutdownPowerOff
- * RETURNS: Status
- */ 
-NTSTATUS 
-STDCALL 
-NtShutdownSystem(
-       IN SHUTDOWN_ACTION Action
-       );
-
-NTSTATUS 
-STDCALL 
-ZwShutdownSystem(
-       IN SHUTDOWN_ACTION Action
-       );
-/*
- * FUNCTION: Signals an event and wait for it to be signaled again.
- * ARGUMENTS: 
- *        EventHandle = Handle to the event that should be signaled
- *        Alertable =  True if the wait is alertable
- *        Time = The time to wait
- *        NumberOfWaitingThreads = Number of waiting threads
- * RETURNS: Status
- */ 
-
-NTSTATUS 
-STDCALL 
-NtSignalAndWaitForSingleObject(
-        IN HANDLE EventHandle,
-       IN BOOLEAN Alertable,
-       IN PLARGE_INTEGER Time,
-       PULONG NumberOfWaitingThreads OPTIONAL 
-       );
-
-NTSTATUS 
-STDCALL 
-ZwSignalAndWaitForSingleObject(
-        IN HANDLE EventHandle,
-       IN BOOLEAN Alertable,
-       IN PLARGE_INTEGER Time,
-       PULONG NumberOfWaitingThreads OPTIONAL 
-       );
+/* --- PROFILING --- */
 
 /*
  * FUNCTION: Starts profiling
@@ -4723,29 +4679,7 @@ ZwStopProfile(
        HANDLE ProfileHandle
        );
 
-/*
- * FUNCTION: Increments a thread's resume count
- * ARGUMENTS: 
- *        ThreadHandle = Handle to the thread that should be resumed
- *        PreviousSuspendCount =  The resulting/previous suspend count.
- * REMARK:
- *       A thread will be suspended if its suspend count is greater than 0. This procedure maps to
- *        the win32 SuspendThread function. ( documentation about the the suspend count can be found here aswell )
- *        The suspend count is not increased if it is greater than MAXIMUM_SUSPEND_COUNT.
- * RETURNS: Status
- */ 
-NTSTATUS 
-STDCALL 
-NtSuspendThread(
-       IN HANDLE ThreadHandle,
-       IN PULONG PreviousSuspendCount 
-       );
-NTSTATUS 
-STDCALL 
-ZwSuspendThread(
-       IN HANDLE ThreadHandle,
-       IN PULONG PreviousSuspendCount 
-       );
+/* --- PROCESS MANAGEMENT --- */
 
 //--NtSystemDebugControl
 /*
@@ -4769,39 +4703,9 @@ ZwTerminateProcess(
        IN HANDLE ProcessHandle ,
        IN NTSTATUS ExitStatus
        );
-/*
- * FUNCTION: Terminates the execution of a thread. 
- * ARGUMENTS: 
- *      ThreadHandle = Handle to the thread
- *      ExitStatus  = The exit status of the thread to terminate with.
- * RETURNS: Status
- */    
-NTSTATUS 
-STDCALL 
-NtTerminateThread(
-       IN HANDLE ThreadHandle ,
-       IN NTSTATUS ExitStatus
-       );
-NTSTATUS 
-STDCALL 
-ZwTerminateThread(
-       IN HANDLE ThreadHandle ,
-       IN NTSTATUS ExitStatus
-       );
-/*
- * FUNCTION: Tests to see if there are any pending alerts for the calling thread 
- * RETURNS: Status
- */    
-NTSTATUS 
-STDCALL 
-NtTestAlert(
-       VOID 
-       );
-NTSTATUS 
-STDCALL 
-ZwTestAlert(
-       VOID 
-       );
+
+/* --- DEVICE DRIVER CONTROL --- */
+
 /*
  * FUNCTION: Unloads a driver. 
  * ARGUMENTS: 
@@ -4819,63 +4723,40 @@ ZwUnloadDriver(
        IN PUNICODE_STRING DriverServiceName
        );
 
-//FIXME: NtUnloadKey needs more arguments
+/* --- VIRTUAL MEMORY MANAGEMENT --- */
+
 /*
- * FUNCTION: Unloads a registry key. 
+ * FUNCTION: Writes a range of virtual memory
  * ARGUMENTS: 
- *       KeyHandle = Handle to the registry key
- * REMARK:
-       This procedure maps to the win32 procedure RegUnloadKey 
+ *       ProcessHandle = The handle to the process owning the address space.
+ *       BaseAddress  = The points to the address to  write to
+ *       Buffer = Pointer to the buffer to write
+ *       NumberOfBytesToWrite = Offset to the upper boundary to write
+ *       NumberOfBytesWritten = Total bytes written
+ * REMARKS:
+ *      This function maps to the win32 WriteProcessMemory
  * RETURNS: Status
- */    
-NTSTATUS 
-STDCALL
-NtUnloadKey(
-       HANDLE KeyHandle
-       );
-NTSTATUS 
-STDCALL
-ZwUnloadKey(
-       HANDLE KeyHandle
+ */
+NTSTATUS
+STDCALL 
+NtWriteVirtualMemory(
+       IN HANDLE ProcessHandle,
+       IN PVOID  BaseAddress,
+       IN PVOID Buffer,
+       IN ULONG NumberOfBytesToWrite,
+       OUT PULONG NumberOfBytesWritten
        );
 
-/*
- * FUNCTION: Unlocks a range of bytes in a file. 
- * ARGUMENTS: 
- *       FileHandle = Handle to the file
- *       IoStatusBlock = Caller should supply storage for a structure containing
- *                      the completion status and information about the requested unlock operation.
-                       The information field is set to the number of bytes unlocked.
- *       ByteOffset = Offset to start the range of bytes to unlock 
- *       Length = Number of bytes to unlock.
- *       Key = Special value to enable other threads to unlock a file than the
-               thread that locked the file. The key supplied must match with the one obtained
-               in a previous call to NtLockFile.
- * REMARK:
-       This procedure maps to the win32 procedure UnlockFileEx. STATUS_PENDING is returned if the lock could
-       not be obtained immediately, the device queue is busy and the IRP is queued.
- * RETURNS: Status [ STATUS_SUCCESS | STATUS_PENDING | STATUS_ACCESS_DENIED | STATUS_INSUFFICIENT_RESOURCES |
-       STATUS_INVALID_PARAMETER | STATUS_INVALID_DEVICE_REQUEST | STATUS_RANGE_NOT_LOCKED ]
- */    
-NTSTATUS 
-STDCALL
-NtUnlockFile(
-       IN HANDLE FileHandle,
-       OUT PIO_STATUS_BLOCK IoStatusBlock,
-       IN PLARGE_INTEGER ByteOffset,
-       IN PLARGE_INTEGER Lenght,
-       OUT PULONG Key OPTIONAL
-       );
-NTSTATUS 
-STDCALL
-ZwUnlockFile(
-       IN HANDLE FileHandle,
-       OUT PIO_STATUS_BLOCK IoStatusBlock,
-       IN PLARGE_INTEGER ByteOffset,
-       IN PLARGE_INTEGER Lenght,
-       OUT PULONG Key OPTIONAL
+NTSTATUS
+STDCALL 
+ZwWriteVirtualMemory(
+       IN HANDLE ProcessHandle,
+       IN PVOID  BaseAddress,
+       IN PVOID Buffer,
+       IN ULONG NumberOfBytesToWrite,
+       OUT PULONG NumberOfBytesWritten
        );
-       
+
 /*
  * FUNCTION: Unlocks a range of virtual memory. 
  * ARGUMENTS: 
@@ -4925,6 +4806,37 @@ ZwUnmapViewOfSection(
        IN HANDLE ProcessHandle,
        IN PVOID BaseAddress
        );
+
+/* --- OBJECT SYNCHRONIZATION --- */
+
+/*
+ * FUNCTION: Signals an event and wait for it to be signaled again.
+ * ARGUMENTS: 
+ *        EventHandle = Handle to the event that should be signaled
+ *        Alertable =  True if the wait is alertable
+ *        Time = The time to wait
+ *        NumberOfWaitingThreads = Number of waiting threads
+ * RETURNS: Status
+ */ 
+
+NTSTATUS 
+STDCALL 
+NtSignalAndWaitForSingleObject(
+        IN HANDLE EventHandle,
+       IN BOOLEAN Alertable,
+       IN PLARGE_INTEGER Time,
+       PULONG NumberOfWaitingThreads OPTIONAL 
+       );
+
+NTSTATUS 
+STDCALL 
+ZwSignalAndWaitForSingleObject(
+        IN HANDLE EventHandle,
+       IN BOOLEAN Alertable,
+       IN PLARGE_INTEGER Time,
+       PULONG NumberOfWaitingThreads OPTIONAL 
+       );
+
 /*
  * FUNCTION: Waits for multiple objects to become signalled. 
  * ARGUMENTS: 
@@ -4982,6 +4894,8 @@ ZwWaitForSingleObject (
        IN PLARGE_INTEGER Time 
        );
 
+/* --- EVENT PAIR OBJECT --- */
+
 /*
  * FUNCTION: Waits for the high part of an eventpair to become signalled
  * ARGUMENTS: 
@@ -5013,6 +4927,46 @@ STDCALL
 ZwWaitLowEventPair(
        IN HANDLE EventPairHandle
        );
+
+/* --- FILE MANAGEMENT --- */
+
+/*
+ * FUNCTION: Unlocks a range of bytes in a file. 
+ * ARGUMENTS: 
+ *       FileHandle = Handle to the file
+ *       IoStatusBlock = Caller should supply storage for a structure containing
+ *                      the completion status and information about the requested unlock operation.
+                       The information field is set to the number of bytes unlocked.
+ *       ByteOffset = Offset to start the range of bytes to unlock 
+ *       Length = Number of bytes to unlock.
+ *       Key = Special value to enable other threads to unlock a file than the
+               thread that locked the file. The key supplied must match with the one obtained
+               in a previous call to NtLockFile.
+ * REMARK:
+       This procedure maps to the win32 procedure UnlockFileEx. STATUS_PENDING is returned if the lock could
+       not be obtained immediately, the device queue is busy and the IRP is queued.
+ * RETURNS: Status [ STATUS_SUCCESS | STATUS_PENDING | STATUS_ACCESS_DENIED | STATUS_INSUFFICIENT_RESOURCES |
+       STATUS_INVALID_PARAMETER | STATUS_INVALID_DEVICE_REQUEST | STATUS_RANGE_NOT_LOCKED ]
+ */    
+NTSTATUS 
+STDCALL
+NtUnlockFile(
+       IN HANDLE FileHandle,
+       OUT PIO_STATUS_BLOCK IoStatusBlock,
+       IN PLARGE_INTEGER ByteOffset,
+       IN PLARGE_INTEGER Lenght,
+       OUT PULONG Key OPTIONAL
+       );
+NTSTATUS 
+STDCALL
+ZwUnlockFile(
+       IN HANDLE FileHandle,
+       OUT PIO_STATUS_BLOCK IoStatusBlock,
+       IN PLARGE_INTEGER ByteOffset,
+       IN PLARGE_INTEGER Lenght,
+       OUT PULONG Key OPTIONAL
+       );
+       
 /*
  * FUNCTION: Writes data to a file
  * ARGUMENTS: 
@@ -5113,37 +5067,67 @@ ZwWriteFileGather(
        ); 
 
 
+/* --- THREAD MANAGEMENT --- */
+
 /*
- * FUNCTION: Writes a range of virtual memory
+ * FUNCTION: Increments a thread's resume count
  * ARGUMENTS: 
- *       ProcessHandle = The handle to the process owning the address space.
- *       BaseAddress  = The points to the address to  write to
- *       Buffer = Pointer to the buffer to write
- *       NumberOfBytesToWrite = Offset to the upper boundary to write
- *       NumberOfBytesWritten = Total bytes written
- * REMARKS:
- *      This function maps to the win32 WriteProcessMemory
+ *        ThreadHandle = Handle to the thread that should be resumed
+ *        PreviousSuspendCount =  The resulting/previous suspend count.
+ * REMARK:
+ *       A thread will be suspended if its suspend count is greater than 0. This procedure maps to
+ *        the win32 SuspendThread function. ( documentation about the the suspend count can be found here aswell )
+ *        The suspend count is not increased if it is greater than MAXIMUM_SUSPEND_COUNT.
  * RETURNS: Status
- */
-NTSTATUS
+ */ 
+NTSTATUS 
 STDCALL 
-NtWriteVirtualMemory(
-       IN HANDLE ProcessHandle,
-       IN PVOID  BaseAddress,
-       IN PVOID Buffer,
-       IN ULONG NumberOfBytesToWrite,
-       OUT PULONG NumberOfBytesWritten
+NtSuspendThread(
+       IN HANDLE ThreadHandle,
+       IN PULONG PreviousSuspendCount 
        );
 
-NTSTATUS
+NTSTATUS 
 STDCALL 
-ZwWriteVirtualMemory(
-       IN HANDLE ProcessHandle,
-       IN PVOID  BaseAddress,
-       IN PVOID Buffer,
-       IN ULONG NumberOfBytesToWrite,
-       OUT PULONG NumberOfBytesWritten
+ZwSuspendThread(
+       IN HANDLE ThreadHandle,
+       IN PULONG PreviousSuspendCount 
+       );
+
+/*
+ * FUNCTION: Terminates the execution of a thread. 
+ * ARGUMENTS: 
+ *      ThreadHandle = Handle to the thread
+ *      ExitStatus  = The exit status of the thread to terminate with.
+ * RETURNS: Status
+ */    
+NTSTATUS 
+STDCALL 
+NtTerminateThread(
+       IN HANDLE ThreadHandle ,
+       IN NTSTATUS ExitStatus
+       );
+NTSTATUS 
+STDCALL 
+ZwTerminateThread(
+       IN HANDLE ThreadHandle ,
+       IN NTSTATUS ExitStatus
+       );
+/*
+ * FUNCTION: Tests to see if there are any pending alerts for the calling thread 
+ * RETURNS: Status
+ */    
+NTSTATUS 
+STDCALL 
+NtTestAlert(
+       VOID 
        );
+NTSTATUS 
+STDCALL 
+ZwTestAlert(
+       VOID 
+       );
+
 /*
  * FUNCTION: Yields the callers thread.
  * RETURNS: Status
@@ -5200,15 +5184,15 @@ STDCALL
 NtAcceptConnectPort ( /* @24 */
        IN      HANDLE  PortHandle,
        OUT     PHANDLE ConnectedPort,
-       DWORD   a2,
-       DWORD   a3,
-       DWORD   a4,
-       DWORD   a5
+       IN      DWORD   Unknown2,
+       IN      DWORD   Unknown3,
+       IN      DWORD   Unknown4,
+       IN      DWORD   Unknown5
        );
 NTSTATUS
 STDCALL
 NtCompleteConnectPort ( /* @4 */
-       HANDLE  PortHandle
+       IN      HANDLE  PortHandle
        );
 NTSTATUS
 STDCALL
@@ -5307,38 +5291,174 @@ NtWriteRequestData ( /* @24 */
        );
 #endif /* ndef PROTO_LPC */
 
-NTSTATUS STDCALL NtGetPlugPlayEvent(VOID);
+/* --- REGISTRY --- */
 
-NTSTATUS STDCALL NtLoadKey2(VOID);
+//FIXME: NtUnloadKey needs more arguments
+/*
+ * FUNCTION: Unloads a registry key. 
+ * ARGUMENTS: 
+ *       KeyHandle = Handle to the registry key
+ * REMARK:
+       This procedure maps to the win32 procedure RegUnloadKey 
+ * RETURNS: Status
+ */    
+NTSTATUS 
+STDCALL
+NtUnloadKey(
+       HANDLE KeyHandle
+       );
+NTSTATUS 
+STDCALL
+ZwUnloadKey(
+       HANDLE KeyHandle
+       );
+
+NTSTATUS
+STDCALL
+NtLoadKey2 (
+       VOID
+       );
+
+/* --- PLUG AND PLAY --- */
+
+NTSTATUS
+STDCALL
+NtPlugPlayControl (
+       VOID
+       );
+
+NTSTATUS
+STDCALL
+NtGetPlugPlayEvent (
+       VOID
+       );
+
+/* --- NATIONAL LANGUAGE SUPPORT (NLS) --- */
+
+NTSTATUS
+STDCALL
+NtQueryDefaultLocale (
+       VOID
+       );
+
+NTSTATUS
+STDCALL
+NtSetDefaultLocale (
+       VOID
+       );
+
+/* --- POWER MANAGEMENT --- */
+
+NTSTATUS
+STDCALL
+NtSetSystemPowerState (
+       VOID
+       );
+
+/* --- DEBUG SUBSYSTEM --- */
+
+NTSTATUS
+STDCALL
+NtSystemDebugControl (
+       VOID
+       );
+
+
+/* --- VIRTUAL DOS MACHINE (VDM) --- */
+
+NTSTATUS
+STDCALL
+NtVdmControl (
+       VOID
+       );
+
+/* --- WIN32 --- */
+
+NTSTATUS
+STDCALL
+NtW32Call (
+       VOID
+       );
 
+/* --- CHANNELS --- */
 
-NTSTATUS STDCALL NtPlugPlayControl(VOID);
+NTSTATUS
+STDCALL
+NtCreateChannel (
+       VOID
+       );
 
-NTSTATUS STDCALL NtQueryDefaultLocale(VOID);
+NTSTATUS
+STDCALL
+NtListenChannel (
+       VOID
+       );
 
+NTSTATUS
+STDCALL
+NtOpenChannel (
+       VOID
+       );
 
-NTSTATUS STDCALL NtQueryOleDirectoryFile(VOID);
+NTSTATUS
+STDCALL
+NtReplyWaitSendChannel (
+       VOID
+       );
 
-NTSTATUS STDCALL NtRaiseHardError(VOID);
+NTSTATUS
+STDCALL
+NtSendWaitReplyChannel (
+       VOID
+       );
+
+NTSTATUS
+STDCALL
+NtSetContextChannel (
+       VOID
+       );
 
-NTSTATUS STDCALL NtSetDefaultLocale(VOID);
+/* --- MISCELLANEA --- */
 
 //NTSTATUS STDCALL NtSetLdtEntries(VOID);
-NTSTATUS STDCALL NtSetLdtEntries(PETHREAD Thread,
-                                ULONG FirstEntry,
-                                PULONG Entries);
-
-NTSTATUS STDCALL NtSetSystemPowerState(VOID);
-
-NTSTATUS STDCALL NtSystemDebugControl(VOID);
-NTSTATUS STDCALL NtVdmControl(VOID);
-
-NTSTATUS STDCALL NtW32Call(VOID);
-NTSTATUS STDCALL NtCreateChannel(VOID);
-NTSTATUS STDCALL NtListenChannel(VOID);
-NTSTATUS STDCALL NtOpenChannel(VOID);
-NTSTATUS STDCALL NtReplyWaitSendChannel(VOID);
-NTSTATUS STDCALL NtSendWaitReplyChannel(VOID);
-NTSTATUS STDCALL NtSetContextChannel(VOID);
+NTSTATUS
+STDCALL
+NtSetLdtEntries (
+       PETHREAD        Thread,
+       ULONG           FirstEntry,
+       PULONG  Entries
+       );
+
+/*
+ * FUNCTION: Shuts the system down
+ * ARGUMENTS: 
+ *        Action: Specifies the type of shutdown, it can be one of the following values:
+                       ShutdownNoReboot, ShutdownReboot, ShutdownPowerOff
+ * RETURNS: Status
+ */ 
+NTSTATUS 
+STDCALL 
+NtShutdownSystem(
+       IN SHUTDOWN_ACTION Action
+       );
+
+NTSTATUS 
+STDCALL 
+ZwShutdownSystem(
+       IN SHUTDOWN_ACTION Action
+       );
+
+NTSTATUS
+STDCALL
+NtQueryOleDirectoryFile (
+       VOID
+       );
+
+NTSTATUS
+STDCALL
+NtRaiseHardError (
+       VOID
+       );
+
  
 #endif /* __DDK_ZW_H */
index 1314348..31bfa32 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      19990618
+#define RES_UINT_FV_BUILD      19990717
 
 /* 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      19990618
+#define RES_UINT_PV_BUILD      19990606
 
 /* Common version strings for rc scripts */
 
index 340e386..2bd8160 100644 (file)
@@ -1,4 +1,4 @@
-; $Id: advapi32.def,v 1.2 1999/05/19 16:43:30 ea Exp $
+; $Id: advapi32.def,v 1.3 1999/07/17 23:10:16 ea Exp $
 ;
 ; advapi32.def
 ;
 ;
 LIBRARY advapi32
 EXPORTS
-AbortSystemShutdownA           = AbortSystemShutdownA@4
-AbortSystemShutdownW           = AbortSystemShutdownW@4
-AccessCheck                    = AccessCheck@32
-AccessCheckAndAuditAlarmA      = AccessCheckAndAuditAlarmA@44
-AccessCheckAndAuditAlarmW      = AccessCheckAndAuditAlarmW@44
-AddAccessAllowedAce            = AddAccessAllowedAce@16
-AddAccessDeniedAce             = AddAccessDeniedAce@16
-AddAce                         = AddAce@20
-AddAuditAccessAce              = AddAuditAccessAce@24
-AdjustTokenGroups              = AdjustTokenGroups@24
-AdjustTokenPrivileges          = AdjustTokenPrivileges@24
-AllocateAndInitializeSid       = AllocateAndInitializeSid@44
-AllocateLocallyUniqueId                = AllocateLocallyUniqueId@4
-AreAllAccessesGranted          = AreAllAccessesGranted@8
-AreAnyAccessesGranted          = AreAnyAccessesGranted@8
-BackupEventLogA                        = BackupEventLogA@8
-BackupEventLogW                        = BackupEventLogW@8
-BuildAccessRequestA            = 
-BuildAccessRequestW            =
-BuildExplicitAccessWithNameA   = BuildExplicitAccessWithNameA@20
-BuildExplicitAccessWithNameW   = BuildExplicitAccessWithNameW@20
-BuildImpersonateExplicitAccessWithNameA =
-BuildImpersonateExplicitAccessWithNameW =
-BuildImpersonateTrusteeA       =
-BuildImpersonateTrusteeW       =
-BuildSecurityDescriptorA       = BuildSecurityDescriptorA@36
-BuildSecurityDescriptorW       = BuildSecurityDescriptorW@36
-BuildTrusteeWithNameA          = BuildTrusteeWithNameA@8
-BuildTrusteeWithNameW          = BuildTrusteeWithNameW@8
-BuildTrusteeWithSidA           = BuildTrusteeWithSidA@8
-BuildTrusteeWithSidW           = BuildTrusteeWithSidW@8
-ChangeServiceConfigA           = ChangeServiceConfigA@44
-ChangeServiceConfigW           = ChangeServiceConfigW@44
-ClearEventLogA                 = ClearEventLogA@8
-ClearEventLogW                 = ClearEventLogW@8
-CloseEventLog                  = ClearEventLogA@8
-CloseServiceHandle             = CloseServiceHandle@4
-ControlService                 = ControlService@12
-CopySid                                = CopySid@12
-CreatePrivateObjectSecurity    = CreatePrivateObjectSecurity@24
-CreateProcessAsUserA           = CreateProcessAsUserA@44
-CreateProcessAsUserW           = CreateProcessAsUserW@44
-CreateServiceA                 = CreateServiceA@52
-CreateServiceW                 = CreateServiceW@52
-CryptAcquireContextA           = CryptAcquireContextA@20
-CryptAcquireContextW           = CryptAcquireContextW@20
-CryptCreateHash                        = CryptCreateHash@20
-CryptDecrypt                   = CryptDecrypt@24
-CryptDeriveKey                 = CryptDeriveKey@20
-CryptDestroyHash               = CryptDestroyHash@4
-CryptDestroyKey                        = CryptDestroyKey@4
-CryptEncrypt                   = CryptEncrypt@28
-CryptExportKey                 = CryptExportKey@24
-CryptGenKey                    = CryptGenKey@16
-CryptGenRandom                 = CryptGenRandom@12
-CryptGetHashParam              = CryptGetHashParam@20
-CryptGetKeyParam               = CryptGetKeyParam@20
-CryptGetProvParam              = CryptGetProvParam@20
-CryptGetUserKey                        = CryptGetUserKey@12
-CryptHashData                  = CryptHashData@16
-CryptHashSessionKey            = CryptHashSessionKey@12
-CryptImportKey                 = CryptImportKey@24
-CryptReleaseContext            = CryptReleaseContext@8
-CryptSetHashParam              = CryptSetHashParam@16
-CryptSetKeyParam               = CryptSetKeyParam@16
-CryptSetProvParam              = CryptSetProvParam@16
-CryptSetProviderA              = CryptSetProviderA@8
-CryptSetProviderW              = CryptSetProviderW@8
-CryptSignHashA                 = CryptSignHashA@24
-CryptSignHashW                 = CryptSignHashW@24
-CryptVerifySignatureA          = CryptVerifySignatureA@24
-CryptVerifySignatureW          = CryptVerifySignatureW@24
-DeleteAce                      = DeleteAce@8
-DeleteService                  = DeleteService@4
-DenyAccessRightsA              =
-DenyAccessRightsW              =
-DeregisterEventSource          = DeregisterEventSource@4
-DestroyPrivateObjectSecurity   = DestroyPrivateObjectSecurity@4
-DuplicateToken                 = DuplicateToken@12
-DuplicateTokenEx               = DuplicateTokenEx@24
-ElfBackupEventLogFileA         = ElfBackupEventLogFileA@8
-ElfBackupEventLogFileW         = ElfBackupEventLogFileW@8
-ElfChangeNotify                        = ElfChangeNotify@8
-ElfClearEventLogFileA          = ElfClearEventLogFileA@8
-ElfClearEventLogFileW          = ElfClearEventLogFileW@8
-ElfCloseEventLog               = ElfCloseEventLog@4
-ElfDeregisterEventSource       = ElfDeregisterEventSource@4
-ElfNumberOfRecords             = ElfNumberOfRecords@8
-ElfOldestRecord                        = ElfOldestRecord@8
-ElfOpenBackupEventLogA         = ElfOpenBackupEventLogA@12
-ElfOpenBackupEventLogW         = ElfOpenBackupEventLogW@12
-ElfOpenEventLogA               = ElfOpenEventLogA@12
-ElfOpenEventLogW               = ElfOpenEventLogW@12
-ElfReadEventLogA               = ElfReadEventLogA@28
-ElfReadEventLogW               = ElfReadEventLogW@28
-ElfRegisterEventSourceA                = ElfRegisterEventSourceA@12
-ElfRegisterEventSourceW                = ElfRegisterEventSourceW@12
-ElfReportEventA                        = ElfReportEventA@48
-ElfReportEventW                        = ElfReportEventW@48
-EnumDependentServicesA         = EnumDependentServicesA@24
-EnumDependentServicesW         = EnumDependentServicesW@24
-EnumServiceGroupW              =
-EnumServicesStatusA            = EnumServicesStatusA@32
-EnumServicesStatusW            = EnumServicesStatusW@32
-EqualPrefixSid                 = EqualPrefixSid@8
-EqualSid                       = EqualSid@8
-FindFirstFreeAce               = FindFirstFreeAce@8
-FreeSid                                = FreeSid@4
-GetAce                         = GetAce@12
-GetAclInformation              = GetAclInformation@16
-GetAuditedPermissionsFromAclA  =
-GetAuditedPermissionsFromAclW  =
-GetAuditedPermissionsFromSDA   =
-GetAuditedPermissionsFromSDW   =
-GetCurrentHwProfileA           =
-GetCurrentHwProfileW           =
-GetEffectiveAccessRightsA      =
-GetEffectiveAccessRightsW      =
-GetEffectiveRightsFromAclA     =
-GetEffectiveRightsFromAclW     =
-GetEffectiveRightsFromSDA      =
-GetEffectiveRightsFromSDW      =
-GetExplicitAccessRightsA       =
-GetExplicitAccessRightsW       =
-GetExplicitEntriesFromAclA     =
-GetExplicitEntriesFromAclW     =
-GetFileSecurityA               = GetFileSecurityA@20
-GetFileSecurityW               = GetFileSecurityW@20
-GetKernelObjectSecurity                = GetKernelObjectSecurity@20
-GetLengthSid                   = GetLengthSid@4
-GetMultipleTrusteeA            =
-GetMultipleTrusteeOperationA   =
-GetMultipleTrusteeOperationW   =
-GetMultipleTrusteeW            =
-GetNamedSecurityInfoA          = GetNamedSecurityInfoA@32
-GetNamedSecurityInfoW          = GetNamedSecurityInfoW@32
-GetNumberOfEventLogRecords     = GetNumberOfEventLogRecords@8
-GetOldestEventLogRecord                = GetOldestEventLogRecord@8
-GetPrivateObjectSecurity       = GetPrivateObjectSecurity@20
-GetSecurityDescriptorControl   = GetSecurityDescriptorControl@12
-GetSecurityDescriptorDacl      = GetSecurityDescriptorDacl@16
-GetSecurityDescriptorGroup     = GetSecurityDescriptorGroup@12
-GetSecurityDescriptorLength    = GetSecurityDescriptorLength@4
-GetSecurityDescriptorOwner     = GetSecurityDescriptorOwner@12
-GetSecurityDescriptorSacl      = GetSecurityDescriptorSacl@16
-GetSecurityInfo                        = GetSecurityInfo@32
-GetServiceDisplayNameA         = GetServiceDisplayNameA@16
-GetServiceDisplayNameW         = GetServiceDisplayNameW@16
-GetServiceKeyNameA             = GetServiceKeyNameA@16
-GetServiceKeyNameW             = GetServiceKeyNameW@16
-GetSidIdentifierAuthority      = GetSidIdentifierAuthority@4
-GetSidLengthRequired           = GetSidLengthRequired@4
-GetSidSubAuthority             = GetSidSubAuthority@8
-GetSidSubAuthorityCount                = GetSidSubAuthorityCount@4
-GetTokenInformation            = GetTokenInformation@20
-GetTrusteeForm                 = GetTrusteeForm@4
-GetTrusteeNameA                        = GetTrusteeNameA@4
-GetTrusteeNameW                        = GetTrusteeNameW@4
-GetTrusteeTypeA                        = GetTrusteeTypeA@4
-GetTrusteeTypeW                        = GetTrusteeTypeW@4
-GetUserNameA                   = GetUserNameA@8
-GetUserNameW                   = GetUserNameW@8
-GrantAccessRightsA             =
-GrantAccessRightsW             =
-I_ScGetCurrentGroupStateW      =
-I_ScSetServiceBitsA            = I_ScSetServiceBitsA@20
-I_ScSetServiceBitsW            = I_ScSetServiceBitsW@20
-ImpersonateLoggedOnUser                = ImpersonateLoggedOnUser@4
-ImpersonateNamedPipeClient     = ImpersonateNamedPipeClient@4
-ImpersonateSelf                        = ImpersonateSelf@4
-InitializeAcl                  = InitializeAcl@12
-InitializeSecurityDescriptor   = InitializeSecurityDescriptor@8
-InitializeSid                  = InitializeSid@12
-InitiateSystemShutdownA                = InitiateSystemShutdownA@20
-InitiateSystemShutdownW                = InitiateSystemShutdownW@20
-IsAccessPermittedA             =
-IsAccessPermittedW             =
-IsTextUnicode                  = IsTextUnicode@12
-IsValidAcl                     = IsValidAcl@4
-IsValidSecurityDescriptor      = IsValidSecurityDescriptor@4
-IsValidSid                     = IsValidSid@4
-LockServiceDatabase            = LockServiceDatabase@4
-LogonUserA                     = LogonUserA@24
-LogonUserW                     = LogonUserW@24
-LookupAccountNameA             = LookupAccountNameA@28
-LookupAccountNameW             = LookupAccountNameW@28
-LookupAccountSidA              = LookupAccountSidA@28
-LookupAccountSidW              = LookupAccountSidW@28
-LookupPrivilegeDisplayNameA    = LookupPrivilegeDisplayNameA@20
-LookupPrivilegeDisplayNameW    = LookupPrivilegeDisplayNameW@20
-LookupPrivilegeNameA           = LookupPrivilegeNameA@16
-LookupPrivilegeNameW           = LookupPrivilegeNameW@16
-LookupPrivilegeValueA          = LookupPrivilegeValueA@12
-LookupPrivilegeValueW          = LookupPrivilegeValueW@12
-LookupSecurityDescriptorPartsA = LookupSecurityDescriptorPartsA@28
-LookupSecurityDescriptorPartsW = LookupSecurityDescriptorPartsW@28
-LsaAddAccountRights            = LsaAddAccountRights@16
-LsaAddPrivilegesToAccount      = LsaAddPrivilegesToAccount@8
-LsaClearAuditLog               = LsaClearAuditLog@4
-LsaClose                       = LsaClose@4
-LsaCreateAccount               = LsaCreateAccount@16
-LsaCreateSecret                        = LsaCreateSecret@16
-LsaCreateTrustedDomain         = LsaCreateTrustedDomain@16
-LsaDelete                      = LsaDelete@4
-LsaDeleteTrustedDomain         = LsaDeleteTrustedDomain@8
-LsaEnumerateAccountRights      = LsaEnumerateAccountRights@16
-LsaEnumerateAccounts           = LsaEnumerateAccounts@20
-LsaEnumerateAccountsWithUserRight = LsaEnumerateAccountsWithUserRight@16
-LsaEnumeratePrivileges         = LsaEnumeratePrivileges@20
-LsaEnumeratePrivilegesOfAccount        = LsaEnumeratePrivilegesOfAccount@8
-LsaEnumerateTrustedDomains     = LsaEnumerateTrustedDomains@20
-LsaFreeMemory                  = LsaFreeMemory@4
-LsaGetQuotasForAccount         = LsaGetQuotasForAccount@8
-LsaGetSystemAccessAccount      = LsaGetSystemAccessAccount@8
-LsaGetUserName                 = 
-LsaICLookupNames               = LsaICLookupNames@28
-LsaICLookupSids                        = LsaICLookupSids@28
-LsaLookupNames                 = LsaLookupNames@20
-LsaLookupPrivilegeDisplayName  = LsaLookupPrivilegeDisplayName@16
-LsaLookupPrivilegeName         = LsaLookupPrivilegeName@12
-LsaLookupPrivilegeValue                = LsaLookupPrivilegeValue@12
-LsaLookupSids                  = LsaLookupSids@20
-LsaNtStatusToWinError          = LsaNtStatusToWinError@4
-LsaOpenAccount                 = LsaOpenAccount@16
-LsaOpenPolicy                  = LsaOpenPolicy@16
-LsaOpenSecret                  = LsaOpenSecret@16
-LsaOpenTrustedDomain           = LsaOpenTrustedDomain@16
-LsaQueryInfoTrustedDomain      = LsaQueryInfoTrustedDomain@12
-LsaQueryInformationPolicy      = LsaQueryInformationPolicy@12
-LsaQuerySecret                 = LsaQuerySecret@20
-LsaQuerySecurityObject         = LsaQuerySecurityObject@12
-LsaQueryTrustedDomainInfo      = LsaQueryTrustedDomainInfo@16
-LsaRemoveAccountRights         = LsaRemoveAccountRights@20
-LsaRemovePrivilegesFromAccount = LsaRemovePrivilegesFromAccount@12
-LsaRetrievePrivateData         = LsaRetrievePrivateData@12
-LsaSetInformationPolicy                = LsaSetInformationPolicy@12
-LsaSetInformationTrustedDomain = LsaSetInformationTrustedDomain@12
-LsaSetQuotasForAccount         = LsaSetQuotasForAccount@8
-LsaSetSecret                   = LsaSetSecret@12
-LsaSetSecurityObject           = LsaSetSecurityObject@12
-LsaSetSystemAccessAccount      = LsaSetSystemAccessAccount@8
-LsaSetTrustedDomainInformation = LsaSetTrustedDomainInformation@16
-LsaStorePrivateData            = LsaStorePrivateData@12
-MakeAbsoluteSD                 = MakeAbsoluteSD@44
-MakeSelfRelativeSD             = MakeSelfRelativeSD@12
-MapGenericMask                 = MapGenericMask@8
-NTAccessMaskToProvAccessRights =
-NotifyBootConfigStatus         = NotifyBootConfigStatus@4
-NotifyChangeEventLog           = NotifyChangeEventLog@8
-ObjectCloseAuditAlarmA         = ObjectCloseAuditAlarmA@12
-ObjectCloseAuditAlarmW         = ObjectCloseAuditAlarmW@12
-ObjectDeleteAuditAlarmA                = ObjectDeleteAuditAlarmA@12
-ObjectDeleteAuditAlarmW                = ObjectDeleteAuditAlarmW@12
-ObjectOpenAuditAlarmA          = ObjectOpenAuditAlarmA@48
-ObjectOpenAuditAlarmW          = ObjectOpenAuditAlarmW@48
-ObjectPrivilegeAuditAlarmA     = ObjectPrivilegeAuditAlarmA@24
-ObjectPrivilegeAuditAlarmW     = ObjectPrivilegeAuditAlarmW@24
-OpenBackupEventLogA            = OpenBackupEventLogA@8
-OpenBackupEventLogW            = OpenBackupEventLogW@8
-OpenEventLogA                  = OpenEventLogA@8
-OpenEventLogW                  = OpenEventLogW@8
-OpenProcessToken               = OpenProcessToken@12
-OpenSCManagerA                 = OpenSCManagerA@12
-OpenSCManagerW                 = OpenSCManagerW@12
-OpenServiceA                   = OpenServiceA@12
-OpenServiceW                   = OpenServiceW@12
-OpenThreadToken                        = OpenThreadToken@16
-PrivilegeCheck                 = PrivilegeCheck@12
-PrivilegedServiceAuditAlarmA   = PrivilegedServiceAuditAlarmA@20
-PrivilegedServiceAuditAlarmW   = PrivilegedServiceAuditAlarmW@20
-ProvAccessRightsToNTAccessMask =
-QueryServiceConfigA            = QueryServiceConfigA@16
-QueryServiceConfigW            = QueryServiceConfigW@16
-QueryServiceLockStatusA                = QueryServiceLockStatusA@16
-QueryServiceLockStatusW                = QueryServiceLockStatusW@16
-QueryServiceObjectSecurity     = QueryServiceObjectSecurity@20
-QueryServiceStatus             = QueryServiceStatus@8
-QueryWindows31FilesMigration   = QueryWindows31FilesMigration@4
-ReadEventLogA                  = ReadEventLogA@28
-ReadEventLogW                  = ReadEventLogW@28
-RegCloseKey                    = RegCloseKey@4
-RegConnectRegistryA            = RegConnectRegistryA@12
-RegConnectRegistryW            = RegConnectRegistryW@12
-RegCreateKeyA                  = RegCreateKeyA@12
-RegCreateKeyExA                        = RegCreateKeyExA@36
-RegCreateKeyExW                        = RegCreateKeyExW@36
-RegCreateKeyW                  = RegCreateKeyW@12
-RegDeleteKeyA                  = RegDeleteKeyA@8
-RegDeleteKeyW                  = RegDeleteKeyW@8
-RegDeleteValueA                        = RegDeleteValueA@8
-RegDeleteValueW                        = RegDeleteValueW@8
-RegEnumKeyA                    = RegEnumKeyA@16
-RegEnumKeyExA                  = RegEnumKeyExA@32
-RegEnumKeyExW                  = RegEnumKeyExW@32
-RegEnumKeyW                    = RegEnumKeyW@16
-RegEnumValueA                  = RegEnumValueA@32
-RegEnumValueW                  = RegEnumValueW@32
-RegFlushKey                    = RegFlushKey@4
-RegGetKeySecurity              = RegGetKeySecurity@16
-RegLoadKeyA                    = RegLoadKeyA@12
-RegLoadKeyW                    = RegLoadKeyW@12
-RegNotifyChangeKeyValue                = RegNotifyChangeKeyValue@20
-RegOpenKeyA                    = RegOpenKeyA@12
-RegOpenKeyExA                  = RegOpenKeyExA@20
-RegOpenKeyExW                  = RegOpenKeyExW@20
-RegOpenKeyW                    = RegOpenKeyW@12
-RegQueryInfoKeyA               = RegQueryInfoKeyA@48
-RegQueryInfoKeyW               = RegQueryInfoKeyW@48
-RegQueryMultipleValuesA                = RegQueryMultipleValuesA@20
-RegQueryMultipleValuesW                = RegQueryMultipleValuesW@20
-RegQueryValueA                 = RegQueryValueA@16
-RegQueryValueExA               = RegQueryValueExA@24
-RegQueryValueExW               = RegQueryValueExW@24
-RegQueryValueW                 = RegQueryValueW@16
-RegReplaceKeyA                 = RegReplaceKeyA@16
-RegReplaceKeyW                 = RegReplaceKeyW@16
-RegRestoreKeyA                 = RegRestoreKeyA@12
-RegRestoreKeyW                 = RegRestoreKeyW@12
-RegSaveKeyA                    = RegSaveKeyA@12
-RegSaveKeyW                    = RegSaveKeyW@12
-RegSetKeySecurity              = RegSetKeySecurity@12
-RegSetValueA                   = RegSetValueA@20
-RegSetValueExA                 = RegSetValueExA@24
-RegSetValueExW                 = RegSetValueExW@24
-RegSetValueW                   = RegSetValueW@20
-RegUnLoadKeyA                  = RegUnLoadKeyA@8
-RegUnLoadKeyW                  = RegUnLoadKeyW@8
-RegisterEventSourceA           = RegisterEventSourceA@8
-RegisterEventSourceW           = RegisterEventSourceW@8
-RegisterServiceCtrlHandlerA    = RegisterServiceCtrlHandlerA@8
-RegisterServiceCtrlHandlerW    = RegisterServiceCtrlHandlerW@8
-ReplaceAllAccessRightsA                =
-ReplaceAllAccessRightsW                =
-ReportEventA                   = ReportEventA@36
-ReportEventW                   = ReportEventW@36
-RevertToSelf                   = RevertToSelf@0
-RevokeExplicitAccessRightsA    =
-RevokeExplicitAccessRightsW    =
-SetAccessRightsA               =
-SetAccessRightsW               =
-SetAclInformation              = SetAclInformation@16
-SetEntriesInAclA               = SetEntriesInAclA@16
-SetEntriesInAclW               = SetEntriesInAclA@16
-SetFileSecurityA               = SetFileSecurityA@12
-SetFileSecurityW               = SetFileSecurityW@12
-SetKernelObjectSecurity                = SetKernelObjectSecurity@12
-SetNamedSecurityInfoA          = SetNamedSecurityInfoA@28
-SetNamedSecurityInfoW          = SetNamedSecurityInfoW@28
-SetPrivateObjectSecurity       = SetPrivateObjectSecurity@20
-SetSecurityDescriptorDacl      = SetSecurityDescriptorDacl@16
-SetSecurityDescriptorGroup     = SetSecurityDescriptorGroup@12
-SetSecurityDescriptorOwner     = SetSecurityDescriptorOwner@12
-SetSecurityDescriptorSacl      = SetSecurityDescriptorSacl@16
-SetSecurityInfo                        = SetSecurityInfo@28
-SetServiceBits                 = SetServiceBits@16
-SetServiceObjectSecurity       = SetServiceObjectSecurity@12
-SetServiceStatus               = SetServiceStatus@8
-SetThreadToken                 = SetThreadToken@8
-SetTokenInformation            = SetTokenInformation@16
-StartServiceA                  = StartServiceA@12
-StartServiceCtrlDispatcherA    = StartServiceCtrlDispatcherA@4
-StartServiceCtrlDispatcherW    = StartServiceCtrlDispatcherW@4
-StartServiceW                  = StartServiceW@12
-SynchronizeWindows31FilesAndWindowsNTRegistry = SynchronizeWindows31FilesAndWindowsNTRegistry@16
-SystemFunction001              = SystemFunction001@12
-SystemFunction002              = SystemFunction002@12
-SystemFunction003              = SystemFunction003@8
-SystemFunction004              = SystemFunction004@12
-SystemFunction005              = SystemFunction005@12
-SystemFunction006              = SystemFunction006@8
-SystemFunction007              = SystemFunction007@8
-SystemFunction008              = SystemFunction008@12
-SystemFunction009              = SystemFunction009@12
-SystemFunction010              = SystemFunction010@12
-SystemFunction011              = SystemFunction011@12
-SystemFunction012              = SystemFunction012@12
-SystemFunction013              = SystemFunction013@12
-SystemFunction014              = SystemFunction014@12
-SystemFunction015              = SystemFunction015@12
-SystemFunction016              = SystemFunction016@12
-SystemFunction017              = SystemFunction017@12
-SystemFunction018              = SystemFunction018@12
-SystemFunction019              = SystemFunction019@12
-SystemFunction020              = SystemFunction020@12
-SystemFunction021              = SystemFunction021@12
-SystemFunction022              = SystemFunction022@12
-SystemFunction023              = SystemFunction023@12
-SystemFunction024              = SystemFunction024@12
-SystemFunction025              = SystemFunction025@12
-SystemFunction026              = SystemFunction026@12
-SystemFunction027              = SystemFunction027@12
-SystemFunction028              = SystemFunction028@8
-SystemFunction029              = SystemFunction029@8
-SystemFunction030              = SystemFunction030@8
-SystemFunction031              = SystemFunction031@8
-SystemFunction032              = SystemFunction032@8
-SystemFunction033              = SystemFunction033@8
-UnlockServiceDatabase          = UnlockServiceDatabase@4
-WinLoadTrustProvider           = WinLoadTrustProvider@4
-WinSubmitCertificate           = WinSubmitCertificate@4
-WinVerifyTrust                 = WinVerifyTrust@12
+AbortSystemShutdownA@4
+AbortSystemShutdownW@4
+AccessCheck@32
+AccessCheckAndAuditAlarmA@44
+AccessCheckAndAuditAlarmW@44
+AddAccessAllowedAce@16
+AddAccessDeniedAce@16
+AddAce@20
+AddAuditAccessAce@24
+AdjustTokenGroups@24
+AdjustTokenPrivileges@24
+AllocateAndInitializeSid@44
+AllocateLocallyUniqueId@4
+AreAllAccessesGranted@8
+AreAnyAccessesGranted@8
+BackupEventLogA@8
+BackupEventLogW@8
+BuildAccessRequestA
+BuildAccessRequestW
+BuildExplicitAccessWithNameA@20
+BuildExplicitAccessWithNameW@20
+BuildImpersonateExplicitAccessWithNameA
+BuildImpersonateExplicitAccessWithNameW
+BuildImpersonateTrusteeA
+BuildImpersonateTrusteeW
+BuildSecurityDescriptorA@36
+BuildSecurityDescriptorW@36
+BuildTrusteeWithNameA@8
+BuildTrusteeWithNameW@8
+BuildTrusteeWithSidA@8
+BuildTrusteeWithSidW@8
+ChangeServiceConfigA@44
+ChangeServiceConfigW@44
+ClearEventLogA@8
+ClearEventLogW@8
+ClearEventLogA@8
+CloseServiceHandle@4
+ControlService@12
+CopySid@12
+CreatePrivateObjectSecurity@24
+CreateProcessAsUserA@44
+CreateProcessAsUserW@44
+CreateServiceA@52
+CreateServiceW@52
+CryptAcquireContextA@20
+CryptAcquireContextW@20
+CryptCreateHash@20
+CryptDecrypt@24
+CryptDeriveKey@20
+CryptDestroyHash@4
+CryptDestroyKey@4
+CryptEncrypt@28
+CryptExportKey@24
+CryptGenKey@16
+CryptGenRandom@12
+CryptGetHashParam@20
+CryptGetKeyParam@20
+CryptGetProvParam@20
+CryptGetUserKey@12
+CryptHashData@16
+CryptHashSessionKey@12
+CryptImportKey@24
+CryptReleaseContext@8
+CryptSetHashParam@16
+CryptSetKeyParam@16
+CryptSetProvParam@16
+CryptSetProviderA@8
+CryptSetProviderW@8
+CryptSignHashA@24
+CryptSignHashW@24
+CryptVerifySignatureA@24
+CryptVerifySignatureW@24
+DeleteAce@8
+DeleteService@4
+DenyAccessRightsA
+DenyAccessRightsW
+DeregisterEventSource@4
+DestroyPrivateObjectSecurity@4
+DuplicateToken@12
+DuplicateTokenEx@24
+ElfBackupEventLogFileA@8
+ElfBackupEventLogFileW@8
+ElfChangeNotify@8
+ElfClearEventLogFileA@8
+ElfClearEventLogFileW@8
+ElfCloseEventLog@4
+ElfDeregisterEventSource@4
+ElfNumberOfRecords@8
+ElfOldestRecord@8
+ElfOpenBackupEventLogA@12
+ElfOpenBackupEventLogW@12
+ElfOpenEventLogA@12
+ElfOpenEventLogW@12
+ElfReadEventLogA@28
+ElfReadEventLogW@28
+ElfRegisterEventSourceA@12
+ElfRegisterEventSourceW@12
+ElfReportEventA@48
+ElfReportEventW@48
+EnumDependentServicesA@24
+EnumDependentServicesW@24
+EnumServiceGroupW
+EnumServicesStatusA@32
+EnumServicesStatusW@32
+EqualPrefixSid@8
+EqualSid@8
+FindFirstFreeAce@8
+FreeSid@4
+GetAce@12
+GetAclInformation@16
+GetAuditedPermissionsFromAclA
+GetAuditedPermissionsFromAclW
+GetAuditedPermissionsFromSDA
+GetAuditedPermissionsFromSDW
+GetCurrentHwProfileA
+GetCurrentHwProfileW
+GetEffectiveAccessRightsA
+GetEffectiveAccessRightsW
+GetEffectiveRightsFromAclA
+GetEffectiveRightsFromAclW
+GetEffectiveRightsFromSDA
+GetEffectiveRightsFromSDW
+GetExplicitAccessRightsA
+GetExplicitAccessRightsW
+GetExplicitEntriesFromAclA
+GetExplicitEntriesFromAclW
+GetFileSecurityA@20
+GetFileSecurityW@20
+GetKernelObjectSecurity@20
+GetLengthSid@4
+GetMultipleTrusteeA
+GetMultipleTrusteeOperationA
+GetMultipleTrusteeOperationW
+GetMultipleTrusteeW
+GetNamedSecurityInfoA@32
+GetNamedSecurityInfoW@32
+GetNumberOfEventLogRecords@8
+GetOldestEventLogRecord@8
+GetPrivateObjectSecurity@20
+GetSecurityDescriptorControl@12
+GetSecurityDescriptorDacl@16
+GetSecurityDescriptorGroup@12
+GetSecurityDescriptorLength@4
+GetSecurityDescriptorOwner@12
+GetSecurityDescriptorSacl@16
+GetSecurityInfo@32
+GetServiceDisplayNameA@16
+GetServiceDisplayNameW@16
+GetServiceKeyNameA@16
+GetServiceKeyNameW@16
+GetSidIdentifierAuthority@4
+GetSidLengthRequired@4
+GetSidSubAuthority@8
+GetSidSubAuthorityCount@4
+GetTokenInformation@20
+GetTrusteeForm@4
+GetTrusteeNameA@4
+GetTrusteeNameW@4
+GetTrusteeTypeA@4
+GetTrusteeTypeW@4
+GetUserNameA@8
+GetUserNameW@8
+GrantAccessRightsA
+GrantAccessRightsW
+I_ScGetCurrentGroupStateW
+I_ScSetServiceBitsA@20
+I_ScSetServiceBitsW@20
+ImpersonateLoggedOnUser@4
+ImpersonateNamedPipeClient@4
+ImpersonateSelf@4
+InitializeAcl@12
+InitializeSecurityDescriptor@8
+InitializeSid@12
+InitiateSystemShutdownA@20
+InitiateSystemShutdownW@20
+IsAccessPermittedA
+IsAccessPermittedW
+IsTextUnicode@12
+IsValidAcl@4
+IsValidSecurityDescriptor@4
+IsValidSid@4
+LockServiceDatabase@4
+LogonUserA@24
+LogonUserW@24
+LookupAccountNameA@28
+LookupAccountNameW@28
+LookupAccountSidA@28
+LookupAccountSidW@28
+LookupPrivilegeDisplayNameA@20
+LookupPrivilegeDisplayNameW@20
+LookupPrivilegeNameA@16
+LookupPrivilegeNameW@16
+LookupPrivilegeValueA@12
+LookupPrivilegeValueW@12
+LookupSecurityDescriptorPartsA@28
+LookupSecurityDescriptorPartsW@28
+LsaAddAccountRights@16
+LsaAddPrivilegesToAccount@8
+LsaClearAuditLog@4
+LsaClose@4
+LsaCreateAccount@16
+LsaCreateSecret@16
+LsaCreateTrustedDomain@16
+LsaDelete@4
+LsaDeleteTrustedDomain@8
+LsaEnumerateAccountRights@16
+LsaEnumerateAccounts@20
+LsaEnumerateAccountsWithUserRight@16
+LsaEnumeratePrivileges@20
+LsaEnumeratePrivilegesOfAccount@8
+LsaEnumerateTrustedDomains@20
+LsaFreeMemory@4
+LsaGetQuotasForAccount@8
+LsaGetSystemAccessAccount@8
+LsaGetUserName
+LsaICLookupNames@28
+LsaICLookupSids@28
+LsaLookupNames@20
+LsaLookupPrivilegeDisplayName@16
+LsaLookupPrivilegeName@12
+LsaLookupPrivilegeValue@12
+LsaLookupSids@20
+LsaNtStatusToWinError@4
+LsaOpenAccount@16
+LsaOpenPolicy@16
+LsaOpenSecret@16
+LsaOpenTrustedDomain@16
+LsaQueryInfoTrustedDomain@12
+LsaQueryInformationPolicy@12
+LsaQuerySecret@20
+LsaQuerySecurityObject@12
+LsaQueryTrustedDomainInfo@16
+LsaRemoveAccountRights@20
+LsaRemovePrivilegesFromAccount@12
+LsaRetrievePrivateData@12
+LsaSetInformationPolicy@12
+LsaSetInformationTrustedDomain@12
+LsaSetQuotasForAccount@8
+LsaSetSecret@12
+LsaSetSecurityObject@12
+LsaSetSystemAccessAccount@8
+LsaSetTrustedDomainInformation@16
+LsaStorePrivateData@12
+MakeAbsoluteSD@44
+MakeSelfRelativeSD@12
+MapGenericMask@8
+NTAccessMaskToProvAccessRights
+NotifyBootConfigStatus@4
+NotifyChangeEventLog@8
+ObjectCloseAuditAlarmA@12
+ObjectCloseAuditAlarmW@12
+ObjectDeleteAuditAlarmA@12
+ObjectDeleteAuditAlarmW@12
+ObjectOpenAuditAlarmA@48
+ObjectOpenAuditAlarmW@48
+ObjectPrivilegeAuditAlarmA@24
+ObjectPrivilegeAuditAlarmW@24
+OpenBackupEventLogA@8
+OpenBackupEventLogW@8
+OpenEventLogA@8
+OpenEventLogW@8
+OpenProcessToken@12
+OpenSCManagerA@12
+OpenSCManagerW@12
+OpenServiceA@12
+OpenServiceW@12
+OpenThreadToken@16
+PrivilegeCheck@12
+PrivilegedServiceAuditAlarmA@20
+PrivilegedServiceAuditAlarmW@20
+ProvAccessRightsToNTAccessMask
+QueryServiceConfigA@16
+QueryServiceConfigW@16
+QueryServiceLockStatusA@16
+QueryServiceLockStatusW@16
+QueryServiceObjectSecurity@20
+QueryServiceStatus@8
+QueryWindows31FilesMigration@4
+ReadEventLogA@28
+ReadEventLogW@28
+RegCloseKey@4
+RegConnectRegistryA@12
+RegConnectRegistryW@12
+RegCreateKeyA@12
+RegCreateKeyExA@36
+RegCreateKeyExW@36
+RegCreateKeyW@12
+RegDeleteKeyA@8
+RegDeleteKeyW@8
+RegDeleteValueA@8
+RegDeleteValueW@8
+RegEnumKeyA@16
+RegEnumKeyExA@32
+RegEnumKeyExW@32
+RegEnumKeyW@16
+RegEnumValueA@32
+RegEnumValueW@32
+RegFlushKey@4
+RegGetKeySecurity@16
+RegLoadKeyA@12
+RegLoadKeyW@12
+RegNotifyChangeKeyValue@20
+RegOpenKeyA@12
+RegOpenKeyExA@20
+RegOpenKeyExW@20
+RegOpenKeyW@12
+RegQueryInfoKeyA@48
+RegQueryInfoKeyW@48
+RegQueryMultipleValuesA@20
+RegQueryMultipleValuesW@20
+RegQueryValueA@16
+RegQueryValueExA@24
+RegQueryValueExW@24
+RegQueryValueW@16
+RegReplaceKeyA@16
+RegReplaceKeyW@16
+RegRestoreKeyA@12
+RegRestoreKeyW@12
+RegSaveKeyA@12
+RegSaveKeyW@12
+RegSetKeySecurity@12
+RegSetValueA@20
+RegSetValueExA@24
+RegSetValueExW@24
+RegSetValueW@20
+RegUnLoadKeyA@8
+RegUnLoadKeyW@8
+RegisterEventSourceA@8
+RegisterEventSourceW@8
+RegisterServiceCtrlHandlerA@8
+RegisterServiceCtrlHandlerW@8
+ReplaceAllAccessRightsA
+ReplaceAllAccessRightsW
+ReportEventA@36
+ReportEventW@36
+RevertToSelf@0
+RevokeExplicitAccessRightsA
+RevokeExplicitAccessRightsW
+SetAccessRightsA
+SetAccessRightsW
+SetAclInformation@16
+SetEntriesInAclA@16
+SetEntriesInAclA@16
+SetFileSecurityA@12
+SetFileSecurityW@12
+SetKernelObjectSecurity@12
+SetNamedSecurityInfoA@28
+SetNamedSecurityInfoW@28
+SetPrivateObjectSecurity@20
+SetSecurityDescriptorDacl@16
+SetSecurityDescriptorGroup@12
+SetSecurityDescriptorOwner@12
+SetSecurityDescriptorSacl@16
+SetSecurityInfo@28
+SetServiceBits@16
+SetServiceObjectSecurity@12
+SetServiceStatus@8
+SetThreadToken@8
+SetTokenInformation@16
+StartServiceA@12
+StartServiceCtrlDispatcherA@4
+StartServiceCtrlDispatcherW@4
+StartServiceW@12
+SynchronizeWindows31FilesAndWindowsNTRegistry@16
+SystemFunction001@12
+SystemFunction002@12
+SystemFunction003@8
+SystemFunction004@12
+SystemFunction005@12
+SystemFunction006@8
+SystemFunction007@8
+SystemFunction008@12
+SystemFunction009@12
+SystemFunction010@12
+SystemFunction011@12
+SystemFunction012@12
+SystemFunction013@12
+SystemFunction014@12
+SystemFunction015@12
+SystemFunction016@12
+SystemFunction017@12
+SystemFunction018@12
+SystemFunction019@12
+SystemFunction020@12
+SystemFunction021@12
+SystemFunction022@12
+SystemFunction023@12
+SystemFunction024@12
+SystemFunction025@12
+SystemFunction026@12
+SystemFunction027@12
+SystemFunction028@8
+SystemFunction029@8
+SystemFunction030@8
+SystemFunction031@8
+SystemFunction032@8
+SystemFunction033@8
+UnlockServiceDatabase@4
+WinLoadTrustProvider@4
+WinSubmitCertificate@4
+WinVerifyTrust@12
diff --git a/reactos/lib/advapi32/advapi32.edf b/reactos/lib/advapi32/advapi32.edf
new file mode 100644 (file)
index 0000000..c3163fa
--- /dev/null
@@ -0,0 +1,411 @@
+; $Id: advapi32.edf,v 1.1 1999/07/17 23:10:17 ea Exp $
+;
+; advapi32.def
+;
+; ReactOS Operating System
+;
+; Some stack sizes are taken from Ander Norlander's .DEFs.
+;
+LIBRARY advapi32
+EXPORTS
+AbortSystemShutdownA=AbortSystemShutdownA@4
+AbortSystemShutdownW=AbortSystemShutdownW@4
+AccessCheck=AccessCheck@32
+AccessCheckAndAuditAlarmA=AccessCheckAndAuditAlarmA@44
+AccessCheckAndAuditAlarmW=AccessCheckAndAuditAlarmW@44
+AddAccessAllowedAce=AddAccessAllowedAce@16
+AddAccessDeniedAce=AddAccessDeniedAce@16
+AddAce=AddAce@20
+AddAuditAccessAce=AddAuditAccessAce@24
+AdjustTokenGroups=AdjustTokenGroups@24
+AdjustTokenPrivileges=AdjustTokenPrivileges@24
+AllocateAndInitializeSid=AllocateAndInitializeSid@44
+AllocateLocallyUniqueId=AllocateLocallyUniqueId@4
+AreAllAccessesGranted=AreAllAccessesGranted@8
+AreAnyAccessesGranted=AreAnyAccessesGranted@8
+BackupEventLogA=BackupEventLogA@8
+BackupEventLogW=BackupEventLogW@8
+BuildAccessRequestA
+BuildAccessRequestW
+BuildExplicitAccessWithNameA=BuildExplicitAccessWithNameA@20
+BuildExplicitAccessWithNameW=BuildExplicitAccessWithNameW@20
+BuildImpersonateExplicitAccessWithNameA
+BuildImpersonateExplicitAccessWithNameW
+BuildImpersonateTrusteeA
+BuildImpersonateTrusteeW
+BuildSecurityDescriptorA=BuildSecurityDescriptorA@36
+BuildSecurityDescriptorW=BuildSecurityDescriptorW@36
+BuildTrusteeWithNameA=BuildTrusteeWithNameA@8
+BuildTrusteeWithNameW=BuildTrusteeWithNameW@8
+BuildTrusteeWithSidA=BuildTrusteeWithSidA@8
+BuildTrusteeWithSidW=BuildTrusteeWithSidW@8
+ChangeServiceConfigA=ChangeServiceConfigA@44
+ChangeServiceConfigW=ChangeServiceConfigW@44
+ClearEventLogA=ClearEventLogA@8
+ClearEventLogW=ClearEventLogW@8
+ClearEventLogA=ClearEventLogA@8
+CloseServiceHandle=CloseServiceHandle@4
+ControlService=ControlService@12
+CopySid=CopySid@12
+CreatePrivateObjectSecurity=CreatePrivateObjectSecurity@24
+CreateProcessAsUserA=CreateProcessAsUserA@44
+CreateProcessAsUserW=CreateProcessAsUserW@44
+CreateServiceA=CreateServiceA@52
+CreateServiceW=CreateServiceW@52
+CryptAcquireContextA=CryptAcquireContextA@20
+CryptAcquireContextW=CryptAcquireContextW@20
+CryptCreateHash=CryptCreateHash@20
+CryptDecrypt=CryptDecrypt@24
+CryptDeriveKey=CryptDeriveKey@20
+CryptDestroyHash=CryptDestroyHash@4
+CryptDestroyKey=CryptDestroyKey@4
+CryptEncrypt=CryptEncrypt@28
+CryptExportKey=CryptExportKey@24
+CryptGenKey=CryptGenKey@16
+CryptGenRandom=CryptGenRandom@12
+CryptGetHashParam=CryptGetHashParam@20
+CryptGetKeyParam=CryptGetKeyParam@20
+CryptGetProvParam=CryptGetProvParam@20
+CryptGetUserKey=CryptGetUserKey@12
+CryptHashData=CryptHashData@16
+CryptHashSessionKey=CryptHashSessionKey@12
+CryptImportKey=CryptImportKey@24
+CryptReleaseContext=CryptReleaseContext@8
+CryptSetHashParam=CryptSetHashParam@16
+CryptSetKeyParam=CryptSetKeyParam@16
+CryptSetProvParam=CryptSetProvParam@16
+CryptSetProviderA=CryptSetProviderA@8
+CryptSetProviderW=CryptSetProviderW@8
+CryptSignHashA=CryptSignHashA@24
+CryptSignHashW=CryptSignHashW@24
+CryptVerifySignatureA=CryptVerifySignatureA@24
+CryptVerifySignatureW=CryptVerifySignatureW@24
+DeleteAce=DeleteAce@8
+DeleteService=DeleteService@4
+DenyAccessRightsA
+DenyAccessRightsW
+DeregisterEventSource=DeregisterEventSource@4
+DestroyPrivateObjectSecurity=DestroyPrivateObjectSecurity@4
+DuplicateToken=DuplicateToken@12
+DuplicateTokenEx=DuplicateTokenEx@24
+ElfBackupEventLogFileA=ElfBackupEventLogFileA@8
+ElfBackupEventLogFileW=ElfBackupEventLogFileW@8
+ElfChangeNotify=ElfChangeNotify@8
+ElfClearEventLogFileA=ElfClearEventLogFileA@8
+ElfClearEventLogFileW=ElfClearEventLogFileW@8
+ElfCloseEventLog=ElfCloseEventLog@4
+ElfDeregisterEventSource=ElfDeregisterEventSource@4
+ElfNumberOfRecords=ElfNumberOfRecords@8
+ElfOldestRecord=ElfOldestRecord@8
+ElfOpenBackupEventLogA=ElfOpenBackupEventLogA@12
+ElfOpenBackupEventLogW=ElfOpenBackupEventLogW@12
+ElfOpenEventLogA=ElfOpenEventLogA@12
+ElfOpenEventLogW=ElfOpenEventLogW@12
+ElfReadEventLogA=ElfReadEventLogA@28
+ElfReadEventLogW=ElfReadEventLogW@28
+ElfRegisterEventSourceA=ElfRegisterEventSourceA@12
+ElfRegisterEventSourceW=ElfRegisterEventSourceW@12
+ElfReportEventA=ElfReportEventA@48
+ElfReportEventW=ElfReportEventW@48
+EnumDependentServicesA=EnumDependentServicesA@24
+EnumDependentServicesW=EnumDependentServicesW@24
+EnumServiceGroupW
+EnumServicesStatusA=EnumServicesStatusA@32
+EnumServicesStatusW=EnumServicesStatusW@32
+EqualPrefixSid=EqualPrefixSid@8
+EqualSid=EqualSid@8
+FindFirstFreeAce=FindFirstFreeAce@8
+FreeSid=FreeSid@4
+GetAce=GetAce@12
+GetAclInformation=GetAclInformation@16
+GetAuditedPermissionsFromAclA
+GetAuditedPermissionsFromAclW
+GetAuditedPermissionsFromSDA
+GetAuditedPermissionsFromSDW
+GetCurrentHwProfileA
+GetCurrentHwProfileW
+GetEffectiveAccessRightsA
+GetEffectiveAccessRightsW
+GetEffectiveRightsFromAclA
+GetEffectiveRightsFromAclW
+GetEffectiveRightsFromSDA
+GetEffectiveRightsFromSDW
+GetExplicitAccessRightsA
+GetExplicitAccessRightsW
+GetExplicitEntriesFromAclA
+GetExplicitEntriesFromAclW
+GetFileSecurityA=GetFileSecurityA@20
+GetFileSecurityW=GetFileSecurityW@20
+GetKernelObjectSecurity=GetKernelObjectSecurity@20
+GetLengthSid=GetLengthSid@4
+GetMultipleTrusteeA
+GetMultipleTrusteeOperationA
+GetMultipleTrusteeOperationW
+GetMultipleTrusteeW
+GetNamedSecurityInfoA=GetNamedSecurityInfoA@32
+GetNamedSecurityInfoW=GetNamedSecurityInfoW@32
+GetNumberOfEventLogRecords=GetNumberOfEventLogRecords@8
+GetOldestEventLogRecord=GetOldestEventLogRecord@8
+GetPrivateObjectSecurity=GetPrivateObjectSecurity@20
+GetSecurityDescriptorControl=GetSecurityDescriptorControl@12
+GetSecurityDescriptorDacl=GetSecurityDescriptorDacl@16
+GetSecurityDescriptorGroup=GetSecurityDescriptorGroup@12
+GetSecurityDescriptorLength=GetSecurityDescriptorLength@4
+GetSecurityDescriptorOwner=GetSecurityDescriptorOwner@12
+GetSecurityDescriptorSacl=GetSecurityDescriptorSacl@16
+GetSecurityInfo=GetSecurityInfo@32
+GetServiceDisplayNameA=GetServiceDisplayNameA@16
+GetServiceDisplayNameW=GetServiceDisplayNameW@16
+GetServiceKeyNameA=GetServiceKeyNameA@16
+GetServiceKeyNameW=GetServiceKeyNameW@16
+GetSidIdentifierAuthority=GetSidIdentifierAuthority@4
+GetSidLengthRequired=GetSidLengthRequired@4
+GetSidSubAuthority=GetSidSubAuthority@8
+GetSidSubAuthorityCount=GetSidSubAuthorityCount@4
+GetTokenInformation=GetTokenInformation@20
+GetTrusteeForm=GetTrusteeForm@4
+GetTrusteeNameA=GetTrusteeNameA@4
+GetTrusteeNameW=GetTrusteeNameW@4
+GetTrusteeTypeA=GetTrusteeTypeA@4
+GetTrusteeTypeW=GetTrusteeTypeW@4
+GetUserNameA=GetUserNameA@8
+GetUserNameW=GetUserNameW@8
+GrantAccessRightsA
+GrantAccessRightsW
+I_ScGetCurrentGroupStateW
+I_ScSetServiceBitsA=I_ScSetServiceBitsA@20
+I_ScSetServiceBitsW=I_ScSetServiceBitsW@20
+ImpersonateLoggedOnUser=ImpersonateLoggedOnUser@4
+ImpersonateNamedPipeClient=ImpersonateNamedPipeClient@4
+ImpersonateSelf=ImpersonateSelf@4
+InitializeAcl=InitializeAcl@12
+InitializeSecurityDescriptor=InitializeSecurityDescriptor@8
+InitializeSid=InitializeSid@12
+InitiateSystemShutdownA=InitiateSystemShutdownA@20
+InitiateSystemShutdownW=InitiateSystemShutdownW@20
+IsAccessPermittedA
+IsAccessPermittedW
+IsTextUnicode=IsTextUnicode@12
+IsValidAcl=IsValidAcl@4
+IsValidSecurityDescriptor=IsValidSecurityDescriptor@4
+IsValidSid=IsValidSid@4
+LockServiceDatabase=LockServiceDatabase@4
+LogonUserA=LogonUserA@24
+LogonUserW=LogonUserW@24
+LookupAccountNameA=LookupAccountNameA@28
+LookupAccountNameW=LookupAccountNameW@28
+LookupAccountSidA=LookupAccountSidA@28
+LookupAccountSidW=LookupAccountSidW@28
+LookupPrivilegeDisplayNameA=LookupPrivilegeDisplayNameA@20
+LookupPrivilegeDisplayNameW=LookupPrivilegeDisplayNameW@20
+LookupPrivilegeNameA=LookupPrivilegeNameA@16
+LookupPrivilegeNameW=LookupPrivilegeNameW@16
+LookupPrivilegeValueA=LookupPrivilegeValueA@12
+LookupPrivilegeValueW=LookupPrivilegeValueW@12
+LookupSecurityDescriptorPartsA=LookupSecurityDescriptorPartsA@28
+LookupSecurityDescriptorPartsW=LookupSecurityDescriptorPartsW@28
+LsaAddAccountRights=LsaAddAccountRights@16
+LsaAddPrivilegesToAccount=LsaAddPrivilegesToAccount@8
+LsaClearAuditLog=LsaClearAuditLog@4
+LsaClose=LsaClose@4
+LsaCreateAccount=LsaCreateAccount@16
+LsaCreateSecret=LsaCreateSecret@16
+LsaCreateTrustedDomain=LsaCreateTrustedDomain@16
+LsaDelete=LsaDelete@4
+LsaDeleteTrustedDomain=LsaDeleteTrustedDomain@8
+LsaEnumerateAccountRights=LsaEnumerateAccountRights@16
+LsaEnumerateAccounts=LsaEnumerateAccounts@20
+LsaEnumerateAccountsWithUserRight=LsaEnumerateAccountsWithUserRight@16
+LsaEnumeratePrivileges=LsaEnumeratePrivileges@20
+LsaEnumeratePrivilegesOfAccount=LsaEnumeratePrivilegesOfAccount@8
+LsaEnumerateTrustedDomains=LsaEnumerateTrustedDomains@20
+LsaFreeMemory=LsaFreeMemory@4
+LsaGetQuotasForAccount=LsaGetQuotasForAccount@8
+LsaGetSystemAccessAccount=LsaGetSystemAccessAccount@8
+LsaGetUserName
+LsaICLookupNames=LsaICLookupNames@28
+LsaICLookupSids=LsaICLookupSids@28
+LsaLookupNames=LsaLookupNames@20
+LsaLookupPrivilegeDisplayName=LsaLookupPrivilegeDisplayName@16
+LsaLookupPrivilegeName=LsaLookupPrivilegeName@12
+LsaLookupPrivilegeValue=LsaLookupPrivilegeValue@12
+LsaLookupSids=LsaLookupSids@20
+LsaNtStatusToWinError=LsaNtStatusToWinError@4
+LsaOpenAccount=LsaOpenAccount@16
+LsaOpenPolicy=LsaOpenPolicy@16
+LsaOpenSecret=LsaOpenSecret@16
+LsaOpenTrustedDomain=LsaOpenTrustedDomain@16
+LsaQueryInfoTrustedDomain=LsaQueryInfoTrustedDomain@12
+LsaQueryInformationPolicy=LsaQueryInformationPolicy@12
+LsaQuerySecret=LsaQuerySecret@20
+LsaQuerySecurityObject=LsaQuerySecurityObject@12
+LsaQueryTrustedDomainInfo=LsaQueryTrustedDomainInfo@16
+LsaRemoveAccountRights=LsaRemoveAccountRights@20
+LsaRemovePrivilegesFromAccount=LsaRemovePrivilegesFromAccount@12
+LsaRetrievePrivateData=LsaRetrievePrivateData@12
+LsaSetInformationPolicy=LsaSetInformationPolicy@12
+LsaSetInformationTrustedDomain=LsaSetInformationTrustedDomain@12
+LsaSetQuotasForAccount=LsaSetQuotasForAccount@8
+LsaSetSecret=LsaSetSecret@12
+LsaSetSecurityObject=LsaSetSecurityObject@12
+LsaSetSystemAccessAccount=LsaSetSystemAccessAccount@8
+LsaSetTrustedDomainInformation=LsaSetTrustedDomainInformation@16
+LsaStorePrivateData=LsaStorePrivateData@12
+MakeAbsoluteSD=MakeAbsoluteSD@44
+MakeSelfRelativeSD=MakeSelfRelativeSD@12
+MapGenericMask=MapGenericMask@8
+NTAccessMaskToProvAccessRights
+NotifyBootConfigStatus=NotifyBootConfigStatus@4
+NotifyChangeEventLog=NotifyChangeEventLog@8
+ObjectCloseAuditAlarmA=ObjectCloseAuditAlarmA@12
+ObjectCloseAuditAlarmW=ObjectCloseAuditAlarmW@12
+ObjectDeleteAuditAlarmA=ObjectDeleteAuditAlarmA@12
+ObjectDeleteAuditAlarmW=ObjectDeleteAuditAlarmW@12
+ObjectOpenAuditAlarmA=ObjectOpenAuditAlarmA@48
+ObjectOpenAuditAlarmW=ObjectOpenAuditAlarmW@48
+ObjectPrivilegeAuditAlarmA=ObjectPrivilegeAuditAlarmA@24
+ObjectPrivilegeAuditAlarmW=ObjectPrivilegeAuditAlarmW@24
+OpenBackupEventLogA=OpenBackupEventLogA@8
+OpenBackupEventLogW=OpenBackupEventLogW@8
+OpenEventLogA=OpenEventLogA@8
+OpenEventLogW=OpenEventLogW@8
+OpenProcessToken=OpenProcessToken@12
+OpenSCManagerA=OpenSCManagerA@12
+OpenSCManagerW=OpenSCManagerW@12
+OpenServiceA=OpenServiceA@12
+OpenServiceW=OpenServiceW@12
+OpenThreadToken=OpenThreadToken@16
+PrivilegeCheck=PrivilegeCheck@12
+PrivilegedServiceAuditAlarmA=PrivilegedServiceAuditAlarmA@20
+PrivilegedServiceAuditAlarmW=PrivilegedServiceAuditAlarmW@20
+ProvAccessRightsToNTAccessMask
+QueryServiceConfigA=QueryServiceConfigA@16
+QueryServiceConfigW=QueryServiceConfigW@16
+QueryServiceLockStatusA=QueryServiceLockStatusA@16
+QueryServiceLockStatusW=QueryServiceLockStatusW@16
+QueryServiceObjectSecurity=QueryServiceObjectSecurity@20
+QueryServiceStatus=QueryServiceStatus@8
+QueryWindows31FilesMigration=QueryWindows31FilesMigration@4
+ReadEventLogA=ReadEventLogA@28
+ReadEventLogW=ReadEventLogW@28
+RegCloseKey=RegCloseKey@4
+RegConnectRegistryA=RegConnectRegistryA@12
+RegConnectRegistryW=RegConnectRegistryW@12
+RegCreateKeyA=RegCreateKeyA@12
+RegCreateKeyExA=RegCreateKeyExA@36
+RegCreateKeyExW=RegCreateKeyExW@36
+RegCreateKeyW=RegCreateKeyW@12
+RegDeleteKeyA=RegDeleteKeyA@8
+RegDeleteKeyW=RegDeleteKeyW@8
+RegDeleteValueA=RegDeleteValueA@8
+RegDeleteValueW=RegDeleteValueW@8
+RegEnumKeyA=RegEnumKeyA@16
+RegEnumKeyExA=RegEnumKeyExA@32
+RegEnumKeyExW=RegEnumKeyExW@32
+RegEnumKeyW=RegEnumKeyW@16
+RegEnumValueA=RegEnumValueA@32
+RegEnumValueW=RegEnumValueW@32
+RegFlushKey=RegFlushKey@4
+RegGetKeySecurity=RegGetKeySecurity@16
+RegLoadKeyA=RegLoadKeyA@12
+RegLoadKeyW=RegLoadKeyW@12
+RegNotifyChangeKeyValue=RegNotifyChangeKeyValue@20
+RegOpenKeyA=RegOpenKeyA@12
+RegOpenKeyExA=RegOpenKeyExA@20
+RegOpenKeyExW=RegOpenKeyExW@20
+RegOpenKeyW=RegOpenKeyW@12
+RegQueryInfoKeyA=RegQueryInfoKeyA@48
+RegQueryInfoKeyW=RegQueryInfoKeyW@48
+RegQueryMultipleValuesA=RegQueryMultipleValuesA@20
+RegQueryMultipleValuesW=RegQueryMultipleValuesW@20
+RegQueryValueA=RegQueryValueA@16
+RegQueryValueExA=RegQueryValueExA@24
+RegQueryValueExW=RegQueryValueExW@24
+RegQueryValueW=RegQueryValueW@16
+RegReplaceKeyA=RegReplaceKeyA@16
+RegReplaceKeyW=RegReplaceKeyW@16
+RegRestoreKeyA=RegRestoreKeyA@12
+RegRestoreKeyW=RegRestoreKeyW@12
+RegSaveKeyA=RegSaveKeyA@12
+RegSaveKeyW=RegSaveKeyW@12
+RegSetKeySecurity=RegSetKeySecurity@12
+RegSetValueA=RegSetValueA@20
+RegSetValueExA=RegSetValueExA@24
+RegSetValueExW=RegSetValueExW@24
+RegSetValueW=RegSetValueW@20
+RegUnLoadKeyA=RegUnLoadKeyA@8
+RegUnLoadKeyW=RegUnLoadKeyW@8
+RegisterEventSourceA=RegisterEventSourceA@8
+RegisterEventSourceW=RegisterEventSourceW@8
+RegisterServiceCtrlHandlerA=RegisterServiceCtrlHandlerA@8
+RegisterServiceCtrlHandlerW=RegisterServiceCtrlHandlerW@8
+ReplaceAllAccessRightsA
+ReplaceAllAccessRightsW
+ReportEventA=ReportEventA@36
+ReportEventW=ReportEventW@36
+RevertToSelf=RevertToSelf@0
+RevokeExplicitAccessRightsA
+RevokeExplicitAccessRightsW
+SetAccessRightsA
+SetAccessRightsW
+SetAclInformation=SetAclInformation@16
+SetEntriesInAclA=SetEntriesInAclA@16
+SetEntriesInAclA=SetEntriesInAclA@16
+SetFileSecurityA=SetFileSecurityA@12
+SetFileSecurityW=SetFileSecurityW@12
+SetKernelObjectSecurity=SetKernelObjectSecurity@12
+SetNamedSecurityInfoA=SetNamedSecurityInfoA@28
+SetNamedSecurityInfoW=SetNamedSecurityInfoW@28
+SetPrivateObjectSecurity=SetPrivateObjectSecurity@20
+SetSecurityDescriptorDacl=SetSecurityDescriptorDacl@16
+SetSecurityDescriptorGroup=SetSecurityDescriptorGroup@12
+SetSecurityDescriptorOwner=SetSecurityDescriptorOwner@12
+SetSecurityDescriptorSacl=SetSecurityDescriptorSacl@16
+SetSecurityInfo=SetSecurityInfo@28
+SetServiceBits=SetServiceBits@16
+SetServiceObjectSecurity=SetServiceObjectSecurity@12
+SetServiceStatus=SetServiceStatus@8
+SetThreadToken=SetThreadToken@8
+SetTokenInformation=SetTokenInformation@16
+StartServiceA=StartServiceA@12
+StartServiceCtrlDispatcherA=StartServiceCtrlDispatcherA@4
+StartServiceCtrlDispatcherW=StartServiceCtrlDispatcherW@4
+StartServiceW=StartServiceW@12
+SynchronizeWindows31FilesAndWindowsNTRegistry=SynchronizeWindows31FilesAndWindowsNTRegistry@16
+SystemFunction001=SystemFunction001@12
+SystemFunction002=SystemFunction002@12
+SystemFunction003=SystemFunction003@8
+SystemFunction004=SystemFunction004@12
+SystemFunction005=SystemFunction005@12
+SystemFunction006=SystemFunction006@8
+SystemFunction007=SystemFunction007@8
+SystemFunction008=SystemFunction008@12
+SystemFunction009=SystemFunction009@12
+SystemFunction010=SystemFunction010@12
+SystemFunction011=SystemFunction011@12
+SystemFunction012=SystemFunction012@12
+SystemFunction013=SystemFunction013@12
+SystemFunction014=SystemFunction014@12
+SystemFunction015=SystemFunction015@12
+SystemFunction016=SystemFunction016@12
+SystemFunction017=SystemFunction017@12
+SystemFunction018=SystemFunction018@12
+SystemFunction019=SystemFunction019@12
+SystemFunction020=SystemFunction020@12
+SystemFunction021=SystemFunction021@12
+SystemFunction022=SystemFunction022@12
+SystemFunction023=SystemFunction023@12
+SystemFunction024=SystemFunction024@12
+SystemFunction025=SystemFunction025@12
+SystemFunction026=SystemFunction026@12
+SystemFunction027=SystemFunction027@12
+SystemFunction028=SystemFunction028@8
+SystemFunction029=SystemFunction029@8
+SystemFunction030=SystemFunction030@8
+SystemFunction031=SystemFunction031@8
+SystemFunction032=SystemFunction032@8
+SystemFunction033=SystemFunction033@8
+UnlockServiceDatabase=UnlockServiceDatabase@4
+WinLoadTrustProvider=WinLoadTrustProvider@4
+WinSubmitCertificate=WinSubmitCertificate@4
+WinVerifyTrust=WinVerifyTrust@12
index 4545063..19d6df9 100644 (file)
@@ -1,4 +1,4 @@
-# $Id: makefile,v 1.3 1999/06/18 22:10:58 ea Exp $
+# $Id: makefile,v 1.4 1999/07/17 23:10:18 ea Exp $
 #
 # Makefile for ReactOS advapi32.dll
 #
@@ -17,7 +17,7 @@ endif
 MISC_OBJECTS = misc/dllmain.o misc/shutdown.o \
                misc/sysfunc.o
 
-REGISTRY_OBJECTS = reg/reg.o
+REGISTRY_OBJECTS = reg/reg.o reg/regw.o
 
 SECURITY_OBJECTS = sec/lsa.o sec/sec.o
 #SECURITY_OBJECTS = sec/lsa.o sec/rtlsec.o sec/sec.o
@@ -42,6 +42,7 @@ $(TARGET).dll: $(DLLMAIN) $(OBJECTS) $(TARGET).def
        $(DLLTOOL) \
                --dllname $(TARGET).dll \
                --def $(TARGET).def \
+               --kill-at \
                --output-lib $(TARGET).a
        $(CC) \
                $(TARGET).o \
@@ -56,7 +57,7 @@ $(TARGET).dll: $(DLLMAIN) $(OBJECTS) $(TARGET).def
                --dllname $(TARGET).dll \
                --base-file base.tmp \
                --output-exp temp.exp \
-               --def $(TARGET).def
+               --def $(TARGET).edf
        - $(RM) base.tmp
        $(CC) \
                $(TARGET).o
index f6423b9..54cb355 100644 (file)
@@ -1,4 +1,4 @@
-/* $Id: shutdown.c,v 1.1 1999/05/19 16:43:30 ea Exp $
+/* $Id: shutdown.c,v 1.2 1999/07/17 23:10:18 ea Exp $
  *
  * COPYRIGHT:       See COPYING in the top level directory
  * PROJECT:         ReactOS system libraries
@@ -83,7 +83,7 @@ InitiateSystemShutdownW(
 
        if (lpMachineName)
        {
-               /* remote machine shutdown not supported yet */
+               /* FIXME: remote machine shutdown not supported yet */
                SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
                return FALSE;
        }
index bda3781..265f264 100644 (file)
@@ -8,12 +8,9 @@
  *                  Created 01/11/98
  *                  19990309 EA Stubs
  */
-//#define WIN32_LEAN_AND_MEAN
 #include <windows.h>
-#include <wchar.h>
 #include <ddk/ntddk.h>
 
-
 /************************************************************************
  *     RegCloseKey
  */
@@ -44,22 +41,6 @@ RegConnectRegistryA(
 }
 
 
-/************************************************************************
- *     RegConnectRegistryW
- */
-LONG
-STDCALL
-RegConnectRegistryW(
-       LPWSTR  lpMachineName,
-       HKEY    hKey,
-       PHKEY   phkResult
-       )
-{
-       SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
-       return ERROR_CALL_NOT_IMPLEMENTED;
-}
-
-
 /************************************************************************
  *     RegCreateKeyA
  */
@@ -76,22 +57,6 @@ RegCreateKeyA(
 }
 
 
-/************************************************************************
- *     RegCreateKeyW
- */
-LONG
-STDCALL
-RegCreateKeyW(
-       HKEY    hKey,
-       LPCWSTR lpSubKey,
-       PHKEY   phkResult
-       )
-{
-       SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
-       return ERROR_CALL_NOT_IMPLEMENTED;
-}
-
-
 /************************************************************************
  *     RegCreateKeyExA
  */
@@ -114,28 +79,6 @@ RegCreateKeyExA(
 }
 
 
-/************************************************************************
- *     RegCreateKeyExW
- */
-LONG
-STDCALL
-RegCreateKeyExW(
-       HKEY                    hKey,
-       LPCWSTR                 lpSubKey,
-       DWORD                   Reserved,
-       LPWSTR                  lpClass,
-       DWORD                   dwOptions,
-       REGSAM                  samDesired,
-       LPSECURITY_ATTRIBUTES   lpSecurityAttributes,
-       PHKEY                   phkResult,
-       LPDWORD                 lpdwDisposition
-       )
-{
-       SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
-       return ERROR_CALL_NOT_IMPLEMENTED;
-}
-
-
 /************************************************************************
  *     RegDeleteKeyA
  */
@@ -151,21 +94,6 @@ RegDeleteKeyA(
 }
 
 
-/************************************************************************
- *     RegDeleteKeyW
- */
-LONG
-STDCALL
-RegDeleteKeyW(
-       HKEY    hKey,
-       LPCWSTR lpSubKey
-       )
-{
-       SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
-       return ERROR_CALL_NOT_IMPLEMENTED;
-}
-
-
 /************************************************************************
  *     RegDeleteValueA
  */
@@ -181,21 +109,6 @@ RegDeleteValueA(
 }
 
 
-/************************************************************************
- *     RegDeleteValueW
- */
-LONG
-STDCALL
-RegDeleteValueW(
-       HKEY    hKey,
-       LPCWSTR lpValueName
-       )
-{
-       SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
-       return ERROR_CALL_NOT_IMPLEMENTED;
-}
-
-
 /************************************************************************
  *     RegEnumKeyA
  */
@@ -213,23 +126,6 @@ RegEnumKeyA(
 }
 
 
-/************************************************************************
- *     RegEnumKeyW
- */
-LONG
-STDCALL
-RegEnumKeyW(
-       HKEY    hKey,
-       DWORD   dwIndex,
-       LPWSTR  lpName,
-       DWORD   cbName
-       )
-{
-       SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
-       return ERROR_CALL_NOT_IMPLEMENTED;
-}
-
-
 /************************************************************************
  *     RegEnumKeyExA
  */
@@ -251,27 +147,6 @@ RegEnumKeyExA(
 }
 
 
-/************************************************************************
- *     RegEnumKeyExW
- */
-LONG
-STDCALL
-RegEnumKeyExW(
-       HKEY            hKey,
-       DWORD           dwIndex,
-       LPWSTR          lpName,
-       LPDWORD         lpcbName,
-       LPDWORD         lpReserved,
-       LPWSTR          lpClass,
-       LPDWORD         lpcbClass,
-       PFILETIME       lpftLastWriteTime
-       )
-{
-       SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
-       return ERROR_CALL_NOT_IMPLEMENTED;
-}
-
-
 /************************************************************************
  *     RegEnumValueA
  */
@@ -293,27 +168,6 @@ RegEnumValueA(
 }
 
 
-/************************************************************************
- *     RegEnumValueW
- */
-LONG
-STDCALL
-RegEnumValueW(
-       HKEY    hKey,
-       DWORD   dwIndex,
-       LPWSTR  lpValueName,
-       LPDWORD lpcbValueName,
-       LPDWORD lpReserved,
-       LPDWORD lpType,
-       LPBYTE  lpData,
-       LPDWORD lpcbData
-       )
-{
-       SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
-       return ERROR_CALL_NOT_IMPLEMENTED;
-}
-
-
 /************************************************************************
  *     RegFlushKey
  */
@@ -335,7 +189,7 @@ LONG
 STDCALL
 RegGetKeySecurity (
        HKEY                    hKey,
-       SECURITY_INFORMATION    SecurityInformation,
+       SECURITY_INFORMATION    SecurityInformation,    /* FIXME: ULONG ? */
        PSECURITY_DESCRIPTOR    pSecurityDescriptor,
        LPDWORD                 lpcbSecurityDescriptor
        )
@@ -352,6 +206,7 @@ LONG
 STDCALL
 RegLoadKey(
        HKEY    hKey,
+       LPCSTR  lpSubKey,
        LPCSTR  lpFile
        )
 {
@@ -360,21 +215,6 @@ RegLoadKey(
 }
 
 
-/************************************************************************
- *     RegLoadKeyW
- */
-LONG
-STDCALL
-RegLoadKeyW(
-       HKEY    hKey,
-       LPCWSTR lpFile
-       )
-{
-       SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
-       return ERROR_CALL_NOT_IMPLEMENTED;
-}
-
-
 /************************************************************************
  *     RegNotifyChangeKeyValue
  */
@@ -410,48 +250,6 @@ RegOpenKeyA(
 }
 
 
-/************************************************************************
- *     RegOpenKeyW
- *
- *     19981101 Ariadne
- *     19990525 EA
- */
-LONG
-STDCALL
-RegOpenKeyW (
-       HKEY    hKey,
-       LPCWSTR lpSubKey,
-       PHKEY   phkResult
-       )
-{
-       NTSTATUS                errCode;
-       UNICODE_STRING          SubKeyString;
-       OBJECT_ATTRIBUTES       ObjectAttributes;
-
-
-       SubKeyString.Buffer = (LPWSTR) lpSubKey;
-       SubKeyString.Length = wcslen(lpSubKey);
-       SubKeyString.MaximumLength = SubKeyString.Length;
-
-       ObjectAttributes.RootDirectory =  hKey;
-       ObjectAttributes.ObjectName = & SubKeyString;
-       ObjectAttributes.Attributes = OBJ_CASE_INSENSITIVE; 
-       errCode = NtOpenKey(
-                       phkResult,
-                       GENERIC_ALL,
-                       & ObjectAttributes
-                       );
-       if ( !NT_SUCCESS(errCode) )
-       {
-               LONG LastError = RtlNtStatusToDosError(errCode);
-               
-               SetLastError(LastError);
-               return LastError;
-       }
-       return ERROR_SUCCESS;
-}
-
-
 /************************************************************************
  *     RegOpenKeyExA
  */
@@ -461,23 +259,7 @@ RegOpenKeyExA(
        HKEY    hKey,
        LPCSTR  lpSubKey,
        DWORD   ulOptions,
-       PHKEY   phkResult
-       )
-{
-       SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
-       return ERROR_CALL_NOT_IMPLEMENTED;
-}
-
-
-/************************************************************************
- *     RegOpenKeyExW
- */
-LONG
-STDCALL
-RegOpenKeyExW(
-       HKEY    hKey,
-       LPCWSTR lpSubKey,
-       DWORD   ulOptions,
+       REGSAM  samDesired,
        PHKEY   phkResult
        )
 {
@@ -502,30 +284,7 @@ RegQueryInfoKeyA(
        LPDWORD         lpcValues,
        LPDWORD         lpcbMaxValueNameLen,
        LPDWORD         lpcbMaxValueLen,
-       PFILETIME       lpftLastWriteTime
-       )
-{
-       SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
-       return ERROR_CALL_NOT_IMPLEMENTED;
-}
-
-
-/************************************************************************
- *     RegQueryInfoKeyW
- */
-LONG
-STDCALL
-RegQueryInfoKeyW(
-       HKEY            hKey,
-       LPWSTR          lpClass,
-       LPDWORD         lpcbClass,
-       LPDWORD         lpReserved,
-       LPDWORD         lpcSubKeys,
-       LPDWORD         lpcbMaxSubKeyLen,
-       LPDWORD         lpcbMaxClassLen,
-       LPDWORD         lpcValues,
-       LPDWORD         lpcbMaxValueNameLen,
-       LPDWORD         lpcbMaxValueLen,
+       LPDWORD         lpcbSecurityDescriptor,
        PFILETIME       lpftLastWriteTime
        )
 {
@@ -552,24 +311,6 @@ RegQueryMultipleValuesA(
 }
 
 
-/************************************************************************
- *     RegQueryMultipleValuesW
- */
-LONG
-STDCALL
-RegQueryMultipleValuesW(
-       HKEY    hKey,
-       PVALENT val_list,
-       DWORD   num_vals,
-       LPWSTR  lpValueBuf,
-       LPDWORD ldwTotsize
-       )
-{
-       SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
-       return ERROR_CALL_NOT_IMPLEMENTED;
-}
-
-
 /************************************************************************
  *     RegQueryValueA
  */
@@ -587,23 +328,6 @@ RegQueryValueA(
 }
 
 
-/************************************************************************
- *     RegQueryValueW
- */
-LONG
-STDCALL
-RegQueryValueW(
-       HKEY    hKey,
-       LPCWSTR lpSubKey,
-       LPWSTR  lpValue,
-       PLONG   lpcbValue
-       )
-{
-       SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
-       return ERROR_CALL_NOT_IMPLEMENTED;
-}
-
-
 /************************************************************************
  *     RegQueryValueExA
  */
@@ -611,26 +335,7 @@ LONG
 STDCALL
 RegQueryValueExA(
        HKEY    hKey,
-       LPSTR   lpValueName,
-       LPDWORD lpReserved,
-       LPDWORD lpType,
-       LPBYTE  lpData,
-       LPDWORD lpcbData
-       )
-{
-       SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
-       return ERROR_CALL_NOT_IMPLEMENTED;
-}
-
-
-/************************************************************************
- *     RegQueryValueExW
- */
-LONG
-STDCALL
-RegQueryValueExW(
-       HKEY    hKey,
-       LPWSTR  lpValueName,
+       LPCSTR  lpValueName,
        LPDWORD lpReserved,
        LPDWORD lpType,
        LPBYTE  lpData,
@@ -659,23 +364,6 @@ RegReplaceKeyA(
 }
 
 
-/************************************************************************
- *     RegReplaceKeyW
- */
-LONG
-STDCALL
-RegReplaceKeyW(
-       HKEY    hKey,
-       LPCWSTR lpSubKey,
-       LPCWSTR lpNewFile,
-       LPCWSTR lpOldFile
-       )
-{
-       SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
-       return ERROR_CALL_NOT_IMPLEMENTED;
-}
-
-
 /************************************************************************
  *     RegRestoreKeyA
  */
@@ -692,22 +380,6 @@ RegRestoreKeyA(
 }
 
 
-/************************************************************************
- *     RegRestoreKeyW
- */
-LONG
-STDCALL
-RegRestoreKeyW(
-       HKEY    hKey,
-       LPCWSTR lpFile,
-       DWORD   dwFlags
-       )
-{
-       SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
-       return ERROR_CALL_NOT_IMPLEMENTED;
-}
-
-
 /************************************************************************
  *     RegSaveKeyA
  */
@@ -724,22 +396,6 @@ RegSaveKeyA(
 }
 
 
-/************************************************************************
- *     RegSaveKeyW
- */
-LONG
-STDCALL
-RegSaveKeyW(
-       HKEY                    hKey,
-       LPCWSTR                 lpFile,
-       LPSECURITY_ATTRIBUTES   lpSecurityAttributes 
-       )
-{
-       SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
-       return ERROR_CALL_NOT_IMPLEMENTED;
-}
-
-
 /************************************************************************
  *     RegSetKeySecurity
  */
@@ -747,7 +403,7 @@ LONG
 STDCALL
 RegSetKeySecurity(
        HKEY                    hKey,
-       SECURITY_INFORMATION    SecurityInformation,
+       SECURITY_INFORMATION    SecurityInformation,    /* FIXME: ULONG? */
        PSECURITY_DESCRIPTOR    pSecurityDescriptor
        )
 {
@@ -774,24 +430,6 @@ RegSetValueA(
 }
 
 
-/************************************************************************
- *     RegSetValueW
- */
-LONG
-STDCALL
-RegSetValueW(
-       HKEY    hKey,
-       LPCWSTR lpSubKey,
-       DWORD   dwType,
-       LPCWSTR lpData,
-       DWORD   cbData
-       )
-{
-       SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
-       return ERROR_CALL_NOT_IMPLEMENTED;
-}
-
-
 /************************************************************************
  *     RegSetValueExA
  */
@@ -811,25 +449,6 @@ RegSetValueExA(
 }
 
 
-/************************************************************************
- *     RegSetValueExW
- */
-LONG
-STDCALL
-RegSetValueExW(
-       HKEY            hKey,
-       LPCWSTR         lpValueName,
-       DWORD           Reserved,
-       DWORD           dwType,
-       CONST BYTE      *lpData,
-       DWORD           cbData
-       )
-{
-       SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
-       return ERROR_CALL_NOT_IMPLEMENTED;
-}
-
-
 /************************************************************************
  *     RegUnLoadKeyA
  */
@@ -845,20 +464,5 @@ RegUnLoadKeyA(
 }
 
 
-/************************************************************************
- *     RegUnLoadKeyW
- */
-LONG
-STDCALL
-RegUnLoadKeyW(
-       HKEY    hKey,
-       LPCWSTR lpSubKey
-       )
-{
-       SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
-       return ERROR_CALL_NOT_IMPLEMENTED;
-}
-
-
 /* EOF */
 
index f63c68b..6f6a269 100644 (file)
@@ -1,4 +1,4 @@
-; $Id: fmifs.def,v 1.2 1999/05/21 05:25:12 ea Exp $
+; $Id: fmifs.def,v 1.3 1999/07/17 23:10:18 ea Exp $
 ;
 ; fmifs.def
 ;
 ;
 LIBRARY fmifs
 EXPORTS
-       Chkdsk@36
-       Chkdsk                  = Chkdsk@36
-       DiskCopy                = DiskCopy@0
-       EnableVolumeCompression@8
-       EnableVolumeCompression = EnableVolumeCompression@8
-       Extend                  = Extend@0
-       Format                  = Format@0
-       FormatEx@28
-       FormatEx                = FormatEx@28
-       InitializeFmIfs         = InitializeFmIfs@0
-       QuerySupportedMedia     = QuerySupportedMedia@0
-       SetLabel                = SetLabel@0
+Chkdsk@36
+DiskCopy@0
+EnableVolumeCompression@8
+Extend@0
+Format@0
+FormatEx@28
+InitializeFmIfs@0
+QuerySupportedMedia@0
+SetLabel@0
diff --git a/reactos/lib/fmifs/fmifs.edf b/reactos/lib/fmifs/fmifs.edf
new file mode 100644 (file)
index 0000000..4a5a4fa
--- /dev/null
@@ -0,0 +1,23 @@
+; $Id: fmifs.edf,v 1.1 1999/07/17 23:10:19 ea Exp $
+;
+; fmifs.def
+;
+; Project     : ReactOS
+; Description : fmifs.dll exported symbols
+; Contributors:
+;      Created by Emanuele Aliberti
+;
+;
+;  NOTE: NOTE: Functions with trailing @0 are unknown.
+;
+LIBRARY fmifs
+EXPORTS
+Chkdsk=Chkdsk@36
+DiskCopy=DiskCopy@0
+EnableVolumeCompression=EnableVolumeCompression@8
+Extend=Extend@0
+Format=Format@0
+FormatEx=FormatEx@28
+InitializeFmIfs=InitializeFmIfs@0
+QuerySupportedMedia=QuerySupportedMedia@0
+SetLabel=SetLabel@0
index 16171b4..f5ca25f 100644 (file)
@@ -1,4 +1,4 @@
-# $Id: makefile,v 1.5 1999/07/16 23:37:04 rex Exp $
+# $Id: makefile,v 1.6 1999/07/17 23:10:19 ea Exp $
 #
 # Makefile for fmifs.dll
 #
@@ -34,9 +34,8 @@ $(TARGET).dll: $(DLLMAIN) $(OBJECTS) $(TARGET).def
        $(DLLTOOL) \
                --dllname $(TARGET).dll \
                --def $(TARGET).def \
-               --output-lib $(TARGET).a \
-               --add-stdcall-alias \
-               --kill-at
+               --kill-at \
+               --output-lib $(TARGET).a
        $(CC) \
                -specs=$(TARGET)_specs \
                -mdll \
@@ -48,9 +47,7 @@ $(TARGET).dll: $(DLLMAIN) $(OBJECTS) $(TARGET).def
                --dllname $(TARGET).dll \
                --base-file base.tmp \
                --output-exp temp.exp \
-               --def $(TARGET).def \
-               --add-stdcall-alias \
-               --kill-at
+               --def $(TARGET).edf
        - $(RM) base.tmp
        $(CC) \
                -specs=$(TARGET)_specs \
index 5e47975..f91be41 100644 (file)
-; $Id: gdi32.def,v 1.2 1999/05/24 20:04:44 ea Exp $
+; $Id: gdi32.def,v 1.3 1999/07/17 23:10:19 ea Exp $
 ;
 ; gdi32.def
 ;
 ; ReactOS Operating System
 ;
-; Aliased symbols from Anders Norlander's w32api-0.1.5 gdi32.def.
+; From Anders Norlander's w32api-0.1.5 gdi32.def.
 ;
 LIBRARY gdi32
 EXPORTS
-       AbortDoc                = AbortDoc@4
-       AbortPath               = AbortPath@4
-       AddFontResourceA        = AddFontResourceA@4
-       AddFontResourceW        = AddFontResourceW@4
-       AngleArc                = AngleArc@24
-       AnimatePalette          = AnimatePalette@16
-       Arc                     = Arc@36
-       ArcTo                   = ArcTo@36
-       BeginPath               = BeginPath@4
-       BitBlt                  = BitBlt@36
-       CancelDC                = CancelDC@4
-       CheckColorsInGamut      = CheckColorsInGamut@16
-       ChoosePixelFormat       = ChoosePixelFormat@8
-       Chord                   = Chord@36
-       CloseEnhMetaFile        = CloseEnhMetaFile@4
-       CloseFigure             = CloseFigure@4
-       CloseMetaFile           = CloseMetaFile@4
-       ColorMatchToTarget      = ColorMatchToTarget@12
-       CombineRgn              = CombineRgn@16
-       CombineTransform        = CombineTransform@12
-       CopyEnhMetaFileA        = CopyEnhMetaFileA@8
-       CopyEnhMetaFileW        = CopyEnhMetaFileW@8
-       CopyMetaFileA           = CopyMetaFileA@8
-       CopyMetaFileW           = CopyMetaFileW@8
-       CreateBitmap            = CreateBitmap@20
-       CreateBitmapIndirect    = CreateBitmapIndirect@4
-       CreateBrushIndirect     = CreateBrushIndirect@4
-       CreateColorSpaceA       = CreateColorSpaceA@4
-       CreateColorSpaceW       = CreateColorSpaceW@4
-       CreateCompatibleBitmap  = CreateCompatibleBitmap@12
-       CreateCompatibleDC      = CreateCompatibleDC@4
-       CreateDCA               = CreateDCA@16
-       CreateDCW               = CreateDCW@16
-       CreateDIBPatternBrush   = CreateDIBPatternBrush@8
-       CreateDIBPatternBrushPt = CreateDIBPatternBrushPt@8
-       CreateDIBSection        = CreateDIBSection@24
-       CreateDIBitmap          = CreateDIBitmap@24
-       CreateDiscardableBitmap = CreateDiscardableBitmap@12
-       CreateEllipticRgn       = CreateEllipticRgn@16
-       CreateEllipticRgnIndirect = CreateEllipticRgnIndirect@4
-       CreateEnhMetaFileA      = CreateEnhMetaFileA@16
-       CreateEnhMetaFileW      = CreateEnhMetaFileW@16
-       CreateFontA             = CreateFontA@56
-       CreateFontIndirectA     = CreateFontIndirectA@4
-       CreateFontIndirectW     = CreateFontIndirectW@4
-       CreateFontW             = CreateFontW@56
-       CreateHalftonePalette   = CreateHalftonePalette@4
-       CreateHatchBrush        = CreateHatchBrush@8
-       CreateICA               = CreateICA@16
-       CreateICW               = CreateICW@16
-       CreateMetaFileA         = CreateMetaFileA@4
-       CreateMetaFileW         = CreateMetaFileW@4
-       CreatePalette           = CreatePalette@4
-       CreatePatternBrush      = CreatePatternBrush@4
-       CreatePen               = CreatePen@12
-       CreatePenIndirect       = CreatePenIndirect@4
-       CreatePolyPolygonRgn    = CreatePolyPolygonRgn@16
-       CreatePolygonRgn        = CreatePolygonRgn@12
-       CreateRectRgn           = CreateRectRgn@16
-       CreateRectRgnIndirect   = CreateRectRgnIndirect@4
-       CreateRoundRectRgn      = CreateRoundRectRgn@24
-       CreateScalableFontResourceA = CreateScalableFontResourceA@16
-       CreateScalableFontResourceW = CreateScalableFontResourceW@16
-       CreateSolidBrush        = CreateSolidBrush@4
-       DPtoLP                  = DPtoLP@12
-       DeleteColorSpace        = DeleteColorSpace@4
-       DeleteDC                = DeleteDC@4
-       DeleteEnhMetaFile       = DeleteEnhMetaFile@4
-       DeleteMetaFile          = DeleteMetaFile@4
-       DeleteObject            = DeleteObject@4
-       DescribePixelFormat     = DescribePixelFormat@16
-       DeviceCapabilitiesExA   = DeviceCapabilitiesExA@20
-       DeviceCapabilitiesExW   = DeviceCapabilitiesExW@20
-       DrawEscape              = DrawEscape@16
-       Ellipse                 = Ellipse@20
-       EndDoc                  = EndDoc@4
-       EndPage                 = EndPage@4
-       EndPath                 = EndPath@4
-       EnumEnhMetaFile         = EnumEnhMetaFile@20
-       EnumFontFamiliesA       = EnumFontFamiliesA@16
-       EnumFontFamiliesExA     = EnumFontFamiliesExA@20
-       EnumFontFamiliesExW     = EnumFontFamiliesExW@20
-       EnumFontFamiliesW       = EnumFontFamiliesW@16
-       EnumFontsA              = EnumFontsA@16
-       EnumFontsW              = EnumFontsW@16
-       EnumICMProfilesA        = EnumICMProfilesA@12
-       EnumICMProfilesW        = EnumICMProfilesW@12
-       EnumMetaFile            = EnumMetaFile@16
-       EnumObjects             = EnumObjects@16
-       EqualRgn                = EqualRgn@8
-       Escape                  = Escape@20
-       ExcludeClipRect         = ExcludeClipRect@20
-       ExtCreatePen            = ExtCreatePen@20
-       ExtCreateRegion         = ExtCreateRegion@12
-       ExtEscape               = ExtEscape@24
-       ExtFloodFill            = ExtFloodFill@20
-       ExtSelectClipRgn        = ExtSelectClipRgn@12
-       ExtTextOutA             = ExtTextOutA@32
-       ExtTextOutW             = ExtTextOutW@32
-       FillPath                = FillPath@4
-       FillRgn                 = FillRgn@12
-       FixBrushOrgEx           = FixBrushOrgEx@16
-       FlattenPath             = FlattenPath@4
-       FloodFill               = FloodFill@16
-       FrameRgn                = FrameRgn@20
-       GdiComment              = GdiComment@12
-       GdiFlush                = GdiFlush@0
-       GdiGetBatchLimit        = GdiGetBatchLimit@0
-       GdiPlayDCScript         = GdiPlayDCScript@24
-       GdiPlayJournal          = GdiPlayJournal@20
-       GdiPlayScript           = GdiPlayScript@28
-       GdiSetBatchLimit        = GdiSetBatchLimit@4
-       GetArcDirection         = GetArcDirection@4
-       GetAspectRatioFilterEx  = GetAspectRatioFilterEx@8
-       GetBitmapBits           = GetBitmapBits@12
-       GetBitmapDimensionEx    = GetBitmapDimensionEx@8
-       GetBkColor              = GetBkColor@4
-       GetBkMode               = GetBkMode@4
-       GetBoundsRect           = GetBoundsRect@12
-       GetBrushOrgEx           = GetBrushOrgEx@8
-       GetCharABCWidthsA       = GetCharABCWidthsA@16
-       GetCharABCWidthsFloatA  = GetCharABCWidthsFloatA@16
-       GetCharABCWidthsFloatW  = GetCharABCWidthsFloatW@16
-       GetCharABCWidthsW       = GetCharABCWidthsW@16
-       GetCharWidth32A         = GetCharWidth32A@16
-       GetCharWidth32W         = GetCharWidth32W@16
-       GetCharWidthA           = GetCharWidthA@16
-       GetCharWidthFloatA      = GetCharWidthFloatA@16
-       GetCharWidthFloatW      = GetCharWidthFloatW@16
-       GetCharWidthW           = GetCharWidthW@16
-       GetCharacterPlacementA  = GetCharacterPlacementA@24
-       GetCharacterPlacementW  = GetCharacterPlacementW@24
-       GetClipBox              = GetClipBox@8
-       GetClipRgn              = GetClipRgn@8
-       GetColorAdjustment      = GetColorAdjustment@8
-       GetColorSpace           = GetColorSpace@4
-       GetCurrentObject        = GetCurrentObject@8
-       GetCurrentPositionEx    = GetCurrentPositionEx@8
-       GetDCOrgEx              = GetDCOrgEx@8
-       GetDIBColorTable        = GetDIBColorTable@16
-       GetDIBits               = GetDIBits@28
-       GetDeviceCaps           = GetDeviceCaps@8
-       GetDeviceGammaRamp      = GetDeviceGammaRamp@8
-       GetEnhMetaFileA         = GetEnhMetaFileA@4
-       GetEnhMetaFileBits      = GetEnhMetaFileBits@12
-       GetEnhMetaFileDescriptionA = GetEnhMetaFileDescriptionA@12
-       GetEnhMetaFileDescriptionW = GetEnhMetaFileDescriptionW@12
-       GetEnhMetaFileHeader    = GetEnhMetaFileHeader@12
-       GetEnhMetaFilePaletteEntries = GetEnhMetaFilePaletteEntries@12
-       GetEnhMetaFilePixelFormat = GetEnhMetaFilePixelFormat@12
-       GetEnhMetaFileW         = GetEnhMetaFileW@4
-       GetFontData             = GetFontData@20
-       GetFontLanguageInfo     = GetFontLanguageInfo@4
-       GetFontResourceInfo     = GetFontResourceInfo@16
-       GetFontResourceInfoW    = GetFontResourceInfoW@16
-       GetGlyphOutline         = GetGlyphOutlineA@28
-       GetGlyphOutlineA        = GetGlyphOutlineA@28
-       GetGlyphOutlineW        = GetGlyphOutlineW@28
-       GetGlyphOutlineWow      = GetGlyphOutlineWow@28
-       GetGraphicsMode         = GetGraphicsMode@4
-       GetICMProfileA          = GetICMProfileA@12
-       GetICMProfileW          = GetICMProfileW@12
-       GetKerningPairs         = GetKerningPairsA@12
-       GetKerningPairsA        = GetKerningPairsA@12
-       GetKerningPairsW        = GetKerningPairsW@12
-       GetLogColorSpaceA       = GetLogColorSpaceA@12
-       GetLogColorSpaceW       = GetLogColorSpaceW@12
-       GetMapMode              = GetMapMode@4
-       GetMetaFileA            = GetMetaFileA@4
-       GetMetaFileBitsEx       = GetMetaFileBitsEx@12
-       GetMetaFileW            = GetMetaFileW@4
-       GetMetaRgn              = GetMetaRgn@8
-       GetMiterLimit           = GetMiterLimit@8
-       GetNearestColor         = GetNearestColor@8
-       GetNearestPaletteIndex  = GetNearestPaletteIndex@8
-       GetObjectA              = GetObjectA@12
-       GetObjectType           = GetObjectType@4
-       GetObjectW              = GetObjectW@12
-       GetOutlineTextMetricsA  = GetOutlineTextMetricsA@12
-       GetOutlineTextMetricsW  = GetOutlineTextMetricsW@12
-       GetPaletteEntries       = GetPaletteEntries@16
-       GetPath                 = GetPath@16
-       GetPixel                = GetPixel@12
-       GetPixelFormat          = GetPixelFormat@4
-       GetPolyFillMode         = GetPolyFillMode@4
-       GetROP2                 = GetROP2@4
-       GetRandomRgn            = GetRandomRgn@12
-       GetRasterizerCaps       = GetRasterizerCaps@8
-       GetRegionData           = GetRegionData@12
-       GetRelAbs               = GetRelAbs@8
-       GetRgnBox               = GetRgnBox@8
-       GetStockObject          = GetStockObject@4
-       GetStretchBltMode       = GetStretchBltMode@4
-       GetSystemPaletteEntries = GetSystemPaletteEntries@16
-       GetSystemPaletteUse     = GetSystemPaletteUse@4
-       GetTextAlign            = GetTextAlign@4
-       GetTextCharacterExtra   = GetTextCharacterExtra@4
-       GetTextCharset          = GetTextCharset@4
-       GetTextCharsetInfo      = GetTextCharsetInfo@12
-       GetTextColor            = GetTextColor@4
-       GetTextExtentExPointA   = GetTextExtentExPointA@28
-       GetTextExtentExPointW   = GetTextExtentExPointW@28
-       GetTextExtentPoint32A   = GetTextExtentPoint32A@16
-       GetTextExtentPoint32W   = GetTextExtentPoint32W@16
-       GetTextExtentPointA     = GetTextExtentPointA@16
-       GetTextExtentPointW     = GetTextExtentPointW@16
-       GetTextFaceA            = GetTextFaceA@12
-       GetTextFaceW            = GetTextFaceW@12
-       GetTextMetricsA         = GetTextMetricsA@8
-       GetTextMetricsW         = GetTextMetricsW@8
-       GetViewportExtEx        = GetViewportExtEx@8
-       GetViewportOrgEx        = GetViewportOrgEx@8
-       GetWinMetaFileBits      = GetWinMetaFileBits@20
-       GetWindowExtEx          = GetWindowExtEx@8
-       GetWindowOrgEx          = GetWindowOrgEx@8
-       GetWorldTransform       = GetWorldTransform@8
-       IntersectClipRect       = IntersectClipRect@20
-       InvertRgn               = InvertRgn@8
-       LPtoDP                  = LPtoDP@12
-       LineDDA                 = LineDDA@24
-       LineTo                  = LineTo@12
-       MaskBlt                 = MaskBlt@48
-       ModifyWorldTransform    = ModifyWorldTransform@12
-       MoveToEx                = MoveToEx@16
-       OffsetClipRgn           = OffsetClipRgn@12
-       OffsetRgn               = OffsetRgn@12
-       OffsetViewportOrgEx     = OffsetViewportOrgEx@16
-       OffsetWindowOrgEx       = OffsetWindowOrgEx@16
-       PaintRgn                = PaintRgn@8
-       PatBlt                  = PatBlt@24
-       PathToRegion            = PathToRegion@4
-       Pie                     = Pie@36
-       PlayEnhMetaFile         = PlayEnhMetaFile@12
-       PlayEnhMetaFileRecord   = PlayEnhMetaFileRecord@16
-       PlayMetaFile            = PlayMetaFile@8
-       PlayMetaFileRecord      = PlayMetaFileRecord@16
-       PlgBlt                  = PlgBlt@40
-       PolyBezier              = PolyBezier@12
-       PolyBezierTo            = PolyBezierTo@12
-       PolyDraw                = PolyDraw@16
-       PolyPolygon             = PolyPolygon@16
-       PolyPolyline            = PolyPolyline@16
-       PolyTextOutA            = PolyTextOutA@12
-       PolyTextOutW            = PolyTextOutW@12
-       Polygon                 = Polygon@12
-       Polyline                = Polyline@12
-       PolylineTo              = PolylineTo@12
-       PtInRegion              = PtInRegion@12
-       PtVisible               = PtVisible@12
-       RealizePalette          = RealizePalette@4
-       RectInRegion            = RectInRegion@8
-       RectVisible             = RectVisible@8
-       Rectangle               = Rectangle@20
-       RemoveFontResourceA     = RemoveFontResourceA@4
-       RemoveFontResourceW     = RemoveFontResourceW@4
-       ResetDCA                = ResetDCA@8
-       ResetDCW                = ResetDCW@8
-       ResizePalette           = ResizePalette@8
-       RestoreDC               = RestoreDC@8
-       RoundRect               = RoundRect@28
-       SaveDC                  = SaveDC@4
-       ScaleViewportExtEx      = ScaleViewportExtEx@24
-       ScaleWindowExtEx        = ScaleWindowExtEx@24
-       SelectBrushLocal        = SelectBrushLocal@8
-       SelectClipPath          = SelectClipPath@8
-       SelectClipRgn           = SelectClipRgn@8
-       SelectFontLocal         = SelectFontLocal@8
-       SelectObject            = SelectObject@8
-       SelectPalette           = SelectPalette@12
-       SetAbortProc            = SetAbortProc@8
-       SetArcDirection         = SetArcDirection@8
-       SetBitmapBits           = SetBitmapBits@12
-       SetBitmapDimensionEx    = SetBitmapDimensionEx@16
-       SetBkColor              = SetBkColor@8
-       SetBkMode               = SetBkMode@8
-       SetBoundsRect           = SetBoundsRect@12
-       SetBrushOrgEx           = SetBrushOrgEx@16
-       SetColorAdjustment      = SetColorAdjustment@8
-       SetColorSpace           = SetColorSpace@8
-       SetDIBColorTable        = SetDIBColorTable@16
-       SetDIBits               = SetDIBits@28
-       SetDIBitsToDevice       = SetDIBitsToDevice@48
-       SetDeviceGammaRamp      = SetDeviceGammaRamp@8
-       SetEnhMetaFileBits      = SetEnhMetaFileBits@8
-       SetFontEnumeration      = SetFontEnumeration@4
-       SetGraphicsMode         = SetGraphicsMode@8
-       SetICMMode              = SetICMMode@8
-       SetICMProfileA          = SetICMProfileA@8
-       SetICMProfileW          = SetICMProfileW@8
-       SetMapMode              = SetMapMode@8
-       SetMapperFlags          = SetMapperFlags@8
-       SetMetaFileBitsEx       = SetMetaFileBitsEx@8
-       SetMetaRgn              = SetMetaRgn@4
-       SetMiterLimit           = SetMiterLimit@12
-       SetPaletteEntries       = SetPaletteEntries@16
-       SetPixel                = SetPixel@16
-       SetPixelFormat          = SetPixelFormat@12
-       SetPixelV               = SetPixelV@16
-       SetPolyFillMode         = SetPolyFillMode@8
-       SetROP2                 = SetROP2@8
-       SetRectRgn              = SetRectRgn@20
-       SetRelAbs               = SetRelAbs@8
-       SetStretchBltMode       = SetStretchBltMode@8
-       SetSystemPaletteUse     = SetSystemPaletteUse@8
-       SetTextAlign            = SetTextAlign@8
-       SetTextCharacterExtra   = SetTextCharacterExtra@8
-       SetTextColor            = SetTextColor@8
-       SetTextJustification    = SetTextJustification@12
-       SetViewportExtEx        = SetViewportExtEx@16
-       SetViewportOrgEx        = SetViewportOrgEx@16
-       SetWinMetaFileBits      = SetWinMetaFileBits@16
-       SetWindowExtEx          = SetWindowExtEx@16
-       SetWindowOrgEx          = SetWindowOrgEx@16
-       SetWorldTransform       = SetWorldTransform@8
-       StartDocA               = StartDocA@8
-       StartDocW               = StartDocW@8
-       StartPage               = StartPage@4
-       StretchBlt              = StretchBlt@44
-       StretchDIBits           = StretchDIBits@52
-       StrokeAndFillPath       = StrokeAndFillPath@4
-       StrokePath              = StrokePath@4
-       SwapBuffers             = SwapBuffers@4
-       TextOutA                = TextOutA@20
-       TextOutW                = TextOutW@20
-       TranslateCharsetInfo    = TranslateCharsetInfo@12
-       UnrealizeObject         = UnrealizeObject@4
-       UpdateColors            = UpdateColors@4
-       UpdateICMRegKey         = UpdateICMRegKeyA@16
-       UpdateICMRegKeyA        = UpdateICMRegKeyA@16
-       UpdateICMRegKeyW        = UpdateICMRegKeyW@16
-       WidenPath               = WidenPath@4
-       gdiPlaySpoolStream      = gdiPlaySpoolStream@24
+AbortDoc@4
+AbortPath@4
+AddFontResourceA@4
+AddFontResourceW@4
+AngleArc@24
+AnimatePalette@16
+Arc@36
+ArcTo@36
+BeginPath@4
+BitBlt@36
+CancelDC@4
+CheckColorsInGamut@16
+ChoosePixelFormat@8
+Chord@36
+CloseEnhMetaFile@4
+CloseFigure@4
+CloseMetaFile@4
+ColorMatchToTarget@12
+CombineRgn@16
+CombineTransform@12
+CopyEnhMetaFileA@8
+CopyEnhMetaFileW@8
+CopyMetaFileA@8
+CopyMetaFileW@8
+CreateBitmap@20
+CreateBitmapIndirect@4
+CreateBrushIndirect@4
+CreateColorSpaceA@4
+CreateColorSpaceW@4
+CreateCompatibleBitmap@12
+CreateCompatibleDC@4
+CreateDCA@16
+CreateDCW@16
+CreateDIBPatternBrush@8
+CreateDIBPatternBrushPt@8
+CreateDIBSection@24
+CreateDIBitmap@24
+CreateDiscardableBitmap@12
+CreateEllipticRgn@16
+CreateEllipticRgnIndirect@4
+CreateEnhMetaFileA@16
+CreateEnhMetaFileW@16
+CreateFontA@56
+CreateFontIndirectA@4
+CreateFontIndirectW@4
+CreateFontW@56
+CreateHalftonePalette@4
+CreateHatchBrush@8
+CreateICA@16
+CreateICW@16
+CreateMetaFileA@4
+CreateMetaFileW@4
+CreatePalette@4
+CreatePatternBrush@4
+CreatePen@12
+CreatePenIndirect@4
+CreatePolyPolygonRgn@16
+CreatePolygonRgn@12
+CreateRectRgn@16
+CreateRectRgnIndirect@4
+CreateRoundRectRgn@24
+CreateScalableFontResourceA@16
+CreateScalableFontResourceW@16
+CreateSolidBrush@4
+DPtoLP@12
+DeleteColorSpace@4
+DeleteDC@4
+DeleteEnhMetaFile@4
+DeleteMetaFile@4
+DeleteObject@4
+DescribePixelFormat@16
+DeviceCapabilitiesExA@20
+DeviceCapabilitiesExW@20
+DrawEscape@16
+Ellipse@20
+EndDoc@4
+EndPage@4
+EndPath@4
+EnumEnhMetaFile@20
+EnumFontFamiliesA@16
+EnumFontFamiliesExA@20
+EnumFontFamiliesExW@20
+EnumFontFamiliesW@16
+EnumFontsA@16
+EnumFontsW@16
+EnumICMProfilesA@12
+EnumICMProfilesW@12
+EnumMetaFile@16
+EnumObjects@16
+EqualRgn@8
+Escape@20
+ExcludeClipRect@20
+ExtCreatePen@20
+ExtCreateRegion@12
+ExtEscape@24
+ExtFloodFill@20
+ExtSelectClipRgn@12
+ExtTextOutA@32
+ExtTextOutW@32
+FillPath@4
+FillRgn@12
+FixBrushOrgEx@16
+FlattenPath@4
+FloodFill@16
+FrameRgn@20
+GdiComment@12
+GdiFlush@0
+GdiGetBatchLimit@0
+GdiPlayDCScript@24
+GdiPlayJournal@20
+GdiPlayScript@28
+GdiSetBatchLimit@4
+GetArcDirection@4
+GetAspectRatioFilterEx@8
+GetBitmapBits@12
+GetBitmapDimensionEx@8
+GetBkColor@4
+GetBkMode@4
+GetBoundsRect@12
+GetBrushOrgEx@8
+GetCharABCWidthsA@16
+GetCharABCWidthsFloatA@16
+GetCharABCWidthsFloatW@16
+GetCharABCWidthsW@16
+GetCharWidth32A@16
+GetCharWidth32W@16
+GetCharWidthA@16
+GetCharWidthFloatA@16
+GetCharWidthFloatW@16
+GetCharWidthW@16
+GetCharacterPlacementA@24
+GetCharacterPlacementW@24
+GetClipBox@8
+GetClipRgn@8
+GetColorAdjustment@8
+GetColorSpace@4
+GetCurrentObject@8
+GetCurrentPositionEx@8
+GetDCOrgEx@8
+GetDIBColorTable@16
+GetDIBits@28
+GetDeviceCaps@8
+GetDeviceGammaRamp@8
+GetEnhMetaFileA@4
+GetEnhMetaFileBits@12
+GetEnhMetaFileDescriptionA@12
+GetEnhMetaFileDescriptionW@12
+GetEnhMetaFileHeader@12
+GetEnhMetaFilePaletteEntries@12
+GetEnhMetaFilePixelFormat@12
+GetEnhMetaFileW@4
+GetFontData@20
+GetFontLanguageInfo@4
+GetFontResourceInfo@16
+GetFontResourceInfoW@16
+GetGlyphOutlineA@28
+GetGlyphOutlineA@28
+GetGlyphOutlineW@28
+GetGlyphOutlineWow@28
+GetGraphicsMode@4
+GetICMProfileA@12
+GetICMProfileW@12
+GetKerningPairsA@12
+GetKerningPairsA@12
+GetKerningPairsW@12
+GetLogColorSpaceA@12
+GetLogColorSpaceW@12
+GetMapMode@4
+GetMetaFileA@4
+GetMetaFileBitsEx@12
+GetMetaFileW@4
+GetMetaRgn@8
+GetMiterLimit@8
+GetNearestColor@8
+GetNearestPaletteIndex@8
+GetObjectA@12
+GetObjectType@4
+GetObjectW@12
+GetOutlineTextMetricsA@12
+GetOutlineTextMetricsW@12
+GetPaletteEntries@16
+GetPath@16
+GetPixel@12
+GetPixelFormat@4
+GetPolyFillMode@4
+GetROP2@4
+GetRandomRgn@12
+GetRasterizerCaps@8
+GetRegionData@12
+GetRelAbs@8
+GetRgnBox@8
+GetStockObject@4
+GetStretchBltMode@4
+GetSystemPaletteEntries@16
+GetSystemPaletteUse@4
+GetTextAlign@4
+GetTextCharacterExtra@4
+GetTextCharset@4
+GetTextCharsetInfo@12
+GetTextColor@4
+GetTextExtentExPointA@28
+GetTextExtentExPointW@28
+GetTextExtentPoint32A@16
+GetTextExtentPoint32W@16
+GetTextExtentPointA@16
+GetTextExtentPointW@16
+GetTextFaceA@12
+GetTextFaceW@12
+GetTextMetricsA@8
+GetTextMetricsW@8
+GetViewportExtEx@8
+GetViewportOrgEx@8
+GetWinMetaFileBits@20
+GetWindowExtEx@8
+GetWindowOrgEx@8
+GetWorldTransform@8
+IntersectClipRect@20
+InvertRgn@8
+LPtoDP@12
+LineDDA@24
+LineTo@12
+MaskBlt@48
+ModifyWorldTransform@12
+MoveToEx@16
+OffsetClipRgn@12
+OffsetRgn@12
+OffsetViewportOrgEx@16
+OffsetWindowOrgEx@16
+PaintRgn@8
+PatBlt@24
+PathToRegion@4
+Pie@36
+PlayEnhMetaFile@12
+PlayEnhMetaFileRecord@16
+PlayMetaFile@8
+PlayMetaFileRecord@16
+PlgBlt@40
+PolyBezier@12
+PolyBezierTo@12
+PolyDraw@16
+PolyPolygon@16
+PolyPolyline@16
+PolyTextOutA@12
+PolyTextOutW@12
+Polygon@12
+Polyline@12
+PolylineTo@12
+PtInRegion@12
+PtVisible@12
+RealizePalette@4
+RectInRegion@8
+RectVisible@8
+Rectangle@20
+RemoveFontResourceA@4
+RemoveFontResourceW@4
+ResetDCA@8
+ResetDCW@8
+ResizePalette@8
+RestoreDC@8
+RoundRect@28
+SaveDC@4
+ScaleViewportExtEx@24
+ScaleWindowExtEx@24
+SelectBrushLocal@8
+SelectClipPath@8
+SelectClipRgn@8
+SelectFontLocal@8
+SelectObject@8
+SelectPalette@12
+SetAbortProc@8
+SetArcDirection@8
+SetBitmapBits@12
+SetBitmapDimensionEx@16
+SetBkColor@8
+SetBkMode@8
+SetBoundsRect@12
+SetBrushOrgEx@16
+SetColorAdjustment@8
+SetColorSpace@8
+SetDIBColorTable@16
+SetDIBits@28
+SetDIBitsToDevice@48
+SetDeviceGammaRamp@8
+SetEnhMetaFileBits@8
+SetFontEnumeration@4
+SetGraphicsMode@8
+SetICMMode@8
+SetICMProfileA@8
+SetICMProfileW@8
+SetMapMode@8
+SetMapperFlags@8
+SetMetaFileBitsEx@8
+SetMetaRgn@4
+SetMiterLimit@12
+SetPaletteEntries@16
+SetPixel@16
+SetPixelFormat@12
+SetPixelV@16
+SetPolyFillMode@8
+SetROP2@8
+SetRectRgn@20
+SetRelAbs@8
+SetStretchBltMode@8
+SetSystemPaletteUse@8
+SetTextAlign@8
+SetTextCharacterExtra@8
+SetTextColor@8
+SetTextJustification@12
+SetViewportExtEx@16
+SetViewportOrgEx@16
+SetWinMetaFileBits@16
+SetWindowExtEx@16
+SetWindowOrgEx@16
+SetWorldTransform@8
+StartDocA@8
+StartDocW@8
+StartPage@4
+StretchBlt@44
+StretchDIBits@52
+StrokeAndFillPath@4
+StrokePath@4
+SwapBuffers@4
+TextOutA@20
+TextOutW@20
+TranslateCharsetInfo@12
+UnrealizeObject@4
+UpdateColors@4
+UpdateICMRegKeyA@16
+UpdateICMRegKeyA@16
+UpdateICMRegKeyW@16
+WidenPath@4
+gdiPlaySpoolStream@24
diff --git a/reactos/lib/gdi32/gdi32.edf b/reactos/lib/gdi32/gdi32.edf
new file mode 100644 (file)
index 0000000..b283224
--- /dev/null
@@ -0,0 +1,342 @@
+; $Id: gdi32.edf,v 1.1 1999/07/17 23:10:19 ea Exp $
+;
+; gdi32.def
+;
+; ReactOS Operating System
+;
+; From Anders Norlander's w32api-0.1.5 gdi32.def.
+;
+LIBRARY gdi32
+EXPORTS
+AbortDoc=AbortDoc@4
+AbortPath=AbortPath@4
+AddFontResourceA=AddFontResourceA@4
+AddFontResourceW=AddFontResourceW@4
+AngleArc=AngleArc@24
+AnimatePalette=AnimatePalette@16
+Arc=Arc@36
+ArcTo=ArcTo@36
+BeginPath=BeginPath@4
+BitBlt=BitBlt@36
+CancelDC=CancelDC@4
+CheckColorsInGamut=CheckColorsInGamut@16
+ChoosePixelFormat=ChoosePixelFormat@8
+Chord=Chord@36
+CloseEnhMetaFile=CloseEnhMetaFile@4
+CloseFigure=CloseFigure@4
+CloseMetaFile=CloseMetaFile@4
+ColorMatchToTarget=ColorMatchToTarget@12
+CombineRgn=CombineRgn@16
+CombineTransform=CombineTransform@12
+CopyEnhMetaFileA=CopyEnhMetaFileA@8
+CopyEnhMetaFileW=CopyEnhMetaFileW@8
+CopyMetaFileA=CopyMetaFileA@8
+CopyMetaFileW=CopyMetaFileW@8
+CreateBitmap=CreateBitmap@20
+CreateBitmapIndirect=CreateBitmapIndirect@4
+CreateBrushIndirect=CreateBrushIndirect@4
+CreateColorSpaceA=CreateColorSpaceA@4
+CreateColorSpaceW=CreateColorSpaceW@4
+CreateCompatibleBitmap=CreateCompatibleBitmap@12
+CreateCompatibleDC=CreateCompatibleDC@4
+CreateDCA=CreateDCA@16
+CreateDCW=CreateDCW@16
+CreateDIBPatternBrush=CreateDIBPatternBrush@8
+CreateDIBPatternBrushPt=CreateDIBPatternBrushPt@8
+CreateDIBSection=CreateDIBSection@24
+CreateDIBitmap=CreateDIBitmap@24
+CreateDiscardableBitmap=CreateDiscardableBitmap@12
+CreateEllipticRgn=CreateEllipticRgn@16
+CreateEllipticRgnIndirect=CreateEllipticRgnIndirect@4
+CreateEnhMetaFileA=CreateEnhMetaFileA@16
+CreateEnhMetaFileW=CreateEnhMetaFileW@16
+CreateFontA=CreateFontA@56
+CreateFontIndirectA=CreateFontIndirectA@4
+CreateFontIndirectW=CreateFontIndirectW@4
+CreateFontW=CreateFontW@56
+CreateHalftonePalette=CreateHalftonePalette@4
+CreateHatchBrush=CreateHatchBrush@8
+CreateICA=CreateICA@16
+CreateICW=CreateICW@16
+CreateMetaFileA=CreateMetaFileA@4
+CreateMetaFileW=CreateMetaFileW@4
+CreatePalette=CreatePalette@4
+CreatePatternBrush=CreatePatternBrush@4
+CreatePen=CreatePen@12
+CreatePenIndirect=CreatePenIndirect@4
+CreatePolyPolygonRgn=CreatePolyPolygonRgn@16
+CreatePolygonRgn=CreatePolygonRgn@12
+CreateRectRgn=CreateRectRgn@16
+CreateRectRgnIndirect=CreateRectRgnIndirect@4
+CreateRoundRectRgn=CreateRoundRectRgn@24
+CreateScalableFontResourceA=CreateScalableFontResourceA@16
+CreateScalableFontResourceW=CreateScalableFontResourceW@16
+CreateSolidBrush=CreateSolidBrush@4
+DPtoLP=DPtoLP@12
+DeleteColorSpace=DeleteColorSpace@4
+DeleteDC=DeleteDC@4
+DeleteEnhMetaFile=DeleteEnhMetaFile@4
+DeleteMetaFile=DeleteMetaFile@4
+DeleteObject=DeleteObject@4
+DescribePixelFormat=DescribePixelFormat@16
+DeviceCapabilitiesExA=DeviceCapabilitiesExA@20
+DeviceCapabilitiesExW=DeviceCapabilitiesExW@20
+DrawEscape=DrawEscape@16
+Ellipse=Ellipse@20
+EndDoc=EndDoc@4
+EndPage=EndPage@4
+EndPath=EndPath@4
+EnumEnhMetaFile=EnumEnhMetaFile@20
+EnumFontFamiliesA=EnumFontFamiliesA@16
+EnumFontFamiliesExA=EnumFontFamiliesExA@20
+EnumFontFamiliesExW=EnumFontFamiliesExW@20
+EnumFontFamiliesW=EnumFontFamiliesW@16
+EnumFontsA=EnumFontsA@16
+EnumFontsW=EnumFontsW@16
+EnumICMProfilesA=EnumICMProfilesA@12
+EnumICMProfilesW=EnumICMProfilesW@12
+EnumMetaFile=EnumMetaFile@16
+EnumObjects=EnumObjects@16
+EqualRgn=EqualRgn@8
+Escape=Escape@20
+ExcludeClipRect=ExcludeClipRect@20
+ExtCreatePen=ExtCreatePen@20
+ExtCreateRegion=ExtCreateRegion@12
+ExtEscape=ExtEscape@24
+ExtFloodFill=ExtFloodFill@20
+ExtSelectClipRgn=ExtSelectClipRgn@12
+ExtTextOutA=ExtTextOutA@32
+ExtTextOutW=ExtTextOutW@32
+FillPath=FillPath@4
+FillRgn=FillRgn@12
+FixBrushOrgEx=FixBrushOrgEx@16
+FlattenPath=FlattenPath@4
+FloodFill=FloodFill@16
+FrameRgn=FrameRgn@20
+GdiComment=GdiComment@12
+GdiFlush=GdiFlush@0
+GdiGetBatchLimit=GdiGetBatchLimit@0
+GdiPlayDCScript=GdiPlayDCScript@24
+GdiPlayJournal=GdiPlayJournal@20
+GdiPlayScript=GdiPlayScript@28
+GdiSetBatchLimit=GdiSetBatchLimit@4
+GetArcDirection=GetArcDirection@4
+GetAspectRatioFilterEx=GetAspectRatioFilterEx@8
+GetBitmapBits=GetBitmapBits@12
+GetBitmapDimensionEx=GetBitmapDimensionEx@8
+GetBkColor=GetBkColor@4
+GetBkMode=GetBkMode@4
+GetBoundsRect=GetBoundsRect@12
+GetBrushOrgEx=GetBrushOrgEx@8
+GetCharABCWidthsA=GetCharABCWidthsA@16
+GetCharABCWidthsFloatA=GetCharABCWidthsFloatA@16
+GetCharABCWidthsFloatW=GetCharABCWidthsFloatW@16
+GetCharABCWidthsW=GetCharABCWidthsW@16
+GetCharWidth32A=GetCharWidth32A@16
+GetCharWidth32W=GetCharWidth32W@16
+GetCharWidthA=GetCharWidthA@16
+GetCharWidthFloatA=GetCharWidthFloatA@16
+GetCharWidthFloatW=GetCharWidthFloatW@16
+GetCharWidthW=GetCharWidthW@16
+GetCharacterPlacementA=GetCharacterPlacementA@24
+GetCharacterPlacementW=GetCharacterPlacementW@24
+GetClipBox=GetClipBox@8
+GetClipRgn=GetClipRgn@8
+GetColorAdjustment=GetColorAdjustment@8
+GetColorSpace=GetColorSpace@4
+GetCurrentObject=GetCurrentObject@8
+GetCurrentPositionEx=GetCurrentPositionEx@8
+GetDCOrgEx=GetDCOrgEx@8
+GetDIBColorTable=GetDIBColorTable@16
+GetDIBits=GetDIBits@28
+GetDeviceCaps=GetDeviceCaps@8
+GetDeviceGammaRamp=GetDeviceGammaRamp@8
+GetEnhMetaFileA=GetEnhMetaFileA@4
+GetEnhMetaFileBits=GetEnhMetaFileBits@12
+GetEnhMetaFileDescriptionA=GetEnhMetaFileDescriptionA@12
+GetEnhMetaFileDescriptionW=GetEnhMetaFileDescriptionW@12
+GetEnhMetaFileHeader=GetEnhMetaFileHeader@12
+GetEnhMetaFilePaletteEntries=GetEnhMetaFilePaletteEntries@12
+GetEnhMetaFilePixelFormat=GetEnhMetaFilePixelFormat@12
+GetEnhMetaFileW=GetEnhMetaFileW@4
+GetFontData=GetFontData@20
+GetFontLanguageInfo=GetFontLanguageInfo@4
+GetFontResourceInfo=GetFontResourceInfo@16
+GetFontResourceInfoW=GetFontResourceInfoW@16
+GetGlyphOutlineA=GetGlyphOutlineA@28
+GetGlyphOutlineA=GetGlyphOutlineA@28
+GetGlyphOutlineW=GetGlyphOutlineW@28
+GetGlyphOutlineWow=GetGlyphOutlineWow@28
+GetGraphicsMode=GetGraphicsMode@4
+GetICMProfileA=GetICMProfileA@12
+GetICMProfileW=GetICMProfileW@12
+GetKerningPairsA=GetKerningPairsA@12
+GetKerningPairsA=GetKerningPairsA@12
+GetKerningPairsW=GetKerningPairsW@12
+GetLogColorSpaceA=GetLogColorSpaceA@12
+GetLogColorSpaceW=GetLogColorSpaceW@12
+GetMapMode=GetMapMode@4
+GetMetaFileA=GetMetaFileA@4
+GetMetaFileBitsEx=GetMetaFileBitsEx@12
+GetMetaFileW=GetMetaFileW@4
+GetMetaRgn=GetMetaRgn@8
+GetMiterLimit=GetMiterLimit@8
+GetNearestColor=GetNearestColor@8
+GetNearestPaletteIndex=GetNearestPaletteIndex@8
+GetObjectA=GetObjectA@12
+GetObjectType=GetObjectType@4
+GetObjectW=GetObjectW@12
+GetOutlineTextMetricsA=GetOutlineTextMetricsA@12
+GetOutlineTextMetricsW=GetOutlineTextMetricsW@12
+GetPaletteEntries=GetPaletteEntries@16
+GetPath=GetPath@16
+GetPixel=GetPixel@12
+GetPixelFormat=GetPixelFormat@4
+GetPolyFillMode=GetPolyFillMode@4
+GetROP2=GetROP2@4
+GetRandomRgn=GetRandomRgn@12
+GetRasterizerCaps=GetRasterizerCaps@8
+GetRegionData=GetRegionData@12
+GetRelAbs=GetRelAbs@8
+GetRgnBox=GetRgnBox@8
+GetStockObject=GetStockObject@4
+GetStretchBltMode=GetStretchBltMode@4
+GetSystemPaletteEntries=GetSystemPaletteEntries@16
+GetSystemPaletteUse=GetSystemPaletteUse@4
+GetTextAlign=GetTextAlign@4
+GetTextCharacterExtra=GetTextCharacterExtra@4
+GetTextCharset=GetTextCharset@4
+GetTextCharsetInfo=GetTextCharsetInfo@12
+GetTextColor=GetTextColor@4
+GetTextExtentExPointA=GetTextExtentExPointA@28
+GetTextExtentExPointW=GetTextExtentExPointW@28
+GetTextExtentPoint32A=GetTextExtentPoint32A@16
+GetTextExtentPoint32W=GetTextExtentPoint32W@16
+GetTextExtentPointA=GetTextExtentPointA@16
+GetTextExtentPointW=GetTextExtentPointW@16
+GetTextFaceA=GetTextFaceA@12
+GetTextFaceW=GetTextFaceW@12
+GetTextMetricsA=GetTextMetricsA@8
+GetTextMetricsW=GetTextMetricsW@8
+GetViewportExtEx=GetViewportExtEx@8
+GetViewportOrgEx=GetViewportOrgEx@8
+GetWinMetaFileBits=GetWinMetaFileBits@20
+GetWindowExtEx=GetWindowExtEx@8
+GetWindowOrgEx=GetWindowOrgEx@8
+GetWorldTransform=GetWorldTransform@8
+IntersectClipRect=IntersectClipRect@20
+InvertRgn=InvertRgn@8
+LPtoDP=LPtoDP@12
+LineDDA=LineDDA@24
+LineTo=LineTo@12
+MaskBlt=MaskBlt@48
+ModifyWorldTransform=ModifyWorldTransform@12
+MoveToEx=MoveToEx@16
+OffsetClipRgn=OffsetClipRgn@12
+OffsetRgn=OffsetRgn@12
+OffsetViewportOrgEx=OffsetViewportOrgEx@16
+OffsetWindowOrgEx=OffsetWindowOrgEx@16
+PaintRgn=PaintRgn@8
+PatBlt=PatBlt@24
+PathToRegion=PathToRegion@4
+Pie=Pie@36
+PlayEnhMetaFile=PlayEnhMetaFile@12
+PlayEnhMetaFileRecord=PlayEnhMetaFileRecord@16
+PlayMetaFile=PlayMetaFile@8
+PlayMetaFileRecord=PlayMetaFileRecord@16
+PlgBlt=PlgBlt@40
+PolyBezier=PolyBezier@12
+PolyBezierTo=PolyBezierTo@12
+PolyDraw=PolyDraw@16
+PolyPolygon=PolyPolygon@16
+PolyPolyline=PolyPolyline@16
+PolyTextOutA=PolyTextOutA@12
+PolyTextOutW=PolyTextOutW@12
+Polygon=Polygon@12
+Polyline=Polyline@12
+PolylineTo=PolylineTo@12
+PtInRegion=PtInRegion@12
+PtVisible=PtVisible@12
+RealizePalette=RealizePalette@4
+RectInRegion=RectInRegion@8
+RectVisible=RectVisible@8
+Rectangle=Rectangle@20
+RemoveFontResourceA=RemoveFontResourceA@4
+RemoveFontResourceW=RemoveFontResourceW@4
+ResetDCA=ResetDCA@8
+ResetDCW=ResetDCW@8
+ResizePalette=ResizePalette@8
+RestoreDC=RestoreDC@8
+RoundRect=RoundRect@28
+SaveDC=SaveDC@4
+ScaleViewportExtEx=ScaleViewportExtEx@24
+ScaleWindowExtEx=ScaleWindowExtEx@24
+SelectBrushLocal=SelectBrushLocal@8
+SelectClipPath=SelectClipPath@8
+SelectClipRgn=SelectClipRgn@8
+SelectFontLocal=SelectFontLocal@8
+SelectObject=SelectObject@8
+SelectPalette=SelectPalette@12
+SetAbortProc=SetAbortProc@8
+SetArcDirection=SetArcDirection@8
+SetBitmapBits=SetBitmapBits@12
+SetBitmapDimensionEx=SetBitmapDimensionEx@16
+SetBkColor=SetBkColor@8
+SetBkMode=SetBkMode@8
+SetBoundsRect=SetBoundsRect@12
+SetBrushOrgEx=SetBrushOrgEx@16
+SetColorAdjustment=SetColorAdjustment@8
+SetColorSpace=SetColorSpace@8
+SetDIBColorTable=SetDIBColorTable@16
+SetDIBits=SetDIBits@28
+SetDIBitsToDevice=SetDIBitsToDevice@48
+SetDeviceGammaRamp=SetDeviceGammaRamp@8
+SetEnhMetaFileBits=SetEnhMetaFileBits@8
+SetFontEnumeration=SetFontEnumeration@4
+SetGraphicsMode=SetGraphicsMode@8
+SetICMMode=SetICMMode@8
+SetICMProfileA=SetICMProfileA@8
+SetICMProfileW=SetICMProfileW@8
+SetMapMode=SetMapMode@8
+SetMapperFlags=SetMapperFlags@8
+SetMetaFileBitsEx=SetMetaFileBitsEx@8
+SetMetaRgn=SetMetaRgn@4
+SetMiterLimit=SetMiterLimit@12
+SetPaletteEntries=SetPaletteEntries@16
+SetPixel=SetPixel@16
+SetPixelFormat=SetPixelFormat@12
+SetPixelV=SetPixelV@16
+SetPolyFillMode=SetPolyFillMode@8
+SetROP2=SetROP2@8
+SetRectRgn=SetRectRgn@20
+SetRelAbs=SetRelAbs@8
+SetStretchBltMode=SetStretchBltMode@8
+SetSystemPaletteUse=SetSystemPaletteUse@8
+SetTextAlign=SetTextAlign@8
+SetTextCharacterExtra=SetTextCharacterExtra@8
+SetTextColor=SetTextColor@8
+SetTextJustification=SetTextJustification@12
+SetViewportExtEx=SetViewportExtEx@16
+SetViewportOrgEx=SetViewportOrgEx@16
+SetWinMetaFileBits=SetWinMetaFileBits@16
+SetWindowExtEx=SetWindowExtEx@16
+SetWindowOrgEx=SetWindowOrgEx@16
+SetWorldTransform=SetWorldTransform@8
+StartDocA=StartDocA@8
+StartDocW=StartDocW@8
+StartPage=StartPage@4
+StretchBlt=StretchBlt@44
+StretchDIBits=StretchDIBits@52
+StrokeAndFillPath=StrokeAndFillPath@4
+StrokePath=StrokePath@4
+SwapBuffers=SwapBuffers@4
+TextOutA=TextOutA@20
+TextOutW=TextOutW@20
+TranslateCharsetInfo=TranslateCharsetInfo@12
+UnrealizeObject=UnrealizeObject@4
+UpdateColors=UpdateColors@4
+UpdateICMRegKeyA=UpdateICMRegKeyA@16
+UpdateICMRegKeyA=UpdateICMRegKeyA@16
+UpdateICMRegKeyW=UpdateICMRegKeyW@16
+WidenPath=WidenPath@4
+gdiPlaySpoolStream=gdiPlaySpoolStream@24
index 632eebf..adc97e5 100644 (file)
@@ -1,4 +1,4 @@
-# $Id: makefile,v 1.6 1999/07/16 23:37:04 rex Exp $
+# $Id: makefile,v 1.7 1999/07/17 23:10:19 ea Exp $
 #
 # Makefile for ReactOS gdi32.dll
 #
@@ -34,6 +34,7 @@ $(TARGET).dll: $(DLLMAIN) $(OBJECTS) $(TARGET).def
        $(DLLTOOL) \
                --dllname $(TARGET).dll \
                --def $(TARGET).def \
+               --kill-at \
                --output-lib $(TARGET).a
        $(CC) $(TARGET).o \
                ../kernel32/kernel32.a \
@@ -46,7 +47,7 @@ $(TARGET).dll: $(DLLMAIN) $(OBJECTS) $(TARGET).def
                --dllname $(TARGET).dll \
                --base-file base.tmp \
                --output-exp temp.exp \
-               --def $(TARGET).def
+               --def $(TARGET).edf
        - $(RM) base.tmp
        $(CC) $(TARGET).o \
                ../kernel32/kernel32.a \
index 01aff51..1fd78bb 100644 (file)
 ;
 LIBRARY KERNEL32
 EXPORTS
-;AddAtomA@4
-;AddAtomW@4
-;AddConsoleAliasA@12
-;AddConsoleAliasW@12
+AddAtomA@4
+AddAtomW@4
+AddConsoleAliasA@12
+AddConsoleAliasW@12
 AllocConsole@0
-AllocConsole = AllocConsole@0
-;AreFileApisANSI@0
-;BackupRead@28
-;BackupSeek@24
-;BackupWrite@28
-;BaseAttachCompleteThunk@0
+AreFileApisANSI@0
+BackupRead@28
+BackupSeek@24
+BackupWrite@28
+BaseAttachCompleteThunk@0
 Beep@8
-Beep = Beep@8
-;BeginUpdateResourceA@8
-;BeginUpdateResourceW@8
-;BuildCommDCBA@8
-;BuildCommDCBAndTimeoutsA@12
-;BuildCommDCBAndTimeoutsW@12
-;BuildCommDCBW@8
-;CallNamedPipeA@28
-;CallNamedPipeW@28
-;ClearCommBreak@4
-;ClearCommError@12
-;CloseConsoleHandle@4
+BeginUpdateResourceA@8
+BeginUpdateResourceW@8
+BuildCommDCBA@8
+BuildCommDCBAndTimeoutsA@12
+BuildCommDCBAndTimeoutsW@12
+BuildCommDCBW@8
+CallNamedPipeA@28
+CallNamedPipeW@28
+ClearCommBreak@4
+ClearCommError@12
+CloseConsoleHandle@4
 CloseHandle@4
-CloseHandle = CloseHandle@4
-;CloseProfileUserMapping@0
-;CmdBatNotification@4
-;CommConfigDialogA@12
-;CommConfigDialogW@12
+CloseProfileUserMapping@0
+CmdBatNotification@4
+CommConfigDialogA@12
+CommConfigDialogW@12
 CompareFileTime@8
-CompareFileTime = CompareFileTime@8
-;CompareStringA@24
-;CompareStringA = CompareStringA@24
-;CompareStringW@24
-;CompareStringW = CompareStringW@24
-;ConnectNamedPipe@8
-;ConsoleMenuControl@12
-;ContinueDebugEvent@12
-;ConvertDefaultLocale@4
+CompareStringA@24
+CompareStringW@24
+ConnectNamedPipe@8
+ConsoleMenuControl@12
+ContinueDebugEvent@12
+ConvertDefaultLocale@4
 CopyFileA@12
-CopyFileA = CopyFileA@12
 CopyFileExA@24
-CopyFileExA = CopyFileExA@24
 CopyFileExW@24
-CopyFileExW = CopyFileExW@24
 CopyFileW@12
-CopyFileW = CopyFileW@12
-;CreateConsoleScreenBuffer@20
+CreateConsoleScreenBuffer@20
 CreateDirectoryA@8
-CreateDirectoryA = CreateDirectoryA@8
 CreateDirectoryExA@12
-CreateDirectoryExA = CreateDirectoryExA@12
 CreateDirectoryExW@12
-CreateDirectoryExW = CreateDirectoryExW@12
 CreateDirectoryW@8
-CreateDirectoryW = CreateDirectoryW@8
 CreateEventA@16
-CreateEventA = CreateEventA@16
 CreateEventW@16
-CreateEventW = CreateEventW@16
 CreateFileA@28
-CreateFileA = CreateFileA@28
-;CreateFileMappingA@24
-;CreateFileMappingW@24
+CreateFileMappingA@24
+CreateFileMappingW@24
 CreateFileW@28
-CreateFileW = CreateFileW@28
-;CreateIoCompletionPort@16
-;CreateMailslotA@16
-;CreateMailslotW@16
-;CreateMutexA@12
-;CreateMutexW@12
-;CreateNamedPipeA@32
-;CreateNamedPipeW@32
+CreateIoCompletionPort@16
+CreateMailslotA@16
+CreateMailslotW@16
+CreateMutexA@12
+CreateMutexW@12
+CreateNamedPipeA@32
+CreateNamedPipeW@32
 CreatePipe@16
-CreatePipe = CreatePipe@16
 CreateProcessA@40
-CreateProcessA = CreateProcessA@40
 CreateProcessW@40
-CreateProcessW = CreateProcessW@40
 CreateRemoteThread@28
-CreateRemoteThread = CreateRemoteThread@28
-;CreateSemaphoreA@16
-;CreateSemaphoreW@16
-;CreateTapePartition@16
+CreateSemaphoreA@16
+CreateSemaphoreW@16
+CreateTapePartition@16
 CreateThread@24
-CreateThread = CreateThread@24
-;CreateVirtualBuffer@12
-;DebugActiveProcess@4
-;DebugBreak@0
-;DefineDosDeviceA@12
-;DefineDosDeviceW@12
-;DeleteAtom@4
+CreateVirtualBuffer@12
+DebugActiveProcess@4
+DebugBreak@0
+DefineDosDeviceA@12
+DefineDosDeviceW@12
+DeleteAtom@4
 DeleteCriticalSection@4
-DeleteCriticalSection = DeleteCriticalSection@4
 DeleteFileA@4
-DeleteFileA = DeleteFileA@4
 DeleteFileW@4
-DeleteFileW = DeleteFileW@4
-;DeviceIoControl@32
-;DisableThreadLibraryCalls@4
-;DisconnectNamedPipe@4
+DeviceIoControl@32
+DisableThreadLibraryCalls@4
+DisconnectNamedPipe@4
 DosDateTimeToFileTime@12
-DosDateTimeToFileTime = DosDateTimeToFileTime@12
-;DuplicateConsoleHandle@16
+DuplicateConsoleHandle@16
 DuplicateHandle@28
-DuplicateHandle = DuplicateHandle@28
-;EndUpdateResourceA@8
-;EndUpdateResourceW@8
-;EnterCriticalSection@4
-;EnumCalendarInfoA@16
-;EnumCalendarInfoW@16
-;EnumDateFormatsA@12
-;EnumDateFormatsW@12
-;EnumResourceLanguagesA@20
-;EnumResourceLanguagesW@20
-;EnumResourceNamesA@16
-;EnumResourceNamesW@16
-;EnumResourceTypesA@12
-;EnumResourceTypesW@12
-;EnumSystemCodePagesA@8
-;EnumSystemCodePagesW@8
-;EnumSystemLocalesA@8
-;EnumSystemLocalesW@8
-;EnumTimeFormatsA@12
-;EnumTimeFormatsW@12
-;EraseTape@12
-;EscapeCommFunction@8
+EndUpdateResourceA@8
+EndUpdateResourceW@8
+EnterCriticalSection@4
+EnumCalendarInfoA@16
+EnumCalendarInfoW@16
+EnumDateFormatsA@12
+EnumDateFormatsW@12
+EnumResourceLanguagesA@20
+EnumResourceLanguagesW@20
+EnumResourceNamesA@16
+EnumResourceNamesW@16
+EnumResourceTypesA@12
+EnumResourceTypesW@12
+EnumSystemCodePagesA@8
+EnumSystemCodePagesW@8
+EnumSystemLocalesA@8
+EnumSystemLocalesW@8
+EnumTimeFormatsA@12
+EnumTimeFormatsW@12
+EraseTape@12
+EscapeCommFunction@8
 ExitProcess@4
-ExitProcess = ExitProcess@4
-;ExitThread@4
-;ExitVDM@8
-;ExpandEnvironmentStringsA@12
-;ExpandEnvironmentStringsW@12
-;ExpungeConsoleCommandHistoryA@4
-;ExpungeConsoleCommandHistoryW@4
-;ExtendVirtualBuffer@8
-;FatalAppExitA@8
-;FatalAppExitW@8
-;FatalExit@4
+ExitThread@4
+ExitVDM@8
+ExpandEnvironmentStringsA@12
+ExpandEnvironmentStringsW@12
+ExpungeConsoleCommandHistoryA@4
+ExpungeConsoleCommandHistoryW@4
+ExtendVirtualBuffer@8
+FatalAppExitA@8
+FatalAppExitW@8
+FatalExit@4
 FileTimeToDosDateTime@12
-FileTimeToDosDateTime = FileTimeToDosDateTime@12
 FileTimeToLocalFileTime@8
-FileTimeToLocalFileTime = FileTimeToLocalFileTime@8
 FileTimeToSystemTime@8
-FileTimeToSystemTime = FileTimeToSystemTime@8
 FillConsoleOutputAttribute@20
-FillConsoleOutputAttribute = FillConsoleOutputAttribute@20
 FillConsoleOutputCharacterA@20
-FillConsoleOutputCharacterA = FillConsoleOutputCharacterA@20
-;FillConsoleOutputCharacterW@20
-;FindAtomA@4
-;FindAtomW@4
+FillConsoleOutputCharacterW@20
+FindAtomA@4
+FindAtomW@4
 FindClose@4
-FindClose = FindClose@4
-;FindCloseChangeNotification@4
-;FindFirstChangeNotificationA@12
-;FindFirstChangeNotificationW@12
+FindCloseChangeNotification@4
+FindFirstChangeNotificationA@12
+FindFirstChangeNotificationW@12
 FindFirstFileA@8
-FindFirstFileA = FindFirstFileA@8
 FindFirstFileW@8
-FindFirstFileW = FindFirstFileW@8
-;FindNextChangeNotification@4
+FindNextChangeNotification@4
 FindNextFileA@8
-FindNextFileA = FindNextFileA@8
 FindNextFileW@8
-FindNextFileW = FindNextFileW@8
-;FindResourceA@12
-;FindResourceExA@16
-;FindResourceExW@16
-;FindResourceW@12
+FindResourceA@12
+FindResourceExA@16
+FindResourceExW@16
+FindResourceW@12
 FlushConsoleInputBuffer@4
-FlushConsoleInputBuffer = FlushConsoleInputBuffer@4
 FlushFileBuffers@4
-FlushFileBuffers = FlushFileBuffers@4
-;FlushInstructionCache@12
-;FlushViewOfFile@8
-;FoldStringA@20
-;FoldStringW@20
-;FormatMessageA@28
-;FormatMessageW@28
+FlushInstructionCache@12
+FlushViewOfFile@8
+FoldStringA@20
+FoldStringW@20
+FormatMessageA@28
+FormatMessageW@28
 FreeConsole@0
-FreeConsole = FreeConsole@0
 FreeEnvironmentStringsA@4
-FreeEnvironmentStringsA = FreeEnvironmentStringsA@4
-;FreeEnvironmentStringsW@4
+FreeEnvironmentStringsW@4
 FreeLibrary@4
-FreeLibrary = FreeLibrary@4
-;FreeLibraryAndExitThread@8
-;FreeResource@4
-;FreeVirtualBuffer@4
-;GenerateConsoleCtrlEvent@8
-;GetACP@0
-;GetAtomNameA@12
-;GetAtomNameW@12
-;GetBinaryType@8
-;GetBinaryTypeA@8
-;GetBinaryTypeW@8
-;GetCPInfo@8
-;GetCommConfig@12
-;GetCommMask@8
-;GetCommModemStatus@8
-;GetCommProperties@8
-;GetCommState@8
-;GetCommTimeouts@8
+FreeLibraryAndExitThread@8
+FreeResource@4
+FreeVirtualBuffer@4
+GenerateConsoleCtrlEvent@8
+GetACP@0
+GetAtomNameA@12
+GetAtomNameW@12
+GetBinaryType@8
+GetBinaryTypeA@8
+GetBinaryTypeW@8
+GetCPInfo@8
+GetCommConfig@12
+GetCommMask@8
+GetCommModemStatus@8
+GetCommProperties@8
+GetCommState@8
+GetCommTimeouts@8
 GetCommandLineA@0
-GetCommandLineA = GetCommandLineA@0
 GetCommandLineW@0
-GetCommandLineW = GetCommandLineW@0
 GetCompressedFileSizeA@8
-GetCompressedFileSizeA = GetCompressedFileSizeA@8
 GetCompressedFileSizeW@8
-GetCompressedFileSizeW = GetCompressedFileSizeW@8
-;GetComputerNameA@8
-;GetComputerNameW@8
-;GetConsoleAliasA@16
-;GetConsoleAliasExesA@8
-;GetConsoleAliasExesLengthA@0
-;GetConsoleAliasExesLengthW@0
-;GetConsoleAliasExesW@8
-;GetConsoleAliasW@16
-;GetConsoleAliasesA@12
-;GetConsoleAliasesLengthA@4
-;GetConsoleAliasesLengthW@4
-;GetConsoleAliasesW@12
+GetComputerNameA@8
+GetComputerNameW@8
+GetConsoleAliasA@16
+GetConsoleAliasExesA@8
+GetConsoleAliasExesLengthA@0
+GetConsoleAliasExesLengthW@0
+GetConsoleAliasExesW@8
+GetConsoleAliasW@16
+GetConsoleAliasesA@12
+GetConsoleAliasesLengthA@4
+GetConsoleAliasesLengthW@4
+GetConsoleAliasesW@12
 GetConsoleCP@0
-GetConsoleCP = GetConsoleCP@0
-;GetConsoleCommandHistoryA@12
-;GetConsoleCommandHistoryLengthA@4
-;GetConsoleCommandHistoryLengthW@4
-;GetConsoleCommandHistoryW@12
+GetConsoleCommandHistoryA@12
+GetConsoleCommandHistoryLengthA@4
+GetConsoleCommandHistoryLengthW@4
+GetConsoleCommandHistoryW@12
 GetConsoleCursorInfo@8
-GetConsoleCursorInfo = GetConsoleCursorInfo@8
-;GetConsoleDisplayMode@4
-;GetConsoleFontInfo@16
-;GetConsoleFontSize@8
-;GetConsoleHardwareState@12
-;GetConsoleInputWaitHandle@0
+GetConsoleDisplayMode@4
+GetConsoleFontInfo@16
+GetConsoleFontSize@8
+GetConsoleHardwareState@12
+GetConsoleInputWaitHandle@0
 GetConsoleMode@8
-GetConsoleMode = GetConsoleMode@8
 GetConsoleOutputCP@0
-GetConsoleOutputCP = GetConsoleOutputCP@0
 GetConsoleScreenBufferInfo@8
-GetConsoleScreenBufferInfo = GetConsoleScreenBufferInfo@8
-;GetConsoleTitleA@8
-;GetConsoleTitleW@8
-;GetCurrencyFormatA@24
-;GetCurrencyFormatW@24
-;GetCurrentConsoleFont@12
+GetConsoleTitleA@8
+GetConsoleTitleW@8
+GetCurrencyFormatA@24
+GetCurrencyFormatW@24
+GetCurrentConsoleFont@12
 GetCurrentDirectoryA@8
-GetCurrentDirectoryA = GetCurrentDirectoryA@8
 GetCurrentDirectoryW@8
-GetCurrentDirectoryW = GetCurrentDirectoryW@8
 GetCurrentProcess@0
-GetCurrentProcess = GetCurrentProcess@0
 GetCurrentProcessId@0
-GetCurrentProcessId = GetCurrentProcessId@0
 GetCurrentThread@0
-GetCurrentThread = GetCurrentThread@0
 GetCurrentThreadId@0
-GetCurrentThreadId = GetCurrentThreadId@0
-;GetDateFormatA@24
-;GetDateFormatW@24
-;GetDefaultCommConfigA@12
-;GetDefaultCommConfigW@12
+GetDateFormatA@24
+GetDateFormatW@24
+GetDefaultCommConfigA@12
+GetDefaultCommConfigW@12
 GetDiskFreeSpaceA@20
-GetDiskFreeSpaceA = GetDiskFreeSpaceA@20
 GetDiskFreeSpaceW@20
-GetDiskFreeSpaceW = GetDiskFreeSpaceW@20
 GetDiskFreeSpaceExA@16
-GetDiskFreeSpaceExA = GetDiskFreeSpaceExA@16
 GetDiskFreeSpaceExW@16
-GetDiskFreeSpaceExW = GetDiskFreeSpaceExW@16
-;GetDriveTypeA@4
-;GetDriveTypeW@4
-GetEnvironmentStrings@0 = GetEnvironmentStringsA@0
-GetEnvironmentStrings = GetEnvironmentStringsA@0
+GetDriveTypeA@4
+GetDriveTypeW@4
 GetEnvironmentStringsA@0
-GetEnvironmentStringsA = GetEnvironmentStringsA@0
 GetEnvironmentStringsW@0
-GetEnvironmentStringsW = GetEnvironmentStringsW@0
 GetEnvironmentVariableA@12
-GetEnvironmentVariableA = GetEnvironmentVariableA@12
 GetEnvironmentVariableW@12
-GetEnvironmentVariableW = GetEnvironmentVariableW@12
 GetExitCodeProcess@8
-GetExitCodeProcess = GetExitCodeProcess@8
-;GetExitCodeThread@8
+GetExitCodeThread@8
 GetFileAttributesA@4
-GetFileAttributesA = GetFileAttributesA@4
 GetFileAttributesW@4
-GetFileAttributesW = GetFileAttributesW@4
 GetFileInformationByHandle@8
-GetFileInformationByHandle = GetFileInformationByHandle@8
 GetFileSize@8
-GetFileSize = GetFileSize@8
 GetFileTime@16
-GetFileTime = GetFileTime@16
 GetFileType@4
-GetFileType = GetFileType@4
 GetFullPathNameA@16
-GetFullPathNameA = GetFullPathNameA@16
 GetFullPathNameW@16
-GetFullPathNameW = GetFullPathNameW@16
-;GetHandleInformation@8
-;GetLargestConsoleWindowSize@4
+GetHandleInformation@8
+GetLargestConsoleWindowSize@4
 GetLastError@0
-GetLastError = GetLastError@0
 GetLocalTime@4
-GetLocalTime = GetLocalTime@4
-;GetLocaleInfoA@16
-;GetLocaleInfoW@16
-;GetLogicalDriveStringsA@8
-;GetLogicalDriveStringsW@8
-;GetLogicalDrives@0
-;GetMailslotInfo@20
-;GetModuleFileNameA@12
-;GetModuleFileNameW@12
-;GetModuleHandleA@4
-;GetModuleHandleW@4
-;GetNamedPipeHandleStateA@28
-;GetNamedPipeHandleStateW@28
-;GetNamedPipeInfo@20
-;GetNextVDMCommand@4
-;GetNumberFormatA@24
-;GetNumberFormatW@24
-;GetNumberOfConsoleFonts@0
-;GetNumberOfConsoleInputEvents@8
-;GetNumberOfConsoleMouseButtons@4
-;GetOEMCP@0
-;GetOverlappedResult@16
-;GetPriorityClass@4
-;GetPrivateProfileIntA@16
-;GetPrivateProfileIntW@16
-;GetPrivateProfileSectionA@16
-;GetPrivateProfileSectionNamesA@12
-;GetPrivateProfileSectionNamesW@12
-;GetPrivateProfileSectionW@16
-;GetPrivateProfileStringA@24
-;GetPrivateProfileStringW@24
-;GetPrivateProfileStructA@20
-;GetPrivateProfileStructW@20
+GetLocaleInfoA@16
+GetLocaleInfoW@16
+GetLogicalDriveStringsA@8
+GetLogicalDriveStringsW@8
+GetLogicalDrives@0
+GetMailslotInfo@20
+GetModuleFileNameA@12
+GetModuleFileNameW@12
+GetModuleHandleA@4
+GetModuleHandleW@4
+GetNamedPipeHandleStateA@28
+GetNamedPipeHandleStateW@28
+GetNamedPipeInfo@20
+GetNextVDMCommand@4
+GetNumberFormatA@24
+GetNumberFormatW@24
+GetNumberOfConsoleFonts@0
+GetNumberOfConsoleInputEvents@8
+GetNumberOfConsoleMouseButtons@4
+GetOEMCP@0
+GetOverlappedResult@16
+GetPriorityClass@4
+GetPrivateProfileIntA@16
+GetPrivateProfileIntW@16
+GetPrivateProfileSectionA@16
+GetPrivateProfileSectionNamesA@12
+GetPrivateProfileSectionNamesW@12
+GetPrivateProfileSectionW@16
+GetPrivateProfileStringA@24
+GetPrivateProfileStringW@24
+GetPrivateProfileStructA@20
+GetPrivateProfileStructW@20
 GetProcAddress@8
-GetProcAddress = GetProcAddress@8
-;GetProcessAffinityMask@12
+GetProcessAffinityMask@12
 GetProcessHeap@0
-GetProcessHeap = GetProcessHeap@0
-;GetProcessHeaps@8
-;GetProcessShutdownParameters@8
+GetProcessHeaps@8
+GetProcessShutdownParameters@8
 GetProcessTimes@20
-GetProcessTimes = GetProcessTimes@20
-;GetProcessVersion@4
-;GetProcessWorkingSetSize@12
-;GetProfileIntA@12
-;GetProfileIntW@12
-;GetProfileSectionA@12
-;GetProfileSectionW@12
-;GetProfileStringA@20
-;GetProfileStringW@20
-;GetQueuedCompletionStatus@20
-;GetShortPathNameA@12
-;GetShortPathNameW@12
-;GetStartupInfoA@4
-;GetStartupInfoW@4
+GetProcessVersion@4
+GetProcessWorkingSetSize@12
+GetProfileIntA@12
+GetProfileIntW@12
+GetProfileSectionA@12
+GetProfileSectionW@12
+GetProfileStringA@20
+GetProfileStringW@20
+GetQueuedCompletionStatus@20
+GetShortPathNameA@12
+GetShortPathNameW@12
+GetStartupInfoA@4
+GetStartupInfoW@4
 GetStdHandle@4
-GetStdHandle = GetStdHandle@4
-;GetStringTypeA@20
-;GetStringTypeExA@20
-;GetStringTypeExW@20
-;GetStringTypeW@16
-;GetSystemDefaultLCID@0
-;GetSystemDefaultLangID@0
-;GetSystemDirectoryA@8
-;GetSystemDirectoryW@8
-;GetSystemInfo@4
-;GetSystemPowerStatus@4
+GetStringTypeA@20
+GetStringTypeExA@20
+GetStringTypeExW@20
+GetStringTypeW@16
+GetSystemDefaultLCID@0
+GetSystemDefaultLangID@0
+GetSystemDirectoryA@8
+GetSystemDirectoryW@8
+GetSystemInfo@4
+GetSystemPowerStatus@4
 GetSystemTime@4
-GetSystemTime = GetSystemTime@4
-;GetSystemTimeAdjustment@12
+GetSystemTimeAdjustment@12
 GetSystemTimeAsFileTime@4
-GetSystemTimeAsFileTime = GetSystemTimeAsFileTime@4
-;GetTapeParameters@16
-;GetTapePosition@20
-;GetTapeStatus@4
+GetTapeParameters@16
+GetTapePosition@20
+GetTapeStatus@4
 GetTempFileNameA@16
-GetTempFileNameA = GetTempFileNameA@16
 GetTempFileNameW@16
-GetTempFileNameW = GetTempFileNameW@16
 GetTempPathA@8
-GetTempPathA = GetTempPathA@8
 GetTempPathW@8
-GetTempPathW = GetTempPathW@8
-;GetThreadContext@8
-;GetThreadLocale@0
-;GetThreadPriority@4
-;GetThreadSelectorEntry@12
-;GetThreadTimes@20
-;GetTickCount@0
-;GetTimeFormatA@24
-;GetTimeFormatW@24
-;GetTimeZoneInformation@4
-;GetUserDefaultLCID@0
-;GetUserDefaultLangID@0
-;GetVDMCurrentDirectories@8
+GetThreadContext@8
+GetThreadLocale@0
+GetThreadPriority@4
+GetThreadSelectorEntry@12
+GetThreadTimes@20
+GetTickCount@0
+GetTimeFormatA@24
+GetTimeFormatW@24
+GetTimeZoneInformation@4
+GetUserDefaultLCID@0
+GetUserDefaultLangID@0
+GetVDMCurrentDirectories@8
 GetVersion@0
-GetVersion = GetVersion@0
 GetVersionExA@4
-GetVersionExA = GetVersionExA@4
 GetVersionExW@4
-GetVersionExW = GetVersionExW@4
 GetVolumeInformationA@32
-GetVolumeInformationA = GetVolumeInformationA@32
 GetVolumeInformationW@32
-GetVolumeInformationW = GetVolumeInformationW@32
-;GetWindowsDirectoryA@8
-;GetWindowsDirectoryW@8
-;GlobalAddAtomA@4
-;GlobalAddAtomW@4
-;GlobalAlloc@8
-;GlobalCompact@4
-;GlobalDeleteAtom@4
-;GlobalFindAtomA@4
-;GlobalFindAtomW@4
-;GlobalFix@4
-;GlobalFlags@4
-;GlobalFree@4
-;GlobalGetAtomNameA@12
-;GlobalGetAtomNameW@12
-;GlobalHandle@4
-;GlobalLock@4
-;GlobalMemoryStatus@4
-;GlobalReAlloc@12
-;GlobalSize@4
-;GlobalUnWire@4
-;GlobalUnfix@4
-;GlobalUnlock@4
-;GlobalWire@4
+GetWindowsDirectoryA@8
+GetWindowsDirectoryW@8
+GlobalAddAtomA@4
+GlobalAddAtomW@4
+GlobalAlloc@8
+GlobalCompact@4
+GlobalDeleteAtom@4
+GlobalFindAtomA@4
+GlobalFindAtomW@4
+GlobalFix@4
+GlobalFlags@4
+GlobalFree@4
+GlobalGetAtomNameA@12
+GlobalGetAtomNameW@12
+GlobalHandle@4
+GlobalLock@4
+GlobalMemoryStatus@4
+GlobalReAlloc@12
+GlobalSize@4
+GlobalUnWire@4
+GlobalUnfix@4
+GlobalUnlock@4
+GlobalWire@4
 HeapAlloc@12
-HeapAlloc = HeapAlloc@12
 HeapCompact@8
-HeapCompact = HeapCompact@8
 HeapCreate@12
-HeapCreate = HeapCreate@12
-;HeapCreateTagsW@16
+HeapCreateTagsW@16
 HeapDestroy@4
-HeapDestroy = HeapDestroy@4
-;HeapExtend@16
+HeapExtend@16
 HeapFree@12
-HeapFree = HeapFree@12
-;HeapLock@4
-;HeapQueryTagW@20
+HeapLock@4
+HeapQueryTagW@20
 HeapReAlloc@16
-HeapReAlloc = HeapReAlloc@16
 HeapSize@12
-HeapSize = HeapSize@12
-;HeapSummary@12
+HeapSummary@12
 HeapUnlock@4
-HeapUnlock = HeapUnlock@4
-;HeapUsage@20
+HeapUsage@20
 HeapValidate@12
-HeapValidate = HeapValidate@12
-;HeapWalk@8
-;InitAtomTable@4
-;InitializeCriticalSection@4
-;InterlockedDecrement@4
-;InterlockedExchange@8
-;InterlockedIncrement@4
-;InvalidateConsoleDIBits@8
-;IsBadCodePtr@4
-;IsBadHugeReadPtr@8
-;IsBadHugeWritePtr@8
-;IsBadReadPtr@8
-;IsBadStringPtrA@8
-;IsBadStringPtrW@8
-;IsBadWritePtr@8
-;IsDBCSLeadByte@4
-;IsDBCSLeadByteEx@8
-;IsDebuggerPresent@0
-;IsValidCodePage@4
-;IsValidLocale@8
-;LCMapStringA@24
-;LCMapStringW@24
-;LeaveCriticalSection@4
+HeapWalk@8
+InitAtomTable@4
+InitializeCriticalSection@4
+InterlockedDecrement@4
+InterlockedExchange@8
+InterlockedIncrement@4
+InvalidateConsoleDIBits@8
+IsBadCodePtr@4
+IsBadHugeReadPtr@8
+IsBadHugeWritePtr@8
+IsBadReadPtr@8
+IsBadStringPtrA@8
+IsBadStringPtrW@8
+IsBadWritePtr@8
+IsDBCSLeadByte@4
+IsDBCSLeadByteEx@8
+IsDebuggerPresent@0
+IsValidCodePage@4
+IsValidLocale@8
+LCMapStringA@24
+LCMapStringW@24
+LeaveCriticalSection@4
 LoadLibraryA@4
-LoadLibraryA = LoadLibraryA@4
-;LoadLibraryExA@12
-;LoadLibraryExW@12
-;LoadLibraryW@4
-;LoadModule@8
-;LoadResource@8
-;LocalAlloc@8
-;LocalCompact@4
-;LocalFileTimeToFileTime@8
-;LocalFlags@4
-;LocalFree@4
-;LocalHandle@4
-;LocalLock@4
-;LocalReAlloc@12
-;LocalShrink@8
-;LocalSize@4
-;LocalUnlock@4
+LoadLibraryExA@12
+LoadLibraryExW@12
+LoadLibraryW@4
+LoadModule@8
+LoadResource@8
+LocalAlloc@8
+LocalCompact@4
+LocalFileTimeToFileTime@8
+LocalFlags@4
+LocalFree@4
+LocalHandle@4
+LocalLock@4
+LocalReAlloc@12
+LocalShrink@8
+LocalSize@4
+LocalUnlock@4
 LockFile@20
-LockFile = LockFile@20
-;LockFileEx@24
-;LockResource@4
-;MapViewOfFile@20
-;MapViewOfFileEx@24
+LockFileEx@24
+LockResource@4
+MapViewOfFile@20
+MapViewOfFileEx@24
 MoveFileA@8
-MoveFileA = MoveFileA@8
-;MoveFileExA@12
-;MoveFileExW@12
+MoveFileExA@12
+MoveFileExW@12
 MoveFileW@8
-MoveFileW = MoveFileW@8
-;MulDiv@12
-;MultiByteToWideChar@24
-;OpenConsoleW@16
+MulDiv@12
+MultiByteToWideChar@24
+OpenConsoleW@16
 OpenEventA@12
-OpenEventA = OpenEventA@12
 OpenEventW@12
-OpenEventW = OpenEventW@12
 OpenFile@12
-OpenFile = OpenFile@12
-;OpenFileMappingA@12
-;OpenFileMappingW@12
-;OpenMutexA@12
-;OpenMutexW@12
+OpenFileMappingA@12
+OpenFileMappingW@12
+OpenMutexA@12
+OpenMutexW@12
 OpenProcess@12
-OpenProcess = OpenProcess@12
-;OpenProfileUserMapping@0
-;OpenSemaphoreA@12
-;OpenSemaphoreW@12
-;OutputDebugStringA@4
-;OutputDebugStringW@4
-;PeekConsoleInputA@16
-;PeekConsoleInputW@16
-;PeekNamedPipe@24
-;PostQueuedCompletionStatus@16
-;PrepareTape@12
+OpenProfileUserMapping@0
+OpenSemaphoreA@12
+OpenSemaphoreW@12
+OutputDebugStringA@4
+OutputDebugStringW@4
+PeekConsoleInputA@16
+PeekConsoleInputW@16
+PeekNamedPipe@24
+PostQueuedCompletionStatus@16
+PrepareTape@12
 PulseEvent@4
-PulseEvent = PulseEvent@4
-;PurgeComm@8
-;QueryDosDeviceA@12
-;QueryDosDeviceW@12
-;QueryPerformanceCounter@4
-;QueryPerformanceFrequency@4
-;QueryWin31IniFilesMappedToRegistry@16
-;RaiseException@16
+PurgeComm@8
+QueryDosDeviceA@12
+QueryDosDeviceW@12
+QueryPerformanceCounter@4
+QueryPerformanceFrequency@4
+QueryWin31IniFilesMappedToRegistry@16
+RaiseException@16
 ReadConsoleA@20
-ReadConsoleA = ReadConsoleA@20
 ReadConsoleInputA@16
-ReadConsoleInputA = ReadConsoleInputA@16
-;ReadConsoleInputW@16
-;ReadConsoleOutputA@20
+ReadConsoleInputW@16
+ReadConsoleOutputA@20
 ReadConsoleOutputAttribute@20
-ReadConsoleOutputAttribute = ReadConsoleOutputAttribute@20
 ReadConsoleOutputCharacterA@20
-ReadConsoleOutputCharacterA = ReadConsoleOutputCharacterA@20
-;ReadConsoleOutputCharacterW@20
-;ReadConsoleOutputW@20
-;ReadConsoleW@20
+ReadConsoleOutputCharacterW@20
+ReadConsoleOutputW@20
+ReadConsoleW@20
 ReadFile@20
-ReadFile = ReadFile@20
 ReadFileEx@20
-ReadFileEx = ReadFileEx@20
-;ReadProcessMemory@20
-;RegisterConsoleVDM@44
-;RegisterWaitForInputIdle@4
-;RegisterWowBaseHandlers@4
-;RegisterWowExec@4
-;ReleaseMutex@4
-;ReleaseSemaphore@12
+ReadProcessMemory@20
+RegisterConsoleVDM@44
+RegisterWaitForInputIdle@4
+RegisterWowBaseHandlers@4
+RegisterWowExec@4
+ReleaseMutex@4
+ReleaseSemaphore@12
 RemoveDirectoryA@4
-RemoveDirectoryA = RemoveDirectoryA@4
 RemoveDirectoryW@4
-RemoveDirectoryW = RemoveDirectoryW@4
 ResetEvent@4
-ResetEvent = ResetEvent@4
-;ResumeThread@4
-;RtlFillMemory@12
-;RtlMoveMemory@12
-;RtlUnwind@16
-;RtlZeroMemory@8
-;ScrollConsoleScreenBufferA@20
-;ScrollConsoleScreenBufferW@20
+ResumeThread@4
+RtlFillMemory@12
+RtlMoveMemory@12
+RtlUnwind@16
+RtlZeroMemory@8
+ScrollConsoleScreenBufferA@20
+ScrollConsoleScreenBufferW@20
 SearchPathA@24
-SearchPathA = SearchPathA@24
 SearchPathW@24
-SearchPathW = SearchPathW@24
-;SetCommBreak@4
-;SetCommConfig@12
-;SetCommMask@8
-;SetCommState@8
-;SetCommTimeouts@8
-;SetComputerNameA@4
-;SetComputerNameW@4
-;SetConsoleActiveScreenBuffer@4
+SetCommBreak@4
+SetCommConfig@12
+SetCommMask@8
+SetCommState@8
+SetCommTimeouts@8
+SetComputerNameA@4
+SetComputerNameW@4
+SetConsoleActiveScreenBuffer@4
 SetConsoleCP@4
-SetConsoleCP = SetConsoleCP@4
-;SetConsoleCommandHistoryMode@4
-;SetConsoleCtrlHandler@8
-;SetConsoleCursor@8
+SetConsoleCommandHistoryMode@4
+SetConsoleCtrlHandler@8
+SetConsoleCursor@8
 SetConsoleCursorInfo@8
-SetConsoleCursorInfo = SetConsoleCursorInfo@8
 SetConsoleCursorPosition@8
-SetConsoleCursorPosition = SetConsoleCursorPosition@8
-;SetConsoleDisplayMode@12
-;SetConsoleFont@8
-;SetConsoleHardwareState@12
-;SetConsoleKeyShortcuts@16
-;SetConsoleMaximumWindowSize@8
-;SetConsoleMenuClose@4
+SetConsoleDisplayMode@12
+SetConsoleFont@8
+SetConsoleHardwareState@12
+SetConsoleKeyShortcuts@16
+SetConsoleMaximumWindowSize@8
+SetConsoleMenuClose@4
 SetConsoleMode@8
-SetConsoleMode = SetConsoleMode@8
-;SetConsoleNumberOfCommandsA@8
-;SetConsoleNumberOfCommandsW@8
+SetConsoleNumberOfCommandsA@8
+SetConsoleNumberOfCommandsW@8
 SetConsoleOutputCP@4
-SetConsoleOutputCP = SetConsoleOutputCP@4
-;SetConsolePalette@12
-;SetConsoleScreenBufferSize@8
+SetConsolePalette@12
+SetConsoleScreenBufferSize@8
 SetConsoleTextAttribute@8
-SetConsoleTextAttribute = SetConsoleTextAttribute@8
 SetConsoleTitleA@4
-SetConsoleTitleA = SetConsoleTitleA@4
-;SetConsoleTitleW@4
-;SetConsoleWindowInfo@12
+SetConsoleTitleW@4
+SetConsoleWindowInfo@12
 SetCurrentDirectoryA@4
-SetCurrentDirectoryA = SetCurrentDirectoryA@4
 SetCurrentDirectoryW@4
-SetCurrentDirectoryW = SetCurrentDirectoryW@4
-;SetDefaultCommConfigA@12
-;SetDefaultCommConfigW@12
+SetDefaultCommConfigA@12
+SetDefaultCommConfigW@12
 SetEndOfFile@4
-SetEndOfFile = SetEndOfFile@4
 SetEnvironmentVariableA@8
-SetEnvironmentVariableA = SetEnvironmentVariableA@8
 SetEnvironmentVariableW@8
-SetEnvironmentVariableW = SetEnvironmentVariableW@8
 SetErrorMode@4
-SetErrorMode = SetErrorMode@4
 SetEvent@4
-SetEvent = SetEvent@4
 SetFileApisToANSI@0
-SetFileApisToANSI = SetFileApisToANSI@0
 SetFileApisToOEM@0
-SetFileApisToOEM = SetFileApisToOEM@0
 SetFileAttributesA@8
-SetFileAttributesA = SetFileAttributesA@8
 SetFileAttributesW@8
-SetFileAttributesW = SetFileAttributesW@8
 SetFilePointer@16
-SetFilePointer = SetFilePointer@16
 SetFileTime@16
-SetFileTime = SetFileTime@16
-;SetHandleCount@4
-;SetHandleInformation@12
-;SetLastConsoleEventActive@0
-SetLastError = SetLastError@4
+SetHandleCount@4
+SetHandleInformation@12
+SetLastConsoleEventActive@0
 SetLastError@4
 SetLocalTime@4
-SetLocalTime = SetLocalTime@4
-;SetLocaleInfoA@12
-;SetLocaleInfoW@12
-;SetMailslotInfo@8
-;SetNamedPipeHandleState@16
-;SetPriorityClass@8
-;SetProcessShutdownParameters@8
-;SetProcessWorkingSetSize@12
+SetLocaleInfoA@12
+SetLocaleInfoW@12
+SetMailslotInfo@8
+SetNamedPipeHandleState@16
+SetPriorityClass@8
+SetProcessShutdownParameters@8
+SetProcessWorkingSetSize@12
 SetStdHandle@8
-SetStdHandle = SetStdHandle@8
-;SetSystemPowerState@8
+SetSystemPowerState@8
 SetSystemTime@4
-SetSystemTime = SetSystemTime@4
-;SetSystemTimeAdjustment@8
-;SetTapeParameters@12
-;SetTapePosition@24
-;SetThreadAffinityMask@8
-;SetThreadContext@8
+SetSystemTimeAdjustment@8
+SetTapeParameters@12
+SetTapePosition@24
+SetThreadAffinityMask@8
+SetThreadContext@8
 ;_imp__SetThreadContext@8
-;SetThreadLocale@4
-;SetThreadPriority@8
-;SetTimeZoneInformation@4
+SetThreadLocale@4
+SetThreadPriority@8
+SetTimeZoneInformation@4
 SetUnhandledExceptionFilter@4
-SetUnhandledExceptionFilter = SetUnhandledExceptionFilter@4
-;SetVDMCurrentDirectories@8
+SetVDMCurrentDirectories@8
 SetVolumeLabelA@8
-SetVolumeLabelA = SetVolumeLabelA@8
-;SetVolumeLabelW@8
-;SetupComm@12
-;ShowConsoleCursor@8
-;SizeofResource@8
+SetVolumeLabelW@8
+SetupComm@12
+ShowConsoleCursor@8
+SizeofResource@8
 Sleep@4
-Sleep = Sleep@4
-;SleepEx@8
-;SuspendThread@4
+SleepEx@8
+SuspendThread@4
 SystemTimeToFileTime@8
-SystemTimeToFileTime = SystemTimeToFileTime@8
 SystemTimeToTzSpecificLocalTime@12
-SystemTimeToTzSpecificLocalTime = SystemTimeToTzSpecificLocalTime@12
 TerminateProcess@8
-TerminateProcess = TerminateProcess@8
-;TerminateThread@8
-;TlsAlloc@0
-;TlsFree@4
-;TlsGetValue@4
-;TlsSetValue@8
-;TransactNamedPipe@28
-;TransmitCommChar@8
-;TrimVirtualBuffer@4
-;UnhandledExceptionFilter@4
-;UnlockFile@20
-;UnlockFileEx@20
-;UnmapViewOfFile@4
-;UpdateResourceA@24
-;UpdateResourceW@24
-;VDMConsoleOperation@8
-;VDMOperationStarted@4
-;VerLanguageNameA@12
-;VerLanguageNameW@12
-;VerifyConsoleIoHandle@4
-;VirtualAlloc@16
-;VirtualBufferExceptionHandler@12
-;VirtualFree@12
-;VirtualLock@8
-;VirtualProtect@16
-;VirtualProtectEx@20
-;VirtualQuery@12
-;VirtualQueryEx@16
-;VirtualUnlock@8
-;WaitCommEvent@12
-;WaitForDebugEvent@8
-;WaitForMultipleObjects@16
-;WaitForMultipleObjectsEx@20
+TerminateThread@8
+TlsAlloc@0
+TlsFree@4
+TlsGetValue@4
+TlsSetValue@8
+TransactNamedPipe@28
+TransmitCommChar@8
+TrimVirtualBuffer@4
+UnhandledExceptionFilter@4
+UnlockFile@20
+UnlockFileEx@20
+UnmapViewOfFile@4
+UpdateResourceA@24
+UpdateResourceW@24
+VDMConsoleOperation@8
+VDMOperationStarted@4
+VerLanguageNameA@12
+VerLanguageNameW@12
+VerifyConsoleIoHandle@4
+VirtualAlloc@16
+VirtualBufferExceptionHandler@12
+VirtualFree@12
+VirtualLock@8
+VirtualProtect@16
+VirtualProtectEx@20
+VirtualQuery@12
+VirtualQueryEx@16
+VirtualUnlock@8
+WaitCommEvent@12
+WaitForDebugEvent@8
+WaitForMultipleObjects@16
+WaitForMultipleObjectsEx@20
 WaitForSingleObject@8
-WaitForSingleObject = WaitForSingleObject@8
-;WaitForSingleObjectEx@12
-;WaitNamedPipeA@8
-;WaitNamedPipeW@8
-;WideCharToMultiByte@32
+WaitForSingleObjectEx@12
+WaitNamedPipeA@8
+WaitNamedPipeW@8
+WideCharToMultiByte@32
 WinExec@8
-WinExec = WinExec@8
 WriteConsoleA@20
-WriteConsoleA = WriteConsoleA@20
-;WriteConsoleInputA@16
-;WriteConsoleInputVDMA@16
-;WriteConsoleInputVDMW@16
-;WriteConsoleInputW@16
-;WriteConsoleOutputA@20
+WriteConsoleInputA@16
+WriteConsoleInputVDMA@16
+WriteConsoleInputVDMW@16
+WriteConsoleInputW@16
+WriteConsoleOutputA@20
 WriteConsoleOutputAttribute@20
-WriteConsoleOutputAttribute = WriteConsoleOutputAttribute@20
 WriteConsoleOutputCharacterA@20
-WriteConsoleOutputCharacterA = WriteConsoleOutputCharacterA@20
-;WriteConsoleOutputCharacterW@20
-;WriteConsoleOutputW@20
-;WriteConsoleW@20
+WriteConsoleOutputCharacterW@20
+WriteConsoleOutputW@20
+WriteConsoleW@20
 WriteFile@20
-WriteFile = WriteFile@20
-;WriteFileEx@20
-;WritePrivateProfileSectionA@12
-;WritePrivateProfileSectionW@12
-;WritePrivateProfileStringA@16
-;WritePrivateProfileStringW@16
-;WritePrivateProfileStructA@20
-;WritePrivateProfileStructW@20
-;WriteProcessMemory@20
-;WriteProfileSectionA@8
-;WriteProfileSectionW@8
-;WriteProfileStringA@12
-;WriteProfileStringW@12
-;WriteTapemark@16
-;_hread@12
-;_hwrite@12
-;_lclose@4
-;_lcreat@8
+WriteFileEx@20
+WritePrivateProfileSectionA@12
+WritePrivateProfileSectionW@12
+WritePrivateProfileStringA@16
+WritePrivateProfileStringW@16
+WritePrivateProfileStructA@20
+WritePrivateProfileStructW@20
+WriteProcessMemory@20
+WriteProfileSectionA@8
+WriteProfileSectionW@8
+WriteProfileStringA@12
+WriteProfileStringW@12
+WriteTapemark@16
+_hread@12
+_hwrite@12
+_lclose@4
+_lcreat@8
 _llseek@12
-_llseek = _llseek@12
-;_lopen@8
-;_lread@12
-;_lwrite@12
+_lopen@8
+_lread@12
+_lwrite@12
 ;lstrcat@8
-;lstrcatA@8
-;lstrcatW@8
+lstrcatA@8
+lstrcatW@8
 ;lstrcmp@8
-;lstrcmpA@8
-;lstrcmpW@8
+lstrcmpA@8
+lstrcmpW@8
 ;lstrcmpi@8
-;lstrcmpiA@8
-;lstrcmpiW@8
+lstrcmpiA@8
+lstrcmpiW@8
 ;lstrcpy@8
-;lstrcpyA@8
-;lstrcpyW@8
+lstrcpyA@8
+lstrcpyW@8
 ;lstrcpyn@12
-;lstrcpynA@12
-;lstrcpynW@12
+lstrcpynA@12
+lstrcpynW@12
 ;lstrlen@4
 lstrlenA@4
-lstrlenA = lstrlenA@4
-;lstrlenW@4
+lstrlenW@4
diff --git a/reactos/lib/kernel32/kernel32.edf b/reactos/lib/kernel32/kernel32.edf
new file mode 100644 (file)
index 0000000..93d6bf8
--- /dev/null
@@ -0,0 +1,671 @@
+; $Id: kernel32.edf,v 1.1 1999/07/17 23:10:20 ea Exp $
+;
+; kernel32.edf
+;
+; ReactOS Operating System
+;
+; Aliased exports for KERNEL32.DLL generated by defedf reading
+; kernel32.def by Scott Christley.
+;
+;   Copyright (C) 1996 Free Software Foundation, Inc.
+;
+;   Author:  Scott Christley <scottc@net-community.com>
+;   Date: 1996
+;   
+;   This file is part of the Windows32 API Library.
+;
+;   This library is free software; you can redistribute it and/or
+;   modify it under the terms of the GNU Library General Public
+;   License as published by the Free Software Foundation; either
+;   version 2 of the License, or (at your option) any later version.
+;   
+;   This library is distributed in the hope that it will be useful,
+;   but WITHOUT ANY WARRANTY; without even the implied warranty of
+;   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+;   Library General Public License for more details.
+;
+;   If you are interested in a warranty or support for this source code,
+;   contact Scott Christley <scottc@net-community.com> for more information.
+;   
+;   You should have received a copy of the GNU Library General Public
+;   License along with this library; see the file COPYING.LIB.
+;   If not, write to the Free Software Foundation, 
+;   59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+;
+LIBRARY KERNEL32
+EXPORTS
+AddAtomA=AddAtomA@4
+AddAtomW=AddAtomW@4
+AddConsoleAliasA=AddConsoleAliasA@12
+AddConsoleAliasW=AddConsoleAliasW@12
+AllocConsole=AllocConsole@0
+AreFileApisANSI=AreFileApisANSI@0
+BackupRead=BackupRead@28
+BackupSeek=BackupSeek@24
+BackupWrite=BackupWrite@28
+BaseAttachCompleteThunk=BaseAttachCompleteThunk@0
+Beep=Beep@8
+BeginUpdateResourceA=BeginUpdateResourceA@8
+BeginUpdateResourceW=BeginUpdateResourceW@8
+BuildCommDCBA=BuildCommDCBA@8
+BuildCommDCBAndTimeoutsA=BuildCommDCBAndTimeoutsA@12
+BuildCommDCBAndTimeoutsW=BuildCommDCBAndTimeoutsW@12
+BuildCommDCBW=BuildCommDCBW@8
+CallNamedPipeA=CallNamedPipeA@28
+CallNamedPipeW=CallNamedPipeW@28
+ClearCommBreak=ClearCommBreak@4
+ClearCommError=ClearCommError@12
+CloseConsoleHandle=CloseConsoleHandle@4
+CloseHandle=CloseHandle@4
+CloseProfileUserMapping=CloseProfileUserMapping@0
+CmdBatNotification=CmdBatNotification@4
+CommConfigDialogA=CommConfigDialogA@12
+CommConfigDialogW=CommConfigDialogW@12
+CompareFileTime=CompareFileTime@8
+CompareStringA=CompareStringA@24
+CompareStringW=CompareStringW@24
+ConnectNamedPipe=ConnectNamedPipe@8
+ConsoleMenuControl=ConsoleMenuControl@12
+ContinueDebugEvent=ContinueDebugEvent@12
+ConvertDefaultLocale=ConvertDefaultLocale@4
+CopyFileA=CopyFileA@12
+CopyFileExA=CopyFileExA@24
+CopyFileExW=CopyFileExW@24
+CopyFileW=CopyFileW@12
+CreateConsoleScreenBuffer=CreateConsoleScreenBuffer@20
+CreateDirectoryA=CreateDirectoryA@8
+CreateDirectoryExA=CreateDirectoryExA@12
+CreateDirectoryExW=CreateDirectoryExW@12
+CreateDirectoryW=CreateDirectoryW@8
+CreateEventA=CreateEventA@16
+CreateEventW=CreateEventW@16
+CreateFileA=CreateFileA@28
+CreateFileMappingA=CreateFileMappingA@24
+CreateFileMappingW=CreateFileMappingW@24
+CreateFileW=CreateFileW@28
+CreateIoCompletionPort=CreateIoCompletionPort@16
+CreateMailslotA=CreateMailslotA@16
+CreateMailslotW=CreateMailslotW@16
+CreateMutexA=CreateMutexA@12
+CreateMutexW=CreateMutexW@12
+CreateNamedPipeA=CreateNamedPipeA@32
+CreateNamedPipeW=CreateNamedPipeW@32
+CreatePipe=CreatePipe@16
+CreateProcessA=CreateProcessA@40
+CreateProcessW=CreateProcessW@40
+CreateRemoteThread=CreateRemoteThread@28
+CreateSemaphoreA=CreateSemaphoreA@16
+CreateSemaphoreW=CreateSemaphoreW@16
+CreateTapePartition=CreateTapePartition@16
+CreateThread=CreateThread@24
+CreateVirtualBuffer=CreateVirtualBuffer@12
+DebugActiveProcess=DebugActiveProcess@4
+DebugBreak=DebugBreak@0
+DefineDosDeviceA=DefineDosDeviceA@12
+DefineDosDeviceW=DefineDosDeviceW@12
+DeleteAtom=DeleteAtom@4
+DeleteCriticalSection=DeleteCriticalSection@4
+DeleteFileA=DeleteFileA@4
+DeleteFileW=DeleteFileW@4
+DeviceIoControl=DeviceIoControl@32
+DisableThreadLibraryCalls=DisableThreadLibraryCalls@4
+DisconnectNamedPipe=DisconnectNamedPipe@4
+DosDateTimeToFileTime=DosDateTimeToFileTime@12
+DuplicateConsoleHandle=DuplicateConsoleHandle@16
+DuplicateHandle=DuplicateHandle@28
+EndUpdateResourceA=EndUpdateResourceA@8
+EndUpdateResourceW=EndUpdateResourceW@8
+EnterCriticalSection=EnterCriticalSection@4
+EnumCalendarInfoA=EnumCalendarInfoA@16
+EnumCalendarInfoW=EnumCalendarInfoW@16
+EnumDateFormatsA=EnumDateFormatsA@12
+EnumDateFormatsW=EnumDateFormatsW@12
+EnumResourceLanguagesA=EnumResourceLanguagesA@20
+EnumResourceLanguagesW=EnumResourceLanguagesW@20
+EnumResourceNamesA=EnumResourceNamesA@16
+EnumResourceNamesW=EnumResourceNamesW@16
+EnumResourceTypesA=EnumResourceTypesA@12
+EnumResourceTypesW=EnumResourceTypesW@12
+EnumSystemCodePagesA=EnumSystemCodePagesA@8
+EnumSystemCodePagesW=EnumSystemCodePagesW@8
+EnumSystemLocalesA=EnumSystemLocalesA@8
+EnumSystemLocalesW=EnumSystemLocalesW@8
+EnumTimeFormatsA=EnumTimeFormatsA@12
+EnumTimeFormatsW=EnumTimeFormatsW@12
+EraseTape=EraseTape@12
+EscapeCommFunction=EscapeCommFunction@8
+ExitProcess=ExitProcess@4
+ExitThread=ExitThread@4
+ExitVDM=ExitVDM@8
+ExpandEnvironmentStringsA=ExpandEnvironmentStringsA@12
+ExpandEnvironmentStringsW=ExpandEnvironmentStringsW@12
+ExpungeConsoleCommandHistoryA=ExpungeConsoleCommandHistoryA@4
+ExpungeConsoleCommandHistoryW=ExpungeConsoleCommandHistoryW@4
+ExtendVirtualBuffer=ExtendVirtualBuffer@8
+FatalAppExitA=FatalAppExitA@8
+FatalAppExitW=FatalAppExitW@8
+FatalExit=FatalExit@4
+FileTimeToDosDateTime=FileTimeToDosDateTime@12
+FileTimeToLocalFileTime=FileTimeToLocalFileTime@8
+FileTimeToSystemTime=FileTimeToSystemTime@8
+FillConsoleOutputAttribute=FillConsoleOutputAttribute@20
+FillConsoleOutputCharacterA=FillConsoleOutputCharacterA@20
+FillConsoleOutputCharacterW=FillConsoleOutputCharacterW@20
+FindAtomA=FindAtomA@4
+FindAtomW=FindAtomW@4
+FindClose=FindClose@4
+FindCloseChangeNotification=FindCloseChangeNotification@4
+FindFirstChangeNotificationA=FindFirstChangeNotificationA@12
+FindFirstChangeNotificationW=FindFirstChangeNotificationW@12
+FindFirstFileA=FindFirstFileA@8
+FindFirstFileW=FindFirstFileW@8
+FindNextChangeNotification=FindNextChangeNotification@4
+FindNextFileA=FindNextFileA@8
+FindNextFileW=FindNextFileW@8
+FindResourceA=FindResourceA@12
+FindResourceExA=FindResourceExA@16
+FindResourceExW=FindResourceExW@16
+FindResourceW=FindResourceW@12
+FlushConsoleInputBuffer=FlushConsoleInputBuffer@4
+FlushFileBuffers=FlushFileBuffers@4
+FlushInstructionCache=FlushInstructionCache@12
+FlushViewOfFile=FlushViewOfFile@8
+FoldStringA=FoldStringA@20
+FoldStringW=FoldStringW@20
+FormatMessageA=FormatMessageA@28
+FormatMessageW=FormatMessageW@28
+FreeConsole=FreeConsole@0
+FreeEnvironmentStringsA=FreeEnvironmentStringsA@4
+FreeEnvironmentStringsW=FreeEnvironmentStringsW@4
+FreeLibrary=FreeLibrary@4
+FreeLibraryAndExitThread=FreeLibraryAndExitThread@8
+FreeResource=FreeResource@4
+FreeVirtualBuffer=FreeVirtualBuffer@4
+GenerateConsoleCtrlEvent=GenerateConsoleCtrlEvent@8
+GetACP=GetACP@0
+GetAtomNameA=GetAtomNameA@12
+GetAtomNameW=GetAtomNameW@12
+GetBinaryType=GetBinaryTypeA@8
+GetBinaryTypeA=GetBinaryTypeA@8
+GetBinaryTypeW=GetBinaryTypeW@8
+GetCPInfo=GetCPInfo@8
+GetCommConfig=GetCommConfig@12
+GetCommMask=GetCommMask@8
+GetCommModemStatus=GetCommModemStatus@8
+GetCommProperties=GetCommProperties@8
+GetCommState=GetCommState@8
+GetCommTimeouts=GetCommTimeouts@8
+GetCommandLineA=GetCommandLineA@0
+GetCommandLineW=GetCommandLineW@0
+GetCompressedFileSizeA=GetCompressedFileSizeA@8
+GetCompressedFileSizeW=GetCompressedFileSizeW@8
+GetComputerNameA=GetComputerNameA@8
+GetComputerNameW=GetComputerNameW@8
+GetConsoleAliasA=GetConsoleAliasA@16
+GetConsoleAliasExesA=GetConsoleAliasExesA@8
+GetConsoleAliasExesLengthA=GetConsoleAliasExesLengthA@0
+GetConsoleAliasExesLengthW=GetConsoleAliasExesLengthW@0
+GetConsoleAliasExesW=GetConsoleAliasExesW@8
+GetConsoleAliasW=GetConsoleAliasW@16
+GetConsoleAliasesA=GetConsoleAliasesA@12
+GetConsoleAliasesLengthA=GetConsoleAliasesLengthA@4
+GetConsoleAliasesLengthW=GetConsoleAliasesLengthW@4
+GetConsoleAliasesW=GetConsoleAliasesW@12
+GetConsoleCP=GetConsoleCP@0
+GetConsoleCommandHistoryA=GetConsoleCommandHistoryA@12
+GetConsoleCommandHistoryLengthA=GetConsoleCommandHistoryLengthA@4
+GetConsoleCommandHistoryLengthW=GetConsoleCommandHistoryLengthW@4
+GetConsoleCommandHistoryW=GetConsoleCommandHistoryW@12
+GetConsoleCursorInfo=GetConsoleCursorInfo@8
+GetConsoleDisplayMode=GetConsoleDisplayMode@4
+GetConsoleFontInfo=GetConsoleFontInfo@16
+GetConsoleFontSize=GetConsoleFontSize@8
+GetConsoleHardwareState=GetConsoleHardwareState@12
+GetConsoleInputWaitHandle=GetConsoleInputWaitHandle@0
+GetConsoleMode=GetConsoleMode@8
+GetConsoleOutputCP=GetConsoleOutputCP@0
+GetConsoleScreenBufferInfo=GetConsoleScreenBufferInfo@8
+GetConsoleTitleA=GetConsoleTitleA@8
+GetConsoleTitleW=GetConsoleTitleW@8
+GetCurrencyFormatA=GetCurrencyFormatA@24
+GetCurrencyFormatW=GetCurrencyFormatW@24
+GetCurrentConsoleFont=GetCurrentConsoleFont@12
+GetCurrentDirectoryA=GetCurrentDirectoryA@8
+GetCurrentDirectoryW=GetCurrentDirectoryW@8
+GetCurrentProcess=GetCurrentProcess@0
+GetCurrentProcessId=GetCurrentProcessId@0
+GetCurrentThread=GetCurrentThread@0
+GetCurrentThreadId=GetCurrentThreadId@0
+GetDateFormatA=GetDateFormatA@24
+GetDateFormatW=GetDateFormatW@24
+GetDefaultCommConfigA=GetDefaultCommConfigA@12
+GetDefaultCommConfigW=GetDefaultCommConfigW@12
+GetDiskFreeSpaceA=GetDiskFreeSpaceA@20
+GetDiskFreeSpaceW=GetDiskFreeSpaceW@20
+GetDiskFreeSpaceExA=GetDiskFreeSpaceExA@16
+GetDiskFreeSpaceExW=GetDiskFreeSpaceExW@16
+GetDriveTypeA=GetDriveTypeA@4
+GetDriveTypeW=GetDriveTypeW@4
+GetEnvironmentStringsA=GetEnvironmentStringsA@0
+GetEnvironmentStringsW=GetEnvironmentStringsW@0
+GetEnvironmentVariableA=GetEnvironmentVariableA@12
+GetEnvironmentVariableW=GetEnvironmentVariableW@12
+GetExitCodeProcess=GetExitCodeProcess@8
+GetExitCodeThread=GetExitCodeThread@8
+GetFileAttributesA=GetFileAttributesA@4
+GetFileAttributesW=GetFileAttributesW@4
+GetFileInformationByHandle=GetFileInformationByHandle@8
+GetFileSize=GetFileSize@8
+GetFileTime=GetFileTime@16
+GetFileType=GetFileType@4
+GetFullPathNameA=GetFullPathNameA@16
+GetFullPathNameW=GetFullPathNameW@16
+GetHandleInformation=GetHandleInformation@8
+GetLargestConsoleWindowSize=GetLargestConsoleWindowSize@4
+GetLastError=GetLastError@0
+GetLocalTime=GetLocalTime@4
+GetLocaleInfoA=GetLocaleInfoA@16
+GetLocaleInfoW=GetLocaleInfoW@16
+GetLogicalDriveStringsA=GetLogicalDriveStringsA@8
+GetLogicalDriveStringsW=GetLogicalDriveStringsW@8
+GetLogicalDrives=GetLogicalDrives@0
+GetMailslotInfo=GetMailslotInfo@20
+GetModuleFileNameA=GetModuleFileNameA@12
+GetModuleFileNameW=GetModuleFileNameW@12
+GetModuleHandleA=GetModuleHandleA@4
+GetModuleHandleW=GetModuleHandleW@4
+GetNamedPipeHandleStateA=GetNamedPipeHandleStateA@28
+GetNamedPipeHandleStateW=GetNamedPipeHandleStateW@28
+GetNamedPipeInfo=GetNamedPipeInfo@20
+GetNextVDMCommand=GetNextVDMCommand@4
+GetNumberFormatA=GetNumberFormatA@24
+GetNumberFormatW=GetNumberFormatW@24
+GetNumberOfConsoleFonts=GetNumberOfConsoleFonts@0
+GetNumberOfConsoleInputEvents=GetNumberOfConsoleInputEvents@8
+GetNumberOfConsoleMouseButtons=GetNumberOfConsoleMouseButtons@4
+GetOEMCP=GetOEMCP@0
+GetOverlappedResult=GetOverlappedResult@16
+GetPriorityClass=GetPriorityClass@4
+GetPrivateProfileIntA=GetPrivateProfileIntA@16
+GetPrivateProfileIntW=GetPrivateProfileIntW@16
+GetPrivateProfileSectionA=GetPrivateProfileSectionA@16
+GetPrivateProfileSectionNamesA=GetPrivateProfileSectionNamesA@12
+GetPrivateProfileSectionNamesW=GetPrivateProfileSectionNamesW@12
+GetPrivateProfileSectionW=GetPrivateProfileSectionW@16
+GetPrivateProfileStringA=GetPrivateProfileStringA@24
+GetPrivateProfileStringW=GetPrivateProfileStringW@24
+GetPrivateProfileStructA=GetPrivateProfileStructA@20
+GetPrivateProfileStructW=GetPrivateProfileStructW@20
+GetProcAddress=GetProcAddress@8
+GetProcessAffinityMask=GetProcessAffinityMask@12
+GetProcessHeap=GetProcessHeap@0
+GetProcessHeaps=GetProcessHeaps@8
+GetProcessShutdownParameters=GetProcessShutdownParameters@8
+GetProcessTimes=GetProcessTimes@20
+GetProcessVersion=GetProcessVersion@4
+GetProcessWorkingSetSize=GetProcessWorkingSetSize@12
+GetProfileIntA=GetProfileIntA@12
+GetProfileIntW=GetProfileIntW@12
+GetProfileSectionA=GetProfileSectionA@12
+GetProfileSectionW=GetProfileSectionW@12
+GetProfileStringA=GetProfileStringA@20
+GetProfileStringW=GetProfileStringW@20
+GetQueuedCompletionStatus=GetQueuedCompletionStatus@20
+GetShortPathNameA=GetShortPathNameA@12
+GetShortPathNameW=GetShortPathNameW@12
+GetStartupInfoA=GetStartupInfoA@4
+GetStartupInfoW=GetStartupInfoW@4
+GetStdHandle=GetStdHandle@4
+GetStringTypeA=GetStringTypeA@20
+GetStringTypeExA=GetStringTypeExA@20
+GetStringTypeExW=GetStringTypeExW@20
+GetStringTypeW=GetStringTypeW@16
+GetSystemDefaultLCID=GetSystemDefaultLCID@0
+GetSystemDefaultLangID=GetSystemDefaultLangID@0
+GetSystemDirectoryA=GetSystemDirectoryA@8
+GetSystemDirectoryW=GetSystemDirectoryW@8
+GetSystemInfo=GetSystemInfo@4
+GetSystemPowerStatus=GetSystemPowerStatus@4
+GetSystemTime=GetSystemTime@4
+GetSystemTimeAdjustment=GetSystemTimeAdjustment@12
+GetSystemTimeAsFileTime=GetSystemTimeAsFileTime@4
+GetTapeParameters=GetTapeParameters@16
+GetTapePosition=GetTapePosition@20
+GetTapeStatus=GetTapeStatus@4
+GetTempFileNameA=GetTempFileNameA@16
+GetTempFileNameW=GetTempFileNameW@16
+GetTempPathA=GetTempPathA@8
+GetTempPathW=GetTempPathW@8
+GetThreadContext=GetThreadContext@8
+GetThreadLocale=GetThreadLocale@0
+GetThreadPriority=GetThreadPriority@4
+GetThreadSelectorEntry=GetThreadSelectorEntry@12
+GetThreadTimes=GetThreadTimes@20
+GetTickCount=GetTickCount@0
+GetTimeFormatA=GetTimeFormatA@24
+GetTimeFormatW=GetTimeFormatW@24
+GetTimeZoneInformation=GetTimeZoneInformation@4
+GetUserDefaultLCID=GetUserDefaultLCID@0
+GetUserDefaultLangID=GetUserDefaultLangID@0
+GetVDMCurrentDirectories=GetVDMCurrentDirectories@8
+GetVersion=GetVersion@0
+GetVersionExA=GetVersionExA@4
+GetVersionExW=GetVersionExW@4
+GetVolumeInformationA=GetVolumeInformationA@32
+GetVolumeInformationW=GetVolumeInformationW@32
+GetWindowsDirectoryA=GetWindowsDirectoryA@8
+GetWindowsDirectoryW=GetWindowsDirectoryW@8
+GlobalAddAtomA=GlobalAddAtomA@4
+GlobalAddAtomW=GlobalAddAtomW@4
+GlobalAlloc=GlobalAlloc@8
+GlobalCompact=GlobalCompact@4
+GlobalDeleteAtom=GlobalDeleteAtom@4
+GlobalFindAtomA=GlobalFindAtomA@4
+GlobalFindAtomW=GlobalFindAtomW@4
+GlobalFix=GlobalFix@4
+GlobalFlags=GlobalFlags@4
+GlobalFree=GlobalFree@4
+GlobalGetAtomNameA=GlobalGetAtomNameA@12
+GlobalGetAtomNameW=GlobalGetAtomNameW@12
+GlobalHandle=GlobalHandle@4
+GlobalLock=GlobalLock@4
+GlobalMemoryStatus=GlobalMemoryStatus@4
+GlobalReAlloc=GlobalReAlloc@12
+GlobalSize=GlobalSize@4
+GlobalUnWire=GlobalUnWire@4
+GlobalUnfix=GlobalUnfix@4
+GlobalUnlock=GlobalUnlock@4
+GlobalWire=GlobalWire@4
+HeapAlloc=HeapAlloc@12
+HeapCompact=HeapCompact@8
+HeapCreate=HeapCreate@12
+HeapCreateTagsW=HeapCreateTagsW@16
+HeapDestroy=HeapDestroy@4
+HeapExtend=HeapExtend@16
+HeapFree=HeapFree@12
+HeapLock=HeapLock@4
+HeapQueryTagW=HeapQueryTagW@20
+HeapReAlloc=HeapReAlloc@16
+HeapSize=HeapSize@12
+HeapSummary=HeapSummary@12
+HeapUnlock=HeapUnlock@4
+HeapUsage=HeapUsage@20
+HeapValidate=HeapValidate@12
+HeapWalk=HeapWalk@8
+InitAtomTable=InitAtomTable@4
+InitializeCriticalSection=InitializeCriticalSection@4
+InterlockedDecrement=InterlockedDecrement@4
+InterlockedExchange=InterlockedExchange@8
+InterlockedIncrement=InterlockedIncrement@4
+InvalidateConsoleDIBits=InvalidateConsoleDIBits@8
+IsBadCodePtr=IsBadCodePtr@4
+IsBadHugeReadPtr=IsBadHugeReadPtr@8
+IsBadHugeWritePtr=IsBadHugeWritePtr@8
+IsBadReadPtr=IsBadReadPtr@8
+IsBadStringPtrA=IsBadStringPtrA@8
+IsBadStringPtrW=IsBadStringPtrW@8
+IsBadWritePtr=IsBadWritePtr@8
+IsDBCSLeadByte=IsDBCSLeadByte@4
+IsDBCSLeadByteEx=IsDBCSLeadByteEx@8
+IsDebuggerPresent=IsDebuggerPresent@0
+IsValidCodePage=IsValidCodePage@4
+IsValidLocale=IsValidLocale@8
+LCMapStringA=LCMapStringA@24
+LCMapStringW=LCMapStringW@24
+LeaveCriticalSection=LeaveCriticalSection@4
+LoadLibraryA=LoadLibraryA@4
+LoadLibraryExA=LoadLibraryExA@12
+LoadLibraryExW=LoadLibraryExW@12
+LoadLibraryW=LoadLibraryW@4
+LoadModule=LoadModule@8
+LoadResource=LoadResource@8
+LocalAlloc=LocalAlloc@8
+LocalCompact=LocalCompact@4
+LocalFileTimeToFileTime=LocalFileTimeToFileTime@8
+LocalFlags=LocalFlags@4
+LocalFree=LocalFree@4
+LocalHandle=LocalHandle@4
+LocalLock=LocalLock@4
+LocalReAlloc=LocalReAlloc@12
+LocalShrink=LocalShrink@8
+LocalSize=LocalSize@4
+LocalUnlock=LocalUnlock@4
+LockFile=LockFile@20
+LockFileEx=LockFileEx@24
+LockResource=LockResource@4
+MapViewOfFile=MapViewOfFile@20
+MapViewOfFileEx=MapViewOfFileEx@24
+MoveFileA=MoveFileA@8
+MoveFileExA=MoveFileExA@12
+MoveFileExW=MoveFileExW@12
+MoveFileW=MoveFileW@8
+MulDiv=MulDiv@12
+MultiByteToWideChar=MultiByteToWideChar@24
+OpenConsoleW=OpenConsoleW@16
+OpenEventA=OpenEventA@12
+OpenEventW=OpenEventW@12
+OpenFile=OpenFile@12
+OpenFileMappingA=OpenFileMappingA@12
+OpenFileMappingW=OpenFileMappingW@12
+OpenMutexA=OpenMutexA@12
+OpenMutexW=OpenMutexW@12
+OpenProcess=OpenProcess@12
+OpenProfileUserMapping=OpenProfileUserMapping@0
+OpenSemaphoreA=OpenSemaphoreA@12
+OpenSemaphoreW=OpenSemaphoreW@12
+OutputDebugStringA=OutputDebugStringA@4
+OutputDebugStringW=OutputDebugStringW@4
+PeekConsoleInputA=PeekConsoleInputA@16
+PeekConsoleInputW=PeekConsoleInputW@16
+PeekNamedPipe=PeekNamedPipe@24
+PostQueuedCompletionStatus=PostQueuedCompletionStatus@16
+PrepareTape=PrepareTape@12
+PulseEvent=PulseEvent@4
+PurgeComm=PurgeComm@8
+QueryDosDeviceA=QueryDosDeviceA@12
+QueryDosDeviceW=QueryDosDeviceW@12
+QueryPerformanceCounter=QueryPerformanceCounter@4
+QueryPerformanceFrequency=QueryPerformanceFrequency@4
+QueryWin31IniFilesMappedToRegistry=QueryWin31IniFilesMappedToRegistry@16
+RaiseException=RaiseException@16
+ReadConsoleA=ReadConsoleA@20
+ReadConsoleInputA=ReadConsoleInputA@16
+ReadConsoleInputW=ReadConsoleInputW@16
+ReadConsoleOutputA=ReadConsoleOutputA@20
+ReadConsoleOutputAttribute=ReadConsoleOutputAttribute@20
+ReadConsoleOutputCharacterA=ReadConsoleOutputCharacterA@20
+ReadConsoleOutputCharacterW=ReadConsoleOutputCharacterW@20
+ReadConsoleOutputW=ReadConsoleOutputW@20
+ReadConsoleW=ReadConsoleW@20
+ReadFile=ReadFile@20
+ReadFileEx=ReadFileEx@20
+ReadProcessMemory=ReadProcessMemory@20
+RegisterConsoleVDM=RegisterConsoleVDM@44
+RegisterWaitForInputIdle=RegisterWaitForInputIdle@4
+RegisterWowBaseHandlers=RegisterWowBaseHandlers@4
+RegisterWowExec=RegisterWowExec@4
+ReleaseMutex=ReleaseMutex@4
+ReleaseSemaphore=ReleaseSemaphore@12
+RemoveDirectoryA=RemoveDirectoryA@4
+RemoveDirectoryW=RemoveDirectoryW@4
+ResetEvent=ResetEvent@4
+ResumeThread=ResumeThread@4
+RtlFillMemory=RtlFillMemory@12
+RtlMoveMemory=RtlMoveMemory@12
+RtlUnwind=RtlUnwind@16
+RtlZeroMemory=RtlZeroMemory@8
+ScrollConsoleScreenBufferA=ScrollConsoleScreenBufferA@20
+ScrollConsoleScreenBufferW=ScrollConsoleScreenBufferW@20
+SearchPathA=SearchPathA@24
+SearchPathW=SearchPathW@24
+SetCommBreak=SetCommBreak@4
+SetCommConfig=SetCommConfig@12
+SetCommMask=SetCommMask@8
+SetCommState=SetCommState@8
+SetCommTimeouts=SetCommTimeouts@8
+SetComputerNameA=SetComputerNameA@4
+SetComputerNameW=SetComputerNameW@4
+SetConsoleActiveScreenBuffer=SetConsoleActiveScreenBuffer@4
+SetConsoleCP=SetConsoleCP@4
+SetConsoleCommandHistoryMode=SetConsoleCommandHistoryMode@4
+SetConsoleCtrlHandler=SetConsoleCtrlHandler@8
+SetConsoleCursor=SetConsoleCursor@8
+SetConsoleCursorInfo=SetConsoleCursorInfo@8
+SetConsoleCursorPosition=SetConsoleCursorPosition@8
+SetConsoleDisplayMode=SetConsoleDisplayMode@12
+SetConsoleFont=SetConsoleFont@8
+SetConsoleHardwareState=SetConsoleHardwareState@12
+SetConsoleKeyShortcuts=SetConsoleKeyShortcuts@16
+SetConsoleMaximumWindowSize=SetConsoleMaximumWindowSize@8
+SetConsoleMenuClose=SetConsoleMenuClose@4
+SetConsoleMode=SetConsoleMode@8
+SetConsoleNumberOfCommandsA=SetConsoleNumberOfCommandsA@8
+SetConsoleNumberOfCommandsW=SetConsoleNumberOfCommandsW@8
+SetConsoleOutputCP=SetConsoleOutputCP@4
+SetConsolePalette=SetConsolePalette@12
+SetConsoleScreenBufferSize=SetConsoleScreenBufferSize@8
+SetConsoleTextAttribute=SetConsoleTextAttribute@8
+SetConsoleTitleA=SetConsoleTitleA@4
+SetConsoleTitleW=SetConsoleTitleW@4
+SetConsoleWindowInfo=SetConsoleWindowInfo@12
+SetCurrentDirectoryA=SetCurrentDirectoryA@4
+SetCurrentDirectoryW=SetCurrentDirectoryW@4
+SetDefaultCommConfigA=SetDefaultCommConfigA@12
+SetDefaultCommConfigW=SetDefaultCommConfigW@12
+SetEndOfFile=SetEndOfFile@4
+SetEnvironmentVariableA=SetEnvironmentVariableA@8
+SetEnvironmentVariableW=SetEnvironmentVariableW@8
+SetErrorMode=SetErrorMode@4
+SetEvent=SetEvent@4
+SetFileApisToANSI=SetFileApisToANSI@0
+SetFileApisToOEM=SetFileApisToOEM@0
+SetFileAttributesA=SetFileAttributesA@8
+SetFileAttributesW=SetFileAttributesW@8
+SetFilePointer=SetFilePointer@16
+SetFileTime=SetFileTime@16
+SetHandleCount=SetHandleCount@4
+SetHandleInformation=SetHandleInformation@12
+SetLastConsoleEventActive=SetLastConsoleEventActive@0
+SetLastError=SetLastError@4
+SetLocalTime=SetLocalTime@4
+SetLocaleInfoA=SetLocaleInfoA@12
+SetLocaleInfoW=SetLocaleInfoW@12
+SetMailslotInfo=SetMailslotInfo@8
+SetNamedPipeHandleState=SetNamedPipeHandleState@16
+SetPriorityClass=SetPriorityClass@8
+SetProcessShutdownParameters=SetProcessShutdownParameters@8
+SetProcessWorkingSetSize=SetProcessWorkingSetSize@12
+SetStdHandle=SetStdHandle@8
+SetSystemPowerState=SetSystemPowerState@8
+SetSystemTime=SetSystemTime@4
+SetSystemTimeAdjustment=SetSystemTimeAdjustment@8
+SetTapeParameters=SetTapeParameters@12
+SetTapePosition=SetTapePosition@24
+SetThreadAffinityMask=SetThreadAffinityMask@8
+SetThreadContext=SetThreadContext@8
+;_imp__SetThreadContext@8
+SetThreadLocale=SetThreadLocale@4
+SetThreadPriority=SetThreadPriority@8
+SetTimeZoneInformation=SetTimeZoneInformation@4
+SetUnhandledExceptionFilter=SetUnhandledExceptionFilter@4
+SetVDMCurrentDirectories=SetVDMCurrentDirectories@8
+SetVolumeLabelA=SetVolumeLabelA@8
+SetVolumeLabelW=SetVolumeLabelW@8
+SetupComm=SetupComm@12
+ShowConsoleCursor=ShowConsoleCursor@8
+SizeofResource=SizeofResource@8
+Sleep=Sleep@4
+SleepEx=SleepEx@8
+SuspendThread=SuspendThread@4
+SystemTimeToFileTime=SystemTimeToFileTime@8
+SystemTimeToTzSpecificLocalTime=SystemTimeToTzSpecificLocalTime@12
+TerminateProcess=TerminateProcess@8
+TerminateThread=TerminateThread@8
+TlsAlloc=TlsAlloc@0
+TlsFree=TlsFree@4
+TlsGetValue=TlsGetValue@4
+TlsSetValue=TlsSetValue@8
+TransactNamedPipe=TransactNamedPipe@28
+TransmitCommChar=TransmitCommChar@8
+TrimVirtualBuffer=TrimVirtualBuffer@4
+UnhandledExceptionFilter=UnhandledExceptionFilter@4
+UnlockFile=UnlockFile@20
+UnlockFileEx=UnlockFileEx@20
+UnmapViewOfFile=UnmapViewOfFile@4
+UpdateResourceA=UpdateResourceA@24
+UpdateResourceW=UpdateResourceW@24
+VDMConsoleOperation=VDMConsoleOperation@8
+VDMOperationStarted=VDMOperationStarted@4
+VerLanguageNameA=VerLanguageNameA@12
+VerLanguageNameW=VerLanguageNameW@12
+VerifyConsoleIoHandle=VerifyConsoleIoHandle@4
+VirtualAlloc=VirtualAlloc@16
+VirtualBufferExceptionHandler=VirtualBufferExceptionHandler@12
+VirtualFree=VirtualFree@12
+VirtualLock=VirtualLock@8
+VirtualProtect=VirtualProtect@16
+VirtualProtectEx=VirtualProtectEx@20
+VirtualQuery=VirtualQuery@12
+VirtualQueryEx=VirtualQueryEx@16
+VirtualUnlock=VirtualUnlock@8
+WaitCommEvent=WaitCommEvent@12
+WaitForDebugEvent=WaitForDebugEvent@8
+WaitForMultipleObjects=WaitForMultipleObjects@16
+WaitForMultipleObjectsEx=WaitForMultipleObjectsEx@20
+WaitForSingleObject=WaitForSingleObject@8
+WaitForSingleObjectEx=WaitForSingleObjectEx@12
+WaitNamedPipeA=WaitNamedPipeA@8
+WaitNamedPipeW=WaitNamedPipeW@8
+WideCharToMultiByte=WideCharToMultiByte@32
+WinExec=WinExec@8
+WriteConsoleA=WriteConsoleA@20
+WriteConsoleInputA=WriteConsoleInputA@16
+WriteConsoleInputVDMA=WriteConsoleInputVDMA@16
+WriteConsoleInputVDMW=WriteConsoleInputVDMW@16
+WriteConsoleInputW=WriteConsoleInputW@16
+WriteConsoleOutputA=WriteConsoleOutputA@20
+WriteConsoleOutputAttribute=WriteConsoleOutputAttribute@20
+WriteConsoleOutputCharacterA=WriteConsoleOutputCharacterA@20
+WriteConsoleOutputCharacterW=WriteConsoleOutputCharacterW@20
+WriteConsoleOutputW=WriteConsoleOutputW@20
+WriteConsoleW=WriteConsoleW@20
+WriteFile=WriteFile@20
+WriteFileEx=WriteFileEx@20
+WritePrivateProfileSectionA=WritePrivateProfileSectionA@12
+WritePrivateProfileSectionW=WritePrivateProfileSectionW@12
+WritePrivateProfileStringA=WritePrivateProfileStringA@16
+WritePrivateProfileStringW=WritePrivateProfileStringW@16
+WritePrivateProfileStructA=WritePrivateProfileStructA@20
+WritePrivateProfileStructW=WritePrivateProfileStructW@20
+WriteProcessMemory=WriteProcessMemory@20
+WriteProfileSectionA=WriteProfileSectionA@8
+WriteProfileSectionW=WriteProfileSectionW@8
+WriteProfileStringA=WriteProfileStringA@12
+WriteProfileStringW=WriteProfileStringW@12
+WriteTapemark=WriteTapemark@16
+_hread=_hread@12
+_hwrite=_hwrite@12
+_lclose=_lclose@4
+_lcreat=_lcreat@8
+_llseek=_llseek@12
+_lopen=_lopen@8
+_lread=_lread@12
+_lwrite=_lwrite@12
+lstrcat=lstrcatA@8
+lstrcatA=lstrcatA@8
+lstrcatW=lstrcatW@8
+lstrcmp=lstrcmpA@8
+lstrcmpA=lstrcmpA@8
+lstrcmpW=lstrcmpW@8
+lstrcmpi=lstrcmpiA@8
+lstrcmpiA=lstrcmpiA@8
+lstrcmpiW=lstrcmpiW@8
+lstrcpy=lstrcpyA@8
+lstrcpyA=lstrcpyA@8
+lstrcpyW=lstrcpyW@8
+lstrcpyn=lstrcpynA@12
+lstrcpynA=lstrcpynA@12
+lstrcpynW=lstrcpynW@12
+lstrlen=lstrlenA@4
+lstrlenA=lstrlenA@4
+lstrlenW=lstrlenW@4
index e9269d0..9ad6e5a 100644 (file)
@@ -1,4 +1,4 @@
-# $Id: makefile,v 1.22 1999/07/16 23:37:04 rex Exp $
+# $Id: makefile,v 1.23 1999/07/17 23:10:20 ea Exp $
 #
 # ReactOS Operating System
 #
@@ -23,7 +23,7 @@ all: $(DLLTARGET)
 SYNCH_OBJECTS = synch/critical.o synch/event.o synch/wait.o
 
 MISC_OBJECTS = misc/error.o misc/atom.o misc/handle.o misc/env.o misc/dllmain.o \
-               misc/console.o misc/time.o
+               misc/console.o misc/time.o misc/stubs.o
 
 FILE_OBJECTS = file/file.o file/curdir.o file/lfile.o file/dir.o \
                file/iocompl.o file/volume.o file/deviceio.o file/dosdev.o \
@@ -99,6 +99,7 @@ $(TARGET).dll: $(DLLMAIN) $(OBJECTS) $(TARGET).def
        $(DLLTOOL) \
                --dllname $(TARGET).dll \
                --def $(TARGET).def \
+               --kill-at \
                --output-lib $(TARGET).a
        $(CC) \
                -specs=k32_specs \
@@ -112,7 +113,7 @@ $(TARGET).dll: $(DLLMAIN) $(OBJECTS) $(TARGET).def
                --dllname $(TARGET).dll \
                --base-file base.tmp \
                --output-exp temp.exp \
-               --def $(TARGET).def
+               --def $(TARGET).edf
        - $(RM) base.tmp
        $(CC) \
                -specs=k32_specs \
index 0c4e5f6..7eda3cd 100644 (file)
 #include <string.h>
 //#include <stdlib.h>
 
+/*
+ * System global and local atom tables.
+ * What does "global" mean? The scope is
+ * the attached process or ANY process?
+ * In the second case, we need to call 
+ * csrss.exe.
+ */
 
 #if 0
 
-
-
-/* system global and local atom tables */
-
 static ATOMTABLE GlobalAtomTable;
 
 /* internal functions */
@@ -43,8 +46,8 @@ int ansi2unicode( WCHAR *uni,const char *ansi, int s);
 ATOM
 STDCALL
 GlobalDeleteAtom(
-    ATOM nAtom
-    )
+       ATOM    nAtom
+       )
 {
        return GLDeleteAtom(&GlobalAtomTable, nAtom);
 }
@@ -58,15 +61,21 @@ InitAtomTable(
 {
 // nSize should be a prime number
        
-       if ( nSize < 4 || nSize >= 512 ) {
+       if ( nSize < 4 || nSize >= 512 )
+       {
                nSize = 37;
        }
        
-       if ( (GetCurrentPeb()->LocalAtomTable).lpDrvData == NULL ) {
-               (GetCurrentPeb()->LocalAtomTable).lpDrvData = HeapAlloc(GetProcessHeap(),HEAP_GENERATE_EXCEPTIONS|HEAP_ZERO_MEMORY,nSize*sizeof(ATOMENTRY));
+       if ( (GetCurrentPeb()->LocalAtomTable).lpDrvData == NULL )
+       {
+               (GetCurrentPeb()->LocalAtomTable).lpDrvData =
+                       HeapAlloc(
+                               GetProcessHeap(),
+                               (HEAP_GENERATE_EXCEPTIONS | HEAP_ZERO_MEMORY),
+                               (nSize * sizeof (ATOMENTRY))
+                               );
        }
        
-       
        return TRUE;
 }
 
@@ -77,8 +86,10 @@ DeleteAtom(
     ATOM nAtom
     )
 {
-       return GLDeleteAtom(&GetCurrentPeb()->LocalAtomTable, nAtom);
-       
+       return GLDeleteAtom(
+                       & GetCurrentPeb()->LocalAtomTable,
+                       nAtom
+                       );
 }
 
 
@@ -91,9 +102,14 @@ GlobalAddAtomA(
     )
 {
 
-       UINT     BufLen = strlen(lpString);
-       WCHAR *lpBuffer = (WCHAR *)HeapAlloc(GetProcessHeap(),HEAP_GENERATE_EXCEPTIONS|HEAP_ZERO_MEMORY,BufLen*sizeof(WCHAR));
-       ATOM atom;
+       UINT    BufLen = strlen(lpString);
+       WCHAR   * lpBuffer = (WCHAR *) HeapAlloc(
+                                       GetProcessHeap(),
+                                       (HEAP_GENERATE_EXCEPTIONS | HEAP_ZERO_MEMORY),
+                                       (BufLen * sizeof (WCHAR))
+                                       );
+       ATOM    atom;
+       
        ansi2unicode(lpBuffer, lpString,BufLen);
        atom = AWGLAddAtom(&GlobalAtomTable,lpBuffer );
        HeapFree(GetProcessHeap(),0,lpBuffer);
@@ -514,7 +530,8 @@ int ansi2unicode( WCHAR *uni,const char *ansi, int s)
        return i;
 }
 
-int unicode2ansi( char *ansi,const WCHAR *uni, int s)
+int
+unicode2ansi( char *ansi,const WCHAR *uni, int s)
 {
        register int i;
        
@@ -524,6 +541,6 @@ int unicode2ansi( char *ansi,const WCHAR *uni, int s)
 }
 
 
-
-
 #endif
+
+/* EOF */
index f4d6d55..c69bc4f 100644 (file)
@@ -1,4 +1,4 @@
-/* $Id: stubs.c,v 1.1 1999/07/12 21:01:06 ea Exp $
+/* $Id: stubs.c,v 1.2 1999/07/17 23:10:20 ea Exp $
  * KERNEL32.DLL stubs (unimplemented functions)
  * Remove from this file, if you implement them.
  */
@@ -330,7 +330,7 @@ CompareStringW (
 
 WINBOOL
 STDCALL
-ConnectNamedPipe(
+ConnectNamedPipe (
        HANDLE          hNamedPipe,
        LPOVERLAPPED    lpOverlapped
        )
@@ -355,7 +355,7 @@ ConsoleMenuControl (
 
 WINBOOL
 STDCALL
-ContinueDebugEvent(
+ContinueDebugEvent (
        DWORD   dwProcessId,
        DWORD   dwThreadId,
        DWORD   dwContinueStatus
@@ -457,7 +457,7 @@ CreateNamedPipeW (
 
 HANDLE
 STDCALL
-CreateNamedPipeA(
+CreateNamedPipeA (
        LPCSTR                  lpName,
        DWORD                   dwOpenMode,
        DWORD                   dwPipeMode,
@@ -707,11 +707,11 @@ EnumResourceNamesA (
 
 WINBOOL
 STDCALL
-EnumResourceTypesW(
-    HINSTANCE hModule,
-    ENUMRESTYPEPROC lpEnumFunc,
-    LONG lParam
-    )
+EnumResourceTypesW (
+       HINSTANCE       hModule,
+       ENUMRESTYPEPROC lpEnumFunc,
+       LONG            lParam
+       )
 {
        SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
        return FALSE;
@@ -721,11 +721,11 @@ EnumResourceTypesW(
 
 WINBOOL
 STDCALL
-EnumResourceTypesA(
-                  HINSTANCE hModule,
-                  ENUMRESTYPEPROC lpEnumFunc,
-                  LONG lParam
-                  )
+EnumResourceTypesA (
+       HINSTANCE       hModule,
+       ENUMRESTYPEPROC lpEnumFunc,
+       LONG            lParam
+       )
 {
        SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
        return FALSE;
@@ -734,10 +734,10 @@ EnumResourceTypesA(
 
 WINBOOL
 STDCALL
-EnumSystemCodePagesW(
-    CODEPAGE_ENUMPROC lpCodePageEnumProc,
-    DWORD              dwFlags
-    )
+EnumSystemCodePagesW (
+       CODEPAGE_ENUMPROC       lpCodePageEnumProc,
+       DWORD                   dwFlags
+       )
 {
        SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
        return FALSE;
@@ -746,10 +746,10 @@ EnumSystemCodePagesW(
 
 WINBOOL
 STDCALL
-EnumSystemCodePagesA(
-    CODEPAGE_ENUMPROC lpCodePageEnumProc,
-    DWORD              dwFlags
-    )
+EnumSystemCodePagesA (
+       CODEPAGE_ENUMPROC       lpCodePageEnumProc,
+       DWORD                   dwFlags
+       )
 {
        SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
        return FALSE;
@@ -758,10 +758,10 @@ EnumSystemCodePagesA(
 
 WINBOOL
 STDCALL
-EnumSystemLocalesW(
-    LOCALE_ENUMPROC lpLocaleEnumProc,
-    DWORD            dwFlags
-    )
+EnumSystemLocalesW (
+       LOCALE_ENUMPROC lpLocaleEnumProc,
+       DWORD           dwFlags
+       )
 {
        SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
        return FALSE;
@@ -770,10 +770,10 @@ EnumSystemLocalesW(
 
 WINBOOL
 STDCALL
-EnumSystemLocalesA(
-    LOCALE_ENUMPROC lpLocaleEnumProc,
-    DWORD            dwFlags
-    )
+EnumSystemLocalesA (
+       LOCALE_ENUMPROC lpLocaleEnumProc,
+       DWORD           dwFlags
+       )
 {
        SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
        return FALSE;
@@ -782,11 +782,11 @@ EnumSystemLocalesA(
 
 WINBOOL
 STDCALL
-EnumTimeFormatsW(
-    TIMEFMT_ENUMPROC lpTimeFmtEnumProc,
-    LCID              Locale,
-    DWORD             dwFlags
-    )
+EnumTimeFormatsW (
+       TIMEFMT_ENUMPROC        lpTimeFmtEnumProc,
+       LCID                    Locale,
+       DWORD                   dwFlags
+       )
 {
        SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
        return FALSE;
@@ -795,11 +795,11 @@ EnumTimeFormatsW(
 
 WINBOOL
 STDCALL
-EnumTimeFormatsA(
-    TIMEFMT_ENUMPROC lpTimeFmtEnumProc,
-    LCID              Locale,
-    DWORD             dwFlags
-    )
+EnumTimeFormatsA (
+       TIMEFMT_ENUMPROC        lpTimeFmtEnumProc,
+       LCID                    Locale,
+       DWORD                   dwFlags
+       )
 {
        SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
        return FALSE;
@@ -808,11 +808,11 @@ EnumTimeFormatsA(
 
 DWORD
 STDCALL
-EraseTape(
-         HANDLE hDevice,
-         DWORD dwEraseType,
-         WINBOOL bImmediate
-         )
+EraseTape (
+       HANDLE  hDevice,
+       DWORD   dwEraseType,
+       WINBOOL bImmediate
+       )
 {
        SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
        return 0;
@@ -821,10 +821,10 @@ EraseTape(
 
 WINBOOL
 STDCALL
-EscapeCommFunction(
-                  HANDLE hFile,
-                  DWORD dwFunc
-                  )
+EscapeCommFunction (
+       HANDLE  hFile,
+       DWORD   dwFunc
+       )
 {
        SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
        return FALSE;
@@ -845,11 +845,11 @@ ExitVDM (
 
 DWORD
 STDCALL
-ExpandEnvironmentStringsW(
-    LPCWSTR lpSrc,
-    LPWSTR lpDst,
-    DWORD nSize
-    )
+ExpandEnvironmentStringsW (
+       LPCWSTR lpSrc,
+       LPWSTR  lpDst,
+       DWORD   nSize
+       )
 {
        SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
        return 0;
@@ -858,11 +858,11 @@ ExpandEnvironmentStringsW(
 
 DWORD
 STDCALL
-ExpandEnvironmentStringsA(
-                         LPCSTR lpSrc,
-                         LPSTR lpDst,
-                         DWORD nSize
-                         )
+ExpandEnvironmentStringsA (
+       LPCSTR  lpSrc,
+       LPSTR   lpDst,
+       DWORD   nSize
+       )
 {
        SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
        return 0;
@@ -905,7 +905,7 @@ ExtendVirtualBuffer (
 
 VOID
 STDCALL
-FatalExit(
+FatalExit (
          int ExitCode
          )
 {
@@ -915,9 +915,9 @@ FatalExit(
 
 ATOM
 STDCALL
-FindAtomW(
-    LPCWSTR lpString
-    )
+FindAtomW (
+       LPCWSTR lpString
+       )
 {
        SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
        return 0;
@@ -926,7 +926,7 @@ FindAtomW(
 
 ATOM
 STDCALL
-FindAtomA(
+FindAtomA (
        LPCSTR lpString
        )
 {
@@ -937,8 +937,8 @@ FindAtomA(
 
 WINBOOL
 STDCALL
-FindCloseChangeNotification(
-       HANDLE hChangeHandle
+FindCloseChangeNotification (
+       HANDLE  hChangeHandle
        )
 {
        SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
@@ -949,10 +949,10 @@ FindCloseChangeNotification(
 HANDLE
 STDCALL
 FindFirstChangeNotificationW (
-    LPCWSTR lpPathName,
-    WINBOOL bWatchSubtree,
-    DWORD dwNotifyFilter
-    )
+       LPCWSTR lpPathName,
+       WINBOOL bWatchSubtree,
+       DWORD   dwNotifyFilter
+       )
 {
        SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
        return INVALID_HANDLE_VALUE;
@@ -961,11 +961,11 @@ FindFirstChangeNotificationW (
 
 HANDLE
 STDCALL
-FindFirstChangeNotificationA(
-    LPCSTR lpPathName,
-    WINBOOL bWatchSubtree,
-    DWORD dwNotifyFilter
-    )
+FindFirstChangeNotificationA (
+       LPCSTR  lpPathName,
+       WINBOOL bWatchSubtree,
+       DWORD   dwNotifyFilter
+       )
 {
        SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
        return INVALID_HANDLE_VALUE;
@@ -985,7 +985,7 @@ FindNextChangeNotification (
 
 HRSRC
 STDCALL
-FindResourceW(
+FindResourceW (
        HINSTANCE       hModule,
        LPCWSTR         lpName,
        LPCWSTR         lpType
@@ -1011,7 +1011,7 @@ FindResourceA (
 
 HRSRC
 STDCALL
-FindResourceExW(
+FindResourceExW (
        HINSTANCE       hModule,
        LPCWSTR         lpType,
        LPCWSTR         lpName,
@@ -1025,7 +1025,7 @@ FindResourceExW(
 
 HRSRC
 STDCALL
-FindResourceExA(
+FindResourceExA (
        HINSTANCE       hModule,
        LPCSTR          lpType,
        LPCSTR          lpName,
@@ -1119,8 +1119,8 @@ FormatMessageA (
 VOID
 STDCALL
 FreeLibraryAndExitThread (
-       HMODULE hLibModule,
-       DWORD dwExitCode
+       HMODULE hLibModule,
+       DWORD   dwExitCode
        )
 {
        SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
@@ -1151,7 +1151,7 @@ FreeVirtualBuffer (
 
 UINT
 STDCALL
-GetACP (void)
+GetACP (VOID)
 {
        SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
        return 0;
@@ -1174,7 +1174,7 @@ GetAtomNameW (
 
 UINT
 STDCALL
-GetAtomNameA(
+GetAtomNameA (
        ATOM    nAtom,
        LPSTR   lpBuffer,
        int     nSize
@@ -1187,7 +1187,7 @@ GetAtomNameA(
 
 WINBOOL
 STDCALL
-GetBinaryTypeW(
+GetBinaryTypeW (
        LPCWSTR lpApplicationName,
        LPDWORD lpBinaryType
        )
@@ -1211,7 +1211,10 @@ GetBinaryTypeA (
 
 WINBOOL
 STDCALL
-GetCPInfo (UINT a0, LPCPINFO a1)
+GetCPInfo (
+       UINT            a0,
+       LPCPINFO        a1
+       )
 {
        SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
        return 0;
@@ -1234,8 +1237,8 @@ GetCommConfig (
 WINBOOL
 STDCALL
 GetCommMask (
-       HANDLE hFile,
-       LPDWORD lpEvtMask
+       HANDLE  hFile,
+       LPDWORD lpEvtMask
        )
 {
        SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
@@ -1322,8 +1325,8 @@ GetComputerNameW (
 WINBOOL
 STDCALL
 GetComputerNameA (
-       LPSTR lpBuffer,
-       LPDWORD nSize
+       LPSTR   lpBuffer,
+       LPDWORD nSize
        )
 {
        WCHAR   Name [MAX_COMPUTERNAME_LENGTH + 1];
@@ -1583,14 +1586,14 @@ GetConsoleInputWaitHandle (VOID)
 
 int
 STDCALL
-GetCurrencyFormatW(
-    LCID     Locale,
-    DWORD    dwFlags,
-    LPCWSTR lpValue,
-    CONST CURRENCYFMT *lpFormat,
-    LPWSTR  lpCurrencyStr,
-    int      cchCurrency
-    )
+GetCurrencyFormatW (
+       LCID                    Locale,
+       DWORD                   dwFlags,
+       LPCWSTR                 lpValue,
+       CONST CURRENCYFMT       * lpFormat,
+       LPWSTR                  lpCurrencyStr,
+       int                     cchCurrency
+       )
 {
        SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
        return 0;
@@ -1599,14 +1602,14 @@ GetCurrencyFormatW(
 
 int
 STDCALL
-GetCurrencyFormatA(
-    LCID     Locale,
-    DWORD    dwFlags,
-    LPCSTR lpValue,
-    CONST CURRENCYFMT *lpFormat,
-    LPSTR  lpCurrencyStr,
-    int      cchCurrency
-    )
+GetCurrencyFormatA (
+       LCID                    Locale,
+       DWORD                   dwFlags,
+       LPCSTR                  lpValue,
+       CONST CURRENCYFMT       * lpFormat,
+       LPSTR                   lpCurrencyStr,
+       int                     cchCurrency
+       )
 {
        SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
        return 0;
@@ -1616,9 +1619,9 @@ GetCurrencyFormatA(
 DWORD
 STDCALL
 GetCurrentConsoleFont (
-       DWORD Unknown0,
-       DWORD Unknown1,
-       DWORD Unknown2
+       DWORD   Unknown0,
+       DWORD   Unknown1,
+       DWORD   Unknown2
        )
 {
        SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
@@ -1628,14 +1631,14 @@ GetCurrentConsoleFont (
 
 int
 STDCALL
-GetDateFormatW(
-    LCID     Locale,
-    DWORD    dwFlags,
-    CONST SYSTEMTIME *lpDate,
-    LPCWSTR lpFormat,
-    LPWSTR  lpDateStr,
-    int      cchDate
-    )
+GetDateFormatW (
+       LCID                    Locale,
+       DWORD                   dwFlags,
+       CONST SYSTEMTIME        * lpDate,
+       LPCWSTR                 lpFormat,
+       LPWSTR                  lpDateStr,
+       int                     cchDate
+       )
 {
        SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
        return 0;
@@ -1644,14 +1647,14 @@ GetDateFormatW(
 
 int
 STDCALL
-GetDateFormatA(
-    LCID     Locale,
-    DWORD    dwFlags,
-    CONST SYSTEMTIME *lpDate,
-    LPCSTR lpFormat,
-    LPSTR  lpDateStr,
-    int      cchDate
-    )
+GetDateFormatA (
+       LCID                    Locale,
+       DWORD                   dwFlags,
+       CONST SYSTEMTIME        * lpDate,
+       LPCSTR                  lpFormat,
+       LPSTR                   lpDateStr,
+       int                     cchDate
+       )
 {
        SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
        return 0;
@@ -1660,11 +1663,11 @@ GetDateFormatA(
 
 WINBOOL
 STDCALL
-GetDefaultCommConfigW(
-    LPCWSTR lpszName,
-    LPCOMMCONFIG lpCC,
-    LPDWORD lpdwSize
-    )
+GetDefaultCommConfigW (
+       LPCWSTR         lpszName,
+       LPCOMMCONFIG    lpCC,
+       LPDWORD         lpdwSize
+       )
 {
        SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
        return FALSE;
@@ -1673,11 +1676,11 @@ GetDefaultCommConfigW(
 
 WINBOOL
 STDCALL
-GetDefaultCommConfigA(
-    LPCSTR lpszName,
-    LPCOMMCONFIG lpCC,
-    LPDWORD lpdwSize
-    )
+GetDefaultCommConfigA (
+       LPCSTR          lpszName,
+       LPCOMMCONFIG    lpCC,
+       LPDWORD         lpdwSize
+       )
 {
        SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
        return FALSE;
@@ -1686,12 +1689,12 @@ GetDefaultCommConfigA(
 
 int
 STDCALL
-GetLocaleInfoW(
-    LCID     Locale,
-    LCTYPE   LCType,
-    LPWSTR  lpLCData,
-    int      cchData
-    )
+GetLocaleInfoW (
+       LCID    Locale,
+       LCTYPE  LCType,
+       LPWSTR  lpLCData,
+       int     cchData
+       )
 {
        SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
        return 0;
@@ -1700,12 +1703,12 @@ GetLocaleInfoW(
 
 int
 STDCALL
-GetLocaleInfoA(
-    LCID     Locale,
-    LCTYPE   LCType,
-    LPSTR  lpLCData,
-    int      cchData
-    )
+GetLocaleInfoA (
+       LCID    Locale,
+       LCTYPE  LCType,
+       LPSTR   lpLCData,
+       int     cchData
+       )
 {
        SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
        return 0;
@@ -1714,13 +1717,13 @@ GetLocaleInfoA(
 
 WINBOOL
 STDCALL
-GetMailslotInfo(
-               HANDLE hMailslot,
-               LPDWORD lpMaxMessageSize,
-               LPDWORD lpNextSize,
-               LPDWORD lpMessageCount,
-               LPDWORD lpReadTimeout
-               )
+GetMailslotInfo (
+       HANDLE  hMailslot,
+       LPDWORD lpMaxMessageSize,
+       LPDWORD lpNextSize,
+       LPDWORD lpMessageCount,
+       LPDWORD lpReadTimeout
+       )
 {
        SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
        return FALSE;
@@ -1778,14 +1781,14 @@ GetModuleHandleA (
 WINBOOL
 STDCALL
 GetNamedPipeHandleStateW (
-    HANDLE hNamedPipe,
-    LPDWORD lpState,
-    LPDWORD lpCurInstances,
-    LPDWORD lpMaxCollectionCount,
-    LPDWORD lpCollectDataTimeout,
-    LPWSTR lpUserName,
-    DWORD nMaxUserNameSize
-    )
+       HANDLE  hNamedPipe,
+       LPDWORD lpState,
+       LPDWORD lpCurInstances,
+       LPDWORD lpMaxCollectionCount,
+       LPDWORD lpCollectDataTimeout,
+       LPWSTR  lpUserName,
+       DWORD   nMaxUserNameSize
+       )
 {
        SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
        return FALSE;
@@ -1795,14 +1798,14 @@ GetNamedPipeHandleStateW (
 WINBOOL
 STDCALL
 GetNamedPipeHandleStateA (
-    HANDLE hNamedPipe,
-    LPDWORD lpState,
-    LPDWORD lpCurInstances,
-    LPDWORD lpMaxCollectionCount,
-    LPDWORD lpCollectDataTimeout,
-    LPSTR lpUserName,
-    DWORD nMaxUserNameSize
-    )
+       HANDLE  hNamedPipe,
+       LPDWORD lpState,
+       LPDWORD lpCurInstances,
+       LPDWORD lpMaxCollectionCount,
+       LPDWORD lpCollectDataTimeout,
+       LPSTR   lpUserName,
+       DWORD   nMaxUserNameSize
+       )
 {
        SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
        return FALSE;
@@ -1811,13 +1814,13 @@ GetNamedPipeHandleStateA (
 
 WINBOOL
 STDCALL
-GetNamedPipeInfo(
-                HANDLE hNamedPipe,
-                LPDWORD lpFlags,
-                LPDWORD lpOutBufferSize,
-                LPDWORD lpInBufferSize,
-                LPDWORD lpMaxInstances
-                )
+GetNamedPipeInfo (
+       HANDLE  hNamedPipe,
+       LPDWORD lpFlags,
+       LPDWORD lpOutBufferSize,
+       LPDWORD lpInBufferSize,
+       LPDWORD lpMaxInstances
+       )
 {
        SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
        return FALSE;
@@ -1837,14 +1840,14 @@ GetNextVDMCommand (
 
 int
 STDCALL
-GetNumberFormatW(
-    LCID     Locale,
-    DWORD    dwFlags,
-    LPCWSTR lpValue,
-    CONST NUMBERFMT *lpFormat,
-    LPWSTR  lpNumberStr,
-    int      cchNumber
-    )
+GetNumberFormatW (
+       LCID            Locale,
+       DWORD           dwFlags,
+       LPCWSTR         lpValue,
+       CONST NUMBERFMT * lpFormat,
+       LPWSTR          lpNumberStr,
+       int             cchNumber
+       )
 {
        SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
        return 0;
@@ -1853,14 +1856,14 @@ GetNumberFormatW(
 
 int
 STDCALL
-GetNumberFormatA(
-    LCID     Locale,
-    DWORD    dwFlags,
-    LPCSTR lpValue,
-    CONST NUMBERFMT *lpFormat,
-    LPSTR  lpNumberStr,
-    int      cchNumber
-    )
+GetNumberFormatA (
+       LCID            Locale,
+       DWORD           dwFlags,
+       LPCSTR          lpValue,
+       CONST NUMBERFMT * lpFormat,
+       LPSTR           lpNumberStr,
+       int             cchNumber
+       )
 {
        SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
        return 0;
@@ -1899,12 +1902,12 @@ GetPriorityClass (
 
 UINT
 STDCALL
-GetPrivateProfileIntW(
-    LPCWSTR lpAppName,
-    LPCWSTR lpKeyName,
-    INT nDefault,
-    LPCWSTR lpFileName
-    )
+GetPrivateProfileIntW (
+       LPCWSTR lpAppName,
+       LPCWSTR lpKeyName,
+       INT     nDefault,
+       LPCWSTR lpFileName
+       )
 {
        SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
        return 0;
@@ -1913,12 +1916,12 @@ GetPrivateProfileIntW(
 
 UINT
 STDCALL
-GetPrivateProfileIntA(
-    LPCSTR lpAppName,
-    LPCSTR lpKeyName,
-    INT nDefault,
-    LPCSTR lpFileName
-    )
+GetPrivateProfileIntA (
+       LPCSTR  lpAppName,
+       LPCSTR  lpKeyName,
+       INT     nDefault,
+       LPCSTR  lpFileName
+       )
 {
        SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
        return 0;
@@ -1927,12 +1930,12 @@ GetPrivateProfileIntA(
 
 DWORD
 STDCALL
-GetPrivateProfileSectionW(
-    LPCWSTR lpAppName,
-    LPWSTR lpReturnedString,
-    DWORD nSize,
-    LPCWSTR lpFileName
-    )
+GetPrivateProfileSectionW (
+       LPCWSTR lpAppName,
+       LPWSTR  lpReturnedString,
+       DWORD   nSize,
+       LPCWSTR lpFileName
+       )
 {
        SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
        return 0;
@@ -1941,12 +1944,12 @@ GetPrivateProfileSectionW(
 
 DWORD
 STDCALL
-GetPrivateProfileSectionA(
-    LPCSTR lpAppName,
-    LPSTR lpReturnedString,
-    DWORD nSize,
-    LPCSTR lpFileName
-    )
+GetPrivateProfileSectionA (
+       LPCSTR  lpAppName,
+       LPSTR   lpReturnedString,
+       DWORD   nSize,
+       LPCSTR  lpFileName
+       )
 {
        SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
        return 0;
@@ -1981,14 +1984,14 @@ GetPrivateProfileSectionNamesA (
 
 DWORD
 STDCALL
-GetPrivateProfileStringW(
-    LPCWSTR lpAppName,
-    LPCWSTR lpKeyName,
-    LPCWSTR lpDefault,
-    LPWSTR lpReturnedString,
-    DWORD nSize,
-    LPCWSTR lpFileName
-    )
+GetPrivateProfileStringW (
+       LPCWSTR lpAppName,
+       LPCWSTR lpKeyName,
+       LPCWSTR lpDefault,
+       LPWSTR  lpReturnedString,
+       DWORD   nSize,
+       LPCWSTR lpFileName
+       )
 {
        SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
        return 0;
@@ -1997,14 +2000,14 @@ GetPrivateProfileStringW(
 
 DWORD
 STDCALL
-GetPrivateProfileStringA(
-    LPCSTR lpAppName,
-    LPCSTR lpKeyName,
-    LPCSTR lpDefault,
-    LPSTR lpReturnedString,
-    DWORD nSize,
-    LPCSTR lpFileName
-    )
+GetPrivateProfileStringA (
+       LPCSTR  lpAppName,
+       LPCSTR  lpKeyName,
+       LPCSTR  lpDefault,
+       LPSTR   lpReturnedString,
+       DWORD   nSize,
+       LPCSTR  lpFileName
+       )
 {
        SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
        return 0;
@@ -2049,6 +2052,13 @@ GetProcessAffinityMask (
        LPDWORD lpSystemAffinityMask
        )
 {
+       if (    (NULL == lpProcessAffinityMask)
+               || (NULL == lpSystemAffinityMask)
+               )
+       {
+               SetLastError(ERROR_BAD_ARGUMENTS);
+               return FALSE;
+       }
        /* FIXME: check hProcess is actually a process */
        /* FIXME: query the kernel process object */
        *lpProcessAffinityMask = 0x00000001;
@@ -2095,11 +2105,11 @@ GetProcessWorkingSetSize (
 
 UINT
 STDCALL
-GetProfileIntW(
-    LPCWSTR lpAppName,
-    LPCWSTR lpKeyName,
-    INT nDefault
-    )
+GetProfileIntW (
+       LPCWSTR lpAppName,
+       LPCWSTR lpKeyName,
+       INT     nDefault
+       )
 {
        SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
        return 0;
@@ -2108,11 +2118,11 @@ GetProfileIntW(
 
 UINT
 STDCALL
-GetProfileIntA(
-              LPCSTR lpAppName,
-              LPCSTR lpKeyName,
-              INT nDefault
-              )
+GetProfileIntA (
+       LPCSTR  lpAppName,
+       LPCSTR  lpKeyName,
+       INT     nDefault
+       )
 {
        SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
        return 0;
@@ -2121,11 +2131,11 @@ GetProfileIntA(
 
 DWORD
 STDCALL
-GetProfileSectionW(
-    LPCWSTR lpAppName,
-    LPWSTR