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. KS 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 > > URL to WDMAUDIODEV page: > http://www.wdmaudiodev.com/ > >