Inf only driver which adds registry keys

Hello All,

Can we create a inf only driver which creates the registry key as below Registry \HKLM\System\CurrentControlSet\Services\USBHUB\hubg\DisableOnSoftRemove and sets the value for it.

And this registry key must be created for each instance of the USBHUB getting created.

Reason why i need this is : There is a work around to fix a hardware issue which is getting fixed my MS driver.

regards,
Jagadish

This KB article indicates that this flag is global, so you should presumably
only need to create it once:

https://support.microsoft.com/en-us/help/2401954/usb-port-remains-active-for-disabled-or-safely-removed-usb-device

Or do you need to also set the value under “usbflags\vvvvpppprrrr” for some
reason?

-scott
OSR
@OSRDrivers

wrote in message news:xxxxx@ntdev…

Hello All,

Can we create a inf only driver which creates the registry key as below
Registry
\HKLM\System\CurrentControlSet\Services\USBHUB\hubg\DisableOnSoftRemove and
sets the value for it.

And this registry key must be created for each instance of the USBHUB
getting created.

Reason why i need this is : There is a work around to fix a hardware issue
which is getting fixed my MS driver.

regards,
Jagadish

xxxxx@gmail.com wrote:

Can we create a inf only driver which creates the registry key as below Registry \HKLM\System\CurrentControlSet\Services\USBHUB\hubg\DisableOnSoftRemove and sets the value for it.

And this registry key must be created for each instance of the USBHUB getting created.

The Services key is for the driver, not for each device. There is only
one, no matter how many instances of USBHUB there are.

Why would you use an INF? You can use a trivial regedit script or
“reg.exe” command line to set this.


Tim Roberts, xxxxx@probo.com
Providenza & Boekelheide, Inc.