Edit the Enum Section of the registry
-
Hi all, I'm developing a filter driver for an audio device and for installation, i'm using and custom made application instead of an inf. For installing the filter driver, I need to insert the service name into the HKLM\CurrentControlSet\Enum\\\. But as i understand, this is a protected area of windows registry and needs permission to be added for the current user. How do i do this in my program? RegOpenKeyEx() fails opening this key. Something like this has been done in an application i ran across a couple of weeks ago (cant seem to find it right now... i think it was from numega). Is there any other suggestions on installing the filter driver? thank you. -Tareq
-
Hi all, I'm developing a filter driver for an audio device and for installation, i'm using and custom made application instead of an inf. For installing the filter driver, I need to insert the service name into the HKLM\CurrentControlSet\Enum\\\. But as i understand, this is a protected area of windows registry and needs permission to be added for the current user. How do i do this in my program? RegOpenKeyEx() fails opening this key. Something like this has been done in an application i ran across a couple of weeks ago (cant seem to find it right now... i think it was from numega). Is there any other suggestions on installing the filter driver? thank you. -Tareq
Have you tried installing the filter driver by using an .inf file ? Why can't you use the .inf file ? I believe you can't write to this area of the registry directly, but your application could try calling
RegSrv32
to register the filter driver from it's DLL when it is started, and removing it upon exit ? Leaving it there is also an option, and you might write a setup program that registers the filter driver if it is not yet registered. And remove it when the application is removed from a system. If you find the name of the application you mentioned, post it here as well. -Antti Keskinen ---------------------------------------------- The definition of impossible is strictly dependant on what we think is possible. -
Have you tried installing the filter driver by using an .inf file ? Why can't you use the .inf file ? I believe you can't write to this area of the registry directly, but your application could try calling
RegSrv32
to register the filter driver from it's DLL when it is started, and removing it upon exit ? Leaving it there is also an option, and you might write a setup program that registers the filter driver if it is not yet registered. And remove it when the application is removed from a system. If you find the name of the application you mentioned, post it here as well. -Antti Keskinen ---------------------------------------------- The definition of impossible is strictly dependant on what we think is possible.Found this source code that gives you the key for the enum section or subsections. Now looking for a way to be able to write there. http://www.sysinternals.com/ntw2k/source/accessenum.shtml[^] -Tareq
-
Have you tried installing the filter driver by using an .inf file ? Why can't you use the .inf file ? I believe you can't write to this area of the registry directly, but your application could try calling
RegSrv32
to register the filter driver from it's DLL when it is started, and removing it upon exit ? Leaving it there is also an option, and you might write a setup program that registers the filter driver if it is not yet registered. And remove it when the application is removed from a system. If you find the name of the application you mentioned, post it here as well. -Antti Keskinen ---------------------------------------------- The definition of impossible is strictly dependant on what we think is possible.Got it to work using SetupDiSetDeviceRegistryProperty() ... didnt know of this. -Tareq