Hi, I was wondering if someone knew anything about the specifics of this thread:
//www.freelists.org/post/wdmaudiodev/Interfacing-Audio-Driver-From-USER-MODE,15 Specifically, I'm having trouble with One you have an IBaseFilter, you just fetch an IKsControl interface from it: CComQIPtr<IKsControl> pKsControl( myFilter );The problem is that VC++ 2008 doesn't include IKsControl properly, so it doesn't build. If I use:
#include "ks.h" it still tells me that IKsControl is undefined. If I do this: interface DECLSPEC_UUID("28F54685-06FD-11D2-B27A-00A0C9223196") IKsControl; it builds, but it doesn't find the interface. hr = pBaseFilter->QueryInterface(IID_IKsControl, (void **) &pControl);returns that the interface doesn't exist. I'm not using smart pointers because I'm using VC++ express, no ATL.
IBaseFilter * pBaseFilter; hr = pDeviceMonik->BindToObject(NULL, NULL, IID_IBaseFilter,(void**)&pBaseFilter); IKsControl *pControl; hr = pBaseFilter->QueryInterface(IID_IKsControl, (void **) &pControl); Thanks! ****************** 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/