Change driver service name

Hello all,

Does anyone know if there is any way to modify the service name of a driver after the driver is already installed?

Thanks

xxxxx@gmail.com wrote:

Does anyone know if there is any way to modify the service name of a driver after the driver is already installed?

That question could mean two things.

You can change the service that a driver uses just by tweaking its entry
in the Enum tree registry. I have a case where I do that, for a video
capture device where I have one AVStream driver and one custom driver.

You can change the name of a service by renaming its key in the Services
entry, as long as you also change the Enum key for any drivers that use it.

On the whole, it might be easier to uninstall and reinstall.


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

I think this will solve my problem. But where Can I find this key on registry?

It may not. It may make your problem worse. If you explain your problem perhaps we can suggest a better solution.

-p

-----Original Message-----
From: xxxxx@lists.osr.com [mailto:xxxxx@lists.osr.com] On Behalf Of xxxxx@gmail.com
Sent: Wednesday, October 19, 2011 11:30 AM
To: Windows System Software Devs Interest List
Subject: RE:[ntdev] Change driver service name

I think this will solve my problem. But where Can I find this key on registry?


NTDEV is sponsored by OSR

For our schedule of WDF, WDM, debugging and other seminars visit:
http://www.osr.com/seminars

To unsubscribe, visit the List Server section of OSR Online at http://www.osronline.com/page.cfm?name=ListServer

xxxxx@gmail.com wrote:

I think this will solve my problem. But where Can I find this key on registry?

Well, I presented two different options there…

The two trees I mentioned are both in
HKEY_LOCAL_MACHINE\System\CurrentControlSet, where virtually everything
driver-related lives. Each device has an entry in the Enum key equal to
its PnP device ID. And I assume you’ve poked through the Services key
before.


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

I need to create an image of windows 7, and add the drivers for some NICs. To add the image I apply usind dd in HD of computer that has the network card, for windows install the driver, and I extract the image again.

But now I need to add another network card, but the service has the same name. So I wanted to rename the old service, so when windows 7 will install the driver does not overwrite the old service.

wrote in message news:xxxxx@ntdev…
> I need to create an image of windows 7, and add the drivers for some NICs.
> To add the image I apply usind dd in HD of computer that has the network
> card, for windows install the driver, and I extract the image again.
>
> But now I need to add another network card, but the service has the same
> name. So I wanted to rename the old service, so when windows 7 will
> install the driver does not overwrite the old service.
>

Several devices can share same driver & service, this isn’t a problem by
itself.
When OS image is prepared, isn’t it made so that PnP devices will be
detected and installed on the target machine?

– pa