C++/VB - sound card settings

Asked By simpleuse
28-Jun-07 11:46 AM
Hi,
Is someone knows, where are the setting for sound audio acceleration
saved?(registry, ini file, value of the slider to be precise )
Or is there the way to change it programmatically (lowering or incrementing)

Regards,
IKsPropertySet
(1)
DirectSoundPrivate
(1)
DSound
(1)
Registry
(1)
Slider
(1)
CLSID
(1)
Audio
(1)
Ini
(1)
  Christian ASTOR replied...
28-Jun-07 04:50 PM
DSound & IKsPropertySet->Get() but it is complicated...
(CLSID_DirectSoundPrivate and so on)
Create New Account
help
is executed. The LIBID is only used = to look up the type library in the registry (this type library may be = bound as a resource to some DLL or EXE, or is executed. The LIBID is only used to look up the type library in the registry (this type library may be bound as a resource to some DLL or EXE, or my idea. "The LIBID is only used to look up the type library in the registry (this type library may be bound as a resource to some DLL or EXE, or Imagine you install the EXE server and register its type library. This = will point the registry entries for the interfaces mentioned in that = type library to the EXE (see HKCR \ Interface entries and make them point to = itself. Then you uninstall the DLL - it removes those registry entries, = and your EXE stops working. If you want to share the same interface definitions library, with the same LIBID, attached both to = the EXE and the DLL, then the registry entries would point to whichever = of them was registered last. This is not a problem it in the first place? A major one - = if you uninstall the module that LIBID registry entries point to, the = other module will stop working (or, you will have to take library, with the same LIBID, attached both to the EXE and the DLL, then the registry entries would point to whichever of them was registered last. This is not a problem
C++ / VB Hi every one, I have a dialog application with a start button, a slider control, an edit box where the value of the slider control will be displayed and another edit box where the result of some operations made from a workerthread will be displayed. When moving the slider, the new value of the slider should appear in the corresponding edit box and the workerthread should be aware that the value of the slider has changed and should update the value of the slider in the calculations being performed. I created a class CWorkerThreadMgr (for the thread code) which the CStartCalculationDlg.h CWorkerThreadMgr m_WorkerThreadMgr / / instance of the WorkerThreadMgr CSliderCtrl m_Slider / / member variable of the slider control CString m_SliderValue / / member variable of the edit box, where the current value of the slider control will be / / displayed CString m_Calculation / / member variable of the edit box where the calculated
a duplicate copy of all the com ptogid's under the HKCU hive - ugh! My registry takes up twice as much memory, and I am reluctant to attempt to undo the Servers http: / / msdn.microsoft.com / en-us / library / ms693350(VS.85).aspx See also: INFO: Registry Entries Made by an ActiveX Component http: / / support.microsoft.com / default.aspx?scid = kb;en 183771 If you need it per user for some reason, you need to add the registry entries manually. If you have entries in both locations, HKEY_CURRENT_USER takes precedence. However, I have maybe the HKCU part came later. (Which seems to mean, mr_u., that your bloated HKCU Registry is probably less than useless. :) I just tried it on XP+SP2 and it does Application NOTFOUND OpenKey HKCR \ Excel.Application SUCCESS Key: 0xE61245A8 QueryKey HKCR \ Excel.Application SUCCESS Name: \ REGISTRY \ MACHINE \ SOFTWARE \ Classes \ Excel.Application OpenKey HKCU \ Excel.Application \ CLSID NOTFOUND OpenKey HKCR \ Excel.Application \ CLSID SUCCESS Key: 0xE163CD80 QueryKey HKCR \ Excel.Application \ CLSID SUCCESS Name: \ REGISTRY \ MACHINE \ SOFTWARE \ Classes \ Excel.Application \ CLSID OpenKey HKCU \ Excel.Application \ CLSID NOTFOUND QueryValue HKCR \ Excel s CreateObject-call does something diffferent "at its higher layer") - after one "manually" provided the registry with appropriate entries in HKCU. . . No time currently for that, maybe some nice guy can do such a test. . .? Olaf It can be a tad mysterious, as most of the Registry internals is proprietary and details are hard to come by unless you are a subscriber
register_api.h: (Needed for registration) namespace api { template<class T> class RegistryProxy; namespace details { class Registry { template<class> friend class api::RegistryProxy; Registry(const char* id); }; } / / details template<class T> class RegistryProxy { static details::Registry& init(const char* id) { static details::Registry result(id); return result; } public: RegistryProxy(const char* id) { init(id); } }; } / / query_api.h: (needed to check the registry contents) namespace api { typedef std::vector<std::string> ContType; ContType allIds(); } / / register_lib.cpp namespace api { namespace details { namespace { inline ContType& ids() { static ContType result; return result; } } / / anon Registry::Registry(const char* id) { ids().push_back(id); } } / / details ContType allIds() { return details::ids(); } } / / api Now lets have a test program that depends on the static user library and does show the registry contents: / / TU of the main program. For simplicity it / / is included here. int main() { api
Registry search and replace C++ / VB Need some help creating a vbs file that will replace a server name with another server name and traverse the entire registry, all KEYS and VALUES. Needs to be non-prompting, silent and easily set with the If End Sub VBScript Discussions Error (1) Recursive (1) XP (1) CreateObject (1) GetObject (1) Registry (1) Binary (1) Array (1) So, you want us to review a 200 line script of whitespace, along with some comments. Perhaps this script is capable of making changes to registry values somewhat along the lines of what you are trying to do. But just to code to do that would be a significant task. As to changing (i.e. renaming) registry keys, you seem to be asking for trouble. Suppose the registry contains keys named "homer" and "marge", and the server names in question happen to be that if you ever get this script working to the point where it modifies the registry, that running it will disable the computer. Good luck with that. / Al I dont see postings from people who cant write their full name. . . [. . .] Besides that: (recursive) enumeration of registry keys via WMI's VBScript interface does not work on NT 5.x, since the