locked
How can we control the "Enhancements" page under device Properties page? RRS feed

  • Question

  • 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.
    Thursday, February 15, 2007 2:26 AM

Answers