[wdmaudiodev] Re: Sending KSProperty to Streaming Pin

  • From: KS <wakeup1504@xxxxxxxxx>
  • To: wdmaudiodev@xxxxxxxxxxxxx
  • Date: Thu, 5 Feb 2009 00:31:58 +0800

Hi Tim,

I'm not familiar with DirectShow interfaces. Currently, I only know of using
CreateFile method to open handle to audio filters. If I want to open a pin
handle on a particular driver to send a KSProperty call that is to be
targetted on the PinFactory, can you provide me with a more detailed
explanation of how I can go about doing it based on your recommendation? I'm
not sure of how to get the IBaseFilter for the audio filter that have the
audio pin that I'm trying to target.

Thanks for your advise.


On Wed, Feb 4, 2009 at 3:14 AM, Tim Roberts <timr@xxxxxxxxx> wrote:

>  KS wrote:
> >
> > Does anyone knows whether it is possible to send KSProperty through
> > DeviceIOControl calls from user mode application to a streaming pin? I
> > would like to make some KSProperty calls that is targeted at a kernel
> > streaming pin instead of kernel streaming filter, but have not found
> > any information on this so far.
> One you have an IPin interface for the pin (which you can get from the
> IBaseFilter using EnumPins or FindPin), all you have to do is fetch an
> IKsControl from it.  If you want to talk to the first pin on the filter,
> you can use FindPinInterface in dshowutil.cpp:
>    CComPtr<IKsControl> pKs;
>    HRESULT hr = FindPinInterface( pOurFilter, __uuidof(IKsControl),
> (void**)&pKs );
> --
> Tim Roberts, timr@xxxxxxxxx
> Providenza & Boekelheide, Inc.
> ******************
> WDMAUDIODEV addresses:
> Post message: mailto:wdmaudiodev@xxxxxxxxxxxxx
> Subscribe:    mailto:wdmaudiodev-request@xxxxxxxxxxxxx?subject=subscribe
> Unsubscribe:  mailto:wdmaudiodev-request@xxxxxxxxxxxxx?subject=unsubscribe
> Moderator:    mailto:wdmaudiodev-moderators@xxxxxxxxxxxxx
> http://www.wdmaudiodev.com/

Other related posts: