Link to home
Start Free TrialLog in
Avatar of bgbennyboy
bgbennyboy

asked on

Changing Directsound Acceleration Level/ Searching for a registry key

To change the directsound acceleration level I know that I have to change the acceleration key in HKEY_CURRENT_CONFIG\System\CurrentControlSet\Enum\PCI\..........\DirectSound\Mixer Defaults

However the location of the directsound folder varies from system to system because it is contained in a 'VEN_XXX&DEVXXXXXX...' folder which differs according to the hardware installed.
On my system for example the location fo the key is 'HKEY_CURRENT_CONFIG\System\CurrentControlSet\Enum\PCI\VEN_1102&DEV_0002&SUBSYS_80401102&REV_05\3&61AAA01&0&68\DirectSound\Mixer Defaults\'

I need to find a way of searching for that key within the subbranches of HKEY_CURRENT_CONFIG\System\CurrentControlSet\Enum\PCI\

Thanks in advance.
Avatar of PeterLarsen
PeterLarsen

I don't know whether this is the answer, but if you go through the key : 'HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Enum\PCI' until the key : 'service = sbpci' (or any other unique identifier) appear you then know in which 'VEN_XXX&DEVXXXXXX...' the Acceleration key resides in.
Avatar of bgbennyboy

ASKER

Thanks for that but that still leaves the problem of how to search through a section of the registry for a specific key which I cant do.
Thats not a problem.
Take a look at GetKeyNames and GetValueNames in the helpfile.
/PL
         
ASKER CERTIFIED SOLUTION
Avatar of asymmetric
asymmetric

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Thats fantastic, thank you!