hi tim, Thanks for the reply.I wanted to check if the soundmax driver supports the property or not.Whatever the code i posted before is working fine(able to create instance).I got stuck up with associating the soundmax driver.Can anybody pls guide me how to associate the driver since i wanted to check for soundmax driver. Thanks for all help. Regards Lokesh On Mon, Jun 1, 2009 at 12:50 PM, Tim Roberts <timr@xxxxxxxxx> wrote: > Lokesh Patakolusu wrote: > > > > I am using the following code to check if the driver supports property > > or not. > > That's not the correct way to instantiate DirectSound. There are two > ways: either you call CoCreateInstance on CLSID_DirectSound (or > CLSID_DirectSound8) for the IDirectSound (or IDirectSound8) interface, > and then call its Initialize method, or you call DirectSoundCreate8, > with returns you an IDirectSound8 interface that has already been > initialized. You should be able to query that for an IKsPropertySet. > > Your bare object has not yet been associated with a driver. > > -- > 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/ > >