Taya Cool

There will be a "Enhancements" tab on the device Properties page if we use APO to add some sound effects.( ex: Speaker or Microphone) And I want to control the checkbox in the "Enhancements" tab.
The question is : how can we get the interface of this page
I know the "Enhancements" will add a "FxProperties" folder under the device registry. But I can't find the header of this IPropertyStore interface.
I have tried SHGetPropertyStoreFromParsingName to get the interface. Like this:

IPropertyStore *pProps = NULL;
CString string = L"HKEY_LOCAL_MACHINE\\....\\FxProperties"; // The registry path.

SHGetPropertyStoreFromParsingName ( string, NULL, GPS_DEFAULT,
__uuidof( IPropertyStore ), (void**)&pProps );

But it will return "0x80070002 The system cannot find the file specified".
So what API or functions should I used to get the IPropertyStore interface header

Thanks for your help.


Re: Vista Pro-Audio Application Development How can we control the "Enhancements" page under device Properties page?

Larry Osterman

Programatically

You can't, unless you're writing a system effect. If you're writing a system effect, then your control panel extension will receive a pointer to an IPropertyStore object in it's Initialize method, if you set the PKEY_AudioEndpoint_Disable_SysFx property on that property store, to a non 0 value it will disable system effects for newly created streams.





Re: Vista Pro-Audio Application Development How can we control the "Enhancements" page under device Properties page?

Larry Osterman

Btw, why do you want to do this





Re: Vista Pro-Audio Application Development How can we control the "Enhancements" page under device Properties page?

AntonX

I want to (actually must) do it too. I need to make sure that the user hasn't selected any enhancement, so I want to disable them programmatically. Is this possible In our application the output has to be calibrated, and the enhancements tamper with calibrations.