Author: spetreolle Date: Sun Mar 18 20:12:18 2007 New Revision: 26134
URL: http://svn.reactos.org/svn/reactos?rev=26134&view=rev Log: add KsInitializeDriver
Modified: trunk/reactos/drivers/multimedia/ks/ks.def trunk/reactos/drivers/multimedia/ks/misc.c trunk/reactos/include/ddk/ks.h
Modified: trunk/reactos/drivers/multimedia/ks/ks.def URL: http://svn.reactos.org/svn/reactos/trunk/reactos/drivers/multimedia/ks/ks.de... ============================================================================== --- trunk/reactos/drivers/multimedia/ks/ks.def (original) +++ trunk/reactos/drivers/multimedia/ks/ks.def Sun Mar 18 20:12:18 2007 @@ -109,3 +109,4 @@ KsSetTargetDeviceObject@8 KsSetTargetState@8 KsSynchronousIoControlDevice@32 +KsInitializeDriver@12
Modified: trunk/reactos/drivers/multimedia/ks/misc.c URL: http://svn.reactos.org/svn/reactos/trunk/reactos/drivers/multimedia/ks/misc.... ============================================================================== --- trunk/reactos/drivers/multimedia/ks/misc.c (original) +++ trunk/reactos/drivers/multimedia/ks/misc.c Sun Mar 18 20:12:18 2007 @@ -216,3 +216,17 @@ 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; +} +
Modified: trunk/reactos/include/ddk/ks.h URL: http://svn.reactos.org/svn/reactos/trunk/reactos/include/ddk/ks.h?rev=26134&... ============================================================================== --- trunk/reactos/include/ddk/ks.h (original) +++ trunk/reactos/include/ddk/ks.h Sun Mar 18 20:12:18 2007 @@ -1540,6 +1540,37 @@ 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 @@ 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,