Re: Question regarding removal of Windows driver service

Tech-Archive recommends: Speed Up your PC by fixing your registry



Look at devcon example from DDK how to disable / uninstall driver ( that in
C and use SetupDi... set of functions of device manager )
Arkady
"Martin Jakobsen" <futterama@xxxxxxxxx> wrote in message
news:5e1c6a6a.0504192354.a483412@xxxxxxxxxxxxxxxxxxxxx
> Hi All,
>
> I'm not sure this is the place for my question, but I'll give it at
> try:
>
> I'm a Delphi programmer, and I'm developing a program that installs
> and removes the driver "giveio.sys". I'm familiar with the API
> functions OpenSCManager, CreateService, StartService, OpenService,
> ControlService, DeleteService, CloseServiceHandle ect.
>
> I'm aware that when I install a service, it will be stored in the
> registry at HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services and
> that it is removed from the registry as I remove the service.
>
> My problem is that in the Device Manager -> Non-Plug and Play Drivers
> the driver keeps appearing even when the driver file is deleted, the
> service is removed through the Service Control Manager, and I have
> rebooted my machine. The driver is not functioning of course and is
> disabled.
>
> I would like to know how my program kan remove this entry in Device
> Manager - I like to clean up thorougly when programming :-)
>
> I've noticed that the driver name appears in the registry at these
> three locations:
>
> HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Enum\Root\LEGACY_GIVEIO
> HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Enum\Root\LEGACY_GIVEIO
> HKEY_LOCAL_MACHINE\SYSTEM\ControlSet002\Enum\Root\LEGACY_GIVEIO
>
> When I use the Device Manager to manually Uninstall giveio, the two
> first entrys is removed but giveio still appear in
> HKEY_LOCAL_MACHINE\SYSTEM\ControlSet002\Enum\Root\LEGACY_GIVEIO and
> this entry cannot be deleted manually (by me, I don't know if a
> program can do it).
>
>
> Help! :-)
>
>
> Regards,
> Martin


.



Relevant Pages

  • Re: Problem with KMDF 1.1 driver installation
    ... is it possible to post it here so I can create this entry ... Using the RegMon application I have captured the accesses to registry ... during my Wdf driver installation and found what should be the correct ... dll when it can't start wdf loader correctly. ...
    (microsoft.public.development.device.drivers)
  • Re: LEGACY_DRIVER question
    ... does the driver actually start? ... Again even if I start my driver that entry doesnt appear in registry and I ... > driver in non plug and play section in device manager. ...
    (microsoft.public.development.device.drivers)
  • Re: Question regarding removal of Windows driver service
    ... deleting the driver and the service entry are not wise on current systems. ... > ControlService, DeleteService, CloseServiceHandle ect. ... > that it is removed from the registry as I remove the service. ...
    (microsoft.public.win32.programmer.kernel)
  • Re: Fail to load driver in the PXA270 platform
    ... That's *not* an empty entry. ... afraid that you'll have to figure out what's wrong with your own driver. ... Index/Order value of registry, ... i mean an "empty " Active driver key. ...
    (microsoft.public.windowsce.embedded)
  • Re: Kernel mode driver wont start
    ... I'm not sure what you mean by 'base name' of driver (please elaborate if ... I've exported the registry key entry below. ... It is not a PNP ...
    (microsoft.public.development.device.drivers)