[wdmaudiodev] Re: Sending KSProperty to Streaming Pin

  • From: Tim Roberts <timr@xxxxxxxxx>
  • To: wdmaudiodev@xxxxxxxxxxxxx
  • Date: Tue, 03 Feb 2009 11:14:30 -0800

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

URL to WDMAUDIODEV page:
http://www.wdmaudiodev.com/

Other related posts: