Re: Source Filter using UserMode DShow Filter and Plain Kernel Dri



Yes. You can do this. I have done this. I wrote a virtual video capture
filter that (internally) opened a WDM midi capture device via
CreateFile(pnpDevicePath) and pumped it with a separate thread.

No problem. There are no WHQL issues. There are no special headaches.

The only headaches you will have are the same headaches you have when you do
the same thing in a normal app or normal DLL. Pay attention to threads.

Just curious: Are you trying to implement a USB dongle? That should be
easy. Lock your codec to a thumbdrive. :)


"Santosh" wrote:

Thanks Cris, David for the replies

David
I know that we can make a kernel mode avstream driver, the framework
creates Proxy filter in user mode for apps to access it.
But somehow because of some issues, i need to create user mode
DirectShow filter for apps to use in windows, and have the filter
manage communication with driver using ioctl. Since the driver is
plain WDM Driver.
I want to know that has anybody tried this kind of design, Will it may
result in some bottlenecks, WHQL issues etc.

Regards
Santosh K




On Sep 16, 10:40 pm, David Miller
<DavidMil...@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote:
Santosh,

Do you know about the Kernel Streaming Proxy? It will wrap any WDM kernel
driver (including drivers you wrote, or 3rd-party drivers). Then you can use
IKsPropertySet or IKsControl to talk to it from a user-mode app or filter..

http://msdn.microsoft.com/en-us/library/ms810545.aspx

It is also possible to create a ‘hybrid’ DirectShow Source Filter (half
kernel-mode and half user-mode) with this technique:

http://www.wd-3.com/archive/KsProxyPlugin.htm

Only the kernel driver needs WHQL.



"Santosh" wrote:
Hi

I want to build DirectShow Source Filter in user mode which will talk
with hardware using ioctls to normal WDM Kernel Driver (i.e. it will
not be implementing avstream class)
Is the above design feasible? What kinds of bottleneck it may result?
and would there be any effect on getting WHQL test to PASS (i.e. for
Video Capture Category WHQL Tests)

Regards
Santosh K- Hide quoted text -

- Show quoted text -


.



Relevant Pages

  • Re: Intro to writing kernel hooks
    ... This is the main reason why people go for kernel hooking.... ... FS filter. ... Windows 2k/XP/2k3 Filesystem and Driver Consulting ...
    (microsoft.public.win32.programmer.kernel)
  • Re: filters and filtergraphs
    ... what is the difference between a filter and driver. ... an upper filter, minidriver, lower filter, blah blah. ... part of WDM - the Windows Driver Model. ... Kernel Streaming, and is similar in concept to DirectShow. ...
    (microsoft.public.development.device.drivers)
  • Re: Source Filter using UserMode DShow Filter and Plain Kernel Driver
    ... I know that we can make a kernel mode avstream driver, ... DirectShow filter for apps to use in windows, ... Do you know about the Kernel Streaming Proxy? ...
    (microsoft.public.win32.programmer.directx.video)
  • Re: Socket Programmierung - ProtocolType.IP & ProtocolType.Raw auf .NET Compact Framework
    ... Aber ich glaube, du "musst" runter in den Kernel, daher eher ... [Network Driver Development Concepts] ... [NDIS Driver Tips and Guidelines] ... Mit NDIS und einem Upper oder Lower Filter liegst Du ...
    (microsoft.public.de.german.entwickler.dotnet.framework)
  • Re: What exactly are filter drivers?
    ... >How do filter drivers then, differ from say a miniclass driver? ... >filter drivers not have a place in the WDM? ... device, and upper filters, which get inserted on the other side. ...
    (microsoft.public.development.device.drivers)

Loading