[wdmaudiodev] Re: IKsControl

  • From: Tim Roberts <timr@xxxxxxxxx>
  • To: wdmaudiodev@xxxxxxxxxxxxx
  • Date: Wed, 03 Feb 2010 10:30:36 -0800

Mark Walker wrote:
> Thanks Tim & Matthew for responding.
> In reference to NTDDI_VERSION >= NTDDI_WINXP I'm writing a user mode
> application that us attempting to access special features of an audio
> driver.  Is NTDDI_VERSION  relevant for  user mode applications?  The
> driver I'm trying to reach targets XP and above, though.
> I tried ksproxy.h as well, but it doesn't build.  I kludged ksproxy.h
> to get rid of some defines and it built, but it still doesn't give me
> a good pointer when I run it.  Do I have to explicitly expose
> IKsControl to user mode applications in my driver?

You should not need to kludge it.  This compiles for me as-is:

    #include <windows.h>
    #include <initguid.h>
    #include <ks.h>
    #include <ksmedia.h>
    #include <ksproxy.h>
    int main() { IKsControl * ptr = NULL;  return 0; }

You are using the SDK and not the DDK, right?

You do not need to expose IKsControl.  Ksproxy will do that for you. 
How are you acquiring the device?  Are you using CLSID_SystemDeviceEnum
to get the IBaseFilter instance?

Tim Roberts, timr@xxxxxxxxx
Providenza & Boekelheide, Inc.

Other related posts: