Tech Support > Microsoft Windows > Drivers > how to install a Device filter driver by editing the registry
how to install a Device filter driver by editing the registry
Posted by Steve on September 8th, 2007


Hi all,

I have a question:
Is there any way to install a device filter driver by editing the registry?

I want to install a device filter driver for usb audio class by editing the
registry,

But in windows xp,
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Enum\U SB\Vid_04fc&Pid_522b&MI_02\6&31241532&0&0002] can not be edited.
Meanwhile when install a class filter driver, we can edit the
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Class].

Is there another key in registry can be edited to install a device filter
driver?
Any suggestion will be very appreciated.

Thanks in advance.







Posted by Don Burn on September 8th, 2007


Is this for a test or for production? You can edit the Enum keys, but it
should not be done for a production environment since these are really
expected to be under the control of the kernel. For production use the
Setup APIs and an INF.

To edit the key in RegEdt32 under the Edit menu is a Permissions option,
select this and change the permissions so you can edit the key. Also, note
on Vista be sure to be running as Administrator.


--
Don Burn (MVP, Windows DDK)
Windows 2k/XP/2k3 Filesystem and Driver Consulting
Website: http://www.windrvr.com
Blog: http://msmvps.com/blogs/WinDrvr
Remove StopSpam to reply

"Steve" <Steve@discussions.microsoft.com> wrote in message
newsAA22467-66B1-4D60-80BA-61958FBF5F0F@microsoft.com...


Posted by Tim Roberts on September 9th, 2007


Steve <Steve@discussions.microsoft.com> wrote:
SetupDiSetDeviceRegistryProperty can write to this key. Be careful to use
SetupDiGetDeviceRegistryProperty to fetch the old value and append yourself
to the list. You should also make sure you aren't in the list already.
--
Tim Roberts, timr@probo.com
Providenza & Boekelheide, Inc.