add KsInitializeDriver
authorSylvain Petreolle <spetreolle@yahoo.fr>
Sun, 18 Mar 2007 17:12:18 +0000 (17:12 +0000)
committerSylvain Petreolle <spetreolle@yahoo.fr>
Sun, 18 Mar 2007 17:12:18 +0000 (17:12 +0000)
svn path=/trunk/; revision=26134

reactos/drivers/multimedia/ks/ks.def
reactos/drivers/multimedia/ks/misc.c
reactos/include/ddk/ks.h

index f146fc5..7ab7c3d 100644 (file)
@@ -109,3 +109,4 @@ KsRecalculateStackDepth@8
 KsSetTargetDeviceObject@8
 KsSetTargetState@8
 KsSynchronousIoControlDevice@32
+KsInitializeDriver@12
index 7e5303e..bb582ae 100644 (file)
@@ -216,3 +216,17 @@ KsSynchronousIoControlDevice(
     return STATUS_UNSUCCESSFUL;
 }
 
+/*
+    @unimplemented
+*/
+KSDDKAPI NTSTATUS NTAPI
+KsInitializeDriver(
+IN PDRIVER_OBJECT  DriverObject,
+IN PUNICODE_STRING  RegistryPath,
+IN const KSDEVICE_DESCRIPTOR  *Descriptor OPTIONAL
+)
+{
+    UNIMPLEMENTED;
+    return STATUS_UNSUCCESSFUL;
+}
+
index a5aba33..2faa0fb 100644 (file)
@@ -1540,6 +1540,37 @@ typedef struct _KSFILTER_DISPATCH
     PFNKSFILTERVOID Reset;
 } KSFILTER_DISPATCH, *PKSFILTER_DISPATCH;
 
+typedef struct {
+  const KSAUTOMATION_TABLE*  AutomationTable;
+  const GUID*  Type;
+  const GUID*  Name;
+} KSNODE_DESCRIPTOR, *PKSNODE_DESCRIPTOR;
+
+typedef struct {
+  const KSFILTER_DISPATCH*  Dispatch;
+  const KSAUTOMATION_TABLE*  AutomationTable;
+  ULONG  Version;
+  ULONG  Flags;
+  const GUID*  ReferenceGuid;
+  ULONG  PinDescriptorsCount;
+  ULONG  PinDescriptorSize;
+  const KSPIN_DESCRIPTOR_EX*  PinDescriptors;
+  ULONG  CategoriesCount;
+  const GUID*  Categories;
+  ULONG  NodeDescriptorsCount;
+  ULONG  NodeDescriptorSize;
+  const KSNODE_DESCRIPTOR*  NodeDescriptors;
+  ULONG  ConnectionsCount;
+  const KSTOPOLOGY_CONNECTION*  Connections;
+  const KSCOMPONENTID*  ComponentId;
+} KSFILTER_DESCRIPTOR, *PKSFILTER_DESCRIPTOR;
+
+typedef struct
+{
+  const KSDEVICE_DISPATCH*  Dispatch;
+  ULONG  FilterDescriptorsCount;
+  const  KSFILTER_DESCRIPTOR*const* FilterDescriptors;
+} KSDEVICE_DESCRIPTOR, *PKSDEVICE_DESCRIPTOR;
 
 /* ===============================================================
     Minidriver Callbacks
@@ -2287,6 +2318,13 @@ KsSynchronousIoControlDevice(
     http://www.osronline.com/ddkx/stream/avstream_5q9f.htm
 */
 
+KSDDKAPI NTSTATUS NTAPI
+KsInitializeDriver(
+    IN PDRIVER_OBJECT  DriverObject,
+    IN PUNICODE_STRING  RegistryPath,
+    IN const KSDEVICE_DESCRIPTOR  *Descriptor OPTIONAL
+    );
+
 #if 0
 typedef void (*PFNKSFILTERFACTORYPOWER)(
     IN  PKSFILTERFACTORY FilterFactory,