RE: starting/stopping PCI drivers

xxxxx@Exchange.Microsoft.com said:

If the only place your device is showing up is in the software
environment listing, then maybe you only need to delete the registry
key

Ah, that’s something to try. It makes sense. Here we go…

[long time to reboot…]

Sonofabitch, I just learned something!

In fact, what I did was rename the registry key. When I go into the
\Software Environment\Drivers folder, I see that the first column changed
its name to follow the registry key. So apparently that is how the drivers
are enumerated by the tool.

The description column seems to come from the DisplayName value under
the key. This also makes sense, I guess, as does the ImagePath giving
the value for the “File” column.

I remove the registry key and refresh and it still shows in the \Driver
folder, but with all the fields “not available”. I reboot, and …

[long reboot…]

… it’s now completely gone. So it seems that the PnP manager scans
the registry when it starts, in order to list the drivers. And now I’m
able to reinstall the driver w/ the hardware wizard, and my device
files reappear where the .inf tells them to go.

It apparently takes another reboot to get the driver listed under
\Software Environment\Drivers again.

(Someday, I just know I’m going to see the message:
System shutdown initiated.
Please reboot for change to take effect.)

Anyhow, now I’m seeing my PnP handler test prints.

All this is pretty byzantine. Somebody should write down in a clear and
concise way (and from the perspective of the driver writer, please) all
these things that the PnP manager does, and why.

Anyhow, the pertinent files that affect PnP are:

WIN2000\System32\Drivers\foo.sys
WIN2000\inf\oemXXX.inf
WIN2000\inf\oemXXX.PNF
HKLM\System\CurrentControlSet\Services\foo
… and something in the manager’s head.

Remove the first 4 items (and reboot) and the driver will go away.

Is there a similar summary for exactly what the “update driver” buttons do?

Steve Williams “The woods are lovely, dark and deep.
xxxxx@icarus.com But I have promises to keep,
xxxxx@picturel.com and lines to code before I sleep,
http://www.picturel.com And lines to code before I sleep.”