Added exports to def/edf files and modified some pnp functions.
authorRobert Dickenson <robd@reactos.org>
Thu, 3 Oct 2002 19:39:56 +0000 (19:39 +0000)
committerRobert Dickenson <robd@reactos.org>
Thu, 3 Oct 2002 19:39:56 +0000 (19:39 +0000)
svn path=/trunk/; revision=3620

reactos/ntoskrnl/io/irp.c
reactos/ntoskrnl/io/pnpmgr.c
reactos/ntoskrnl/ntoskrnl.def
reactos/ntoskrnl/ntoskrnl.edf

index 16b7eac..0a01345 100644 (file)
@@ -1,4 +1,4 @@
-/* $Id: irp.c,v 1.44 2002/09/30 20:53:38 hbirr Exp $
+/* $Id: irp.c,v 1.45 2002/10/03 19:39:56 robd Exp $
  *
  * COPYRIGHT:       See COPYING in the top level directory
  * PROJECT:         ReactOS kernel
@@ -42,6 +42,7 @@
 
 #define TAG_IRP     TAG('I', 'R', 'P', ' ')
 
+
 /* FUNCTIONS ****************************************************************/
 
 
@@ -359,4 +360,38 @@ IoQueueThreadIrp(IN PIRP Irp)
   UNIMPLEMENTED;
 }
 
+/*
+NTSTATUS
+STDCALL
+IoSetDeviceInterfaceState(IN PUNICODE_STRING SymbolicLinkName, IN BOOLEAN Enable)
+{
+  UNIMPLEMENTED;
+       return 0;
+}
+
+NTSTATUS
+STDCALL
+IoGetDeviceProperty(
+  IN PDEVICE_OBJECT DeviceObject,
+  IN DEVICE_REGISTRY_PROPERTY DeviceProperty,
+  IN ULONG BufferLength,
+  OUT PVOID PropertyBuffer,
+  OUT PULONG ResultLength)
+{
+  UNIMPLEMENTED;
+       return 0;
+}
+
+NTSTATUS
+STDCALL
+IoOpenDeviceRegistryKey(
+  IN PDEVICE_OBJECT DeviceObject,
+  IN ULONG DevInstKeyType,
+  IN ACCESS_MASK DesiredAccess,
+  OUT PHANDLE DevInstRegKey)
+{
+  UNIMPLEMENTED;
+       return 0;
+}
+ */
 /* EOF */
index 6800861..80bdb0b 100644 (file)
@@ -1,4 +1,4 @@
-/* $Id: pnpmgr.c,v 1.8 2002/09/08 10:23:25 chorns Exp $
+/* $Id: pnpmgr.c,v 1.9 2002/10/03 19:39:56 robd Exp $
  *
  * COPYRIGHT:      See COPYING in the top level directory
  * PROJECT:        ReactOS kernel
 #include <internal/registry.h>
 #include <internal/module.h>
 
+#include <ole32/guiddef.h>
+//#include <ddk/pnpfuncs.h>
+#ifdef DEFINE_GUID
+DEFINE_GUID(GUID_CLASS_COMPORT,          0x86e0d1e0L, 0x8089, 0x11d0, 0x9c, 0xe4, 0x08, 0x00, 0x3e, 0x30, 0x1f, 0x73);
+DEFINE_GUID(GUID_SERENUM_BUS_ENUMERATOR, 0x4D36E978L, 0xE325, 0x11CE, 0xBF, 0xC1, 0x08, 0x00, 0x2B, 0xE1, 0x03, 0x18);
+#endif // DEFINE_GUID
+
+
 #define NDEBUG
 #include <internal/debug.h>
 
+
 /* GLOBALS *******************************************************************/
 
 PDEVICE_NODE IopRootDeviceNode;
@@ -158,7 +167,14 @@ IoRegisterDeviceInterface(
   IN PUNICODE_STRING ReferenceString  OPTIONAL,
   OUT PUNICODE_STRING SymbolicLinkName)
 {
-  return STATUS_NOT_IMPLEMENTED;
+       PWCHAR KeyNameString = L"\\Device\\Serenum";
+
+       if (IsEqualGUID(InterfaceClassGuid, (LPGUID)&GUID_SERENUM_BUS_ENUMERATOR)) {
+        RtlInitUnicodeString(SymbolicLinkName, KeyNameString);
+               return STATUS_SUCCESS;
+       }
+       return STATUS_INVALID_DEVICE_REQUEST;
+//    return STATUS_NOT_IMPLEMENTED;
 }
 
 NTSTATUS
@@ -237,7 +253,11 @@ IoSetDeviceInterfaceState(
   IN PUNICODE_STRING SymbolicLinkName,
   IN BOOLEAN Enable)
 {
-  return STATUS_NOT_IMPLEMENTED;
+       return STATUS_SUCCESS;
+
+//     return STATUS_OBJECT_NAME_EXISTS;
+//     return STATUS_OBJECT_NAME_NOT_FOUND;
+//    return STATUS_NOT_IMPLEMENTED;
 }
 
 NTSTATUS
index 3728574..6cdeec2 100644 (file)
@@ -1,4 +1,4 @@
-; $Id: ntoskrnl.def,v 1.144 2002/10/02 19:25:19 hbirr Exp $
+; $Id: ntoskrnl.def,v 1.145 2002/10/03 19:39:56 robd Exp $
 ;
 ; reactos/ntoskrnl/ntoskrnl.def
 ;
@@ -281,6 +281,7 @@ IoGetRequestorProcess@4
 IoGetStackLimits@8
 IoGetTopLevelIrp@0
 IoInitializeIrp@12
+IoInvalidateDeviceState@4
 IoInitializeRemoveLockEx@20
 IoInitializeTimer@12
 IoIsOperationSynchronous@4
@@ -297,6 +298,16 @@ IoRaiseInformationalHardError@12
 IoReadOperationCount DATA
 IoReadPartitionTable@16
 IoReadTransferCount DATA
+
+IoFreeWorkItem@4
+IoAllocateWorkItem@4
+IoQueueWorkItem@16
+IoRegisterDeviceInterface@16
+IoSetDeviceInterfaceState@8
+IoGetDeviceProperty@20
+IoOpenDeviceRegistryKey@16
+IoInvalidateDeviceRelations@8
+
 IoRegisterDriverReinitialization@12
 IoRegisterFileSystem@4
 IoRegisterFsRegistrationChange@8
index 7bea46e..166e37f 100644 (file)
@@ -1,4 +1,4 @@
-; $Id: ntoskrnl.edf,v 1.130 2002/10/02 19:25:19 hbirr Exp $
+; $Id: ntoskrnl.edf,v 1.131 2002/10/03 19:39:56 robd Exp $
 ;
 ; reactos/ntoskrnl/ntoskrnl.def
 ;
@@ -280,6 +280,7 @@ IoGetRequestorProcess=IoGetRequestorProcess@4
 IoGetStackLimits=IoGetStackLimits@8
 IoGetTopLevelIrp=IoGetTopLevelIrp@0
 IoInitializeIrp=IoInitializeIrp@12
+IoInvalidateDeviceState=IoInvalidateDeviceState@4
 IoInitializeRemoveLockEx=IoInitializeRemoveLockEx@20
 IoInitializeTimer=IoInitializeTimer@12
 IoIsOperationSynchronous=IoIsOperationSynchronous@4
@@ -296,6 +297,16 @@ IoRaiseInformationalHardError=IoRaiseInformationalHardError@12
 IoReadOperationCount DATA
 IoReadPartitionTable=IoReadPartitionTable@16
 IoReadTransferCount DATA
+
+IoFreeWorkItem=IoFreeWorkItem@4
+IoAllocateWorkItem=IoAllocateWorkItem@4
+IoQueueWorkItem=IoQueueWorkItem@16
+IoRegisterDeviceInterface=IoRegisterDeviceInterface@16
+IoSetDeviceInterfaceState=IoSetDeviceInterfaceState@8
+IoGetDeviceProperty=IoGetDeviceProperty@20
+IoOpenDeviceRegistryKey=IoOpenDeviceRegistryKey@16
+IoInvalidateDeviceRelations=IoInvalidateDeviceRelations@8
+
 IoRegisterDriverReinitialization=IoRegisterDriverReinitialization@12
 IoRegisterFileSystem=IoRegisterFileSystem@4
 IoRegisterFsRegistrationChange=IoRegisterFsRegistrationChange@8