Groups | Search | Server Info | Login | Register


Groups > comp.os.ms-windows.programmer.nt.kernel-mode > #11

Implementing device uninstall functionality?

From Stefan Kuhr <kustt110@gmx.li>
Newsgroups comp.os.ms-windows.programmer.nt.kernel-mode
Subject Implementing device uninstall functionality?
Date 2011-05-20 16:45 +0200
Organization albasani.net
Message-ID <ir5urd$rk7$1@news.albasani.net> (permalink)

Show all headers | View raw


Hello everyone,

how can I implement the device uninstall functionality that came with 
Vista? I am talking about the "Uninstall" entry in the context menu 
which appears if you right-click on a device node in the device manager 
tree control that can be started from the "System" Control Panel applet.

I have found the DiUninstallDevice API, but that seems to be available 
on Win 7 and later, but the functionality I described above can already 
be seen on Vista, so I assume there is some different API or bunch of 
APIs. Also, the functionality I described above optionally allows for 
drivers to be removed from the system, and DiUninstallDevice has no 
parameters for this. So which APIs (assumingly from setupapi or 
cfgmgr32) are involved in implementing this? Any sample code somewhere?

Thanks,

-- 
Stefan

Back to comp.os.ms-windows.programmer.nt.kernel-mode | Previous | NextNext in thread | Find similar


Thread

Implementing device uninstall functionality? Stefan Kuhr <kustt110@gmx.li> - 2011-05-20 16:45 +0200
  Re: Implementing device uninstall functionality? "Don Burn" <burn@windrvr.com> - 2011-05-20 14:53 +0000
    Re: Implementing device uninstall functionality? Stefan Kuhr <kustt110@gmx.li> - 2011-05-20 17:06 +0200

csiph-web