Question regarding removal of Windows driver service



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: Changing the drive letter of CDROM drive
    ... In Device Manager there is an icon that says PCI ... I tried all the driver installs, ... The only card plugged into a PCI slot ...
    (microsoft.public.win2000.general)
  • Re: Activesync 3.7.1 Problem
    ... XP automatically installs the USB device, ... > replace it on the cradle several times I get a connection, ... > force the driver? ... Open Device Manager ...
    (microsoft.public.pocketpc.activesync)
  • RE: deleted wireless........
    ... Have you tried scanning for new hardware in the Device ... question marks in Device Manager? ... Most computer companies send a CD with all the driver ... installs on it along with the computer. ...
    (microsoft.public.windowsxp.network_web)
  • doubt in device manager entry for filter driver
    ... In disk drives section of the device manager I dont see the entry for my ... filter driver whereas I see the entry in SCSI and RAID controllers section.I ...
    (microsoft.public.development.device.drivers)
  • Re: Changing the drive letter of CDROM drive
    ... In Device Manager there is an icon that says PCI ... I tried all the driver installs, ... The only card plugged into a PCI slot ...
    (microsoft.public.win2000.general)