473,399 Members | 3,302 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,399 software developers and data experts.

Uninstall a device

Mac
Hi folks,

As you all know, in DeviceManager you select a Device using right Mouseclick
and select Uninstall to remove this Device (no matter wich kind of device)..
My question is: Can someone give me a WORKING example on how to uninstall a
existing device from a Windows XP,2K or 2K3 Platform.

VB and VB.NET Sources welcome ;-)

--
Regards,

Mac

Oct 17 '06 #1
2 4637
Hi Mac,

I think you should be looking at the SetupDiRemoveDevice function that lives
in setupapi.dll.

Here is the newsgroup post, with code in C++, that led me there:
http://groups.google.com/group/micro...23a91958887ed7

The Declaration should look something like this:

Private Declare Function SetupDiRemoveDevice Lib "setupapi.dll" ( _
ByRef DeviceInfoSet As Int32, _
ByRef DeviceInfoData As PSP_DEVINFO_DATA) As Int32

As far as the PSP_DEVINFO_DATA goes I'm not really sure

MSDN link
http://msdn.microsoft.com/library/de...0e3d25.xml.asp

I hope this is helpful as I'm just taking a guess here.

Chris

"Mac" <ma*@doc2lan.dewrote in message
news:ey**************@TK2MSFTNGP02.phx.gbl...
Hi folks,

As you all know, in DeviceManager you select a Device using right
Mouseclick
and select Uninstall to remove this Device (no matter wich kind of
device)..
My question is: Can someone give me a WORKING example on how to uninstall
a
existing device from a Windows XP,2K or 2K3 Platform.

VB and VB.NET Sources welcome ;-)

--
Regards,

Mac

Oct 17 '06 #2
Mac
Hi Chris,

thanks for your submission, have you tried this link:
http://support.microsoft.com/kb/311272/EN-US/?

Regards,

Mac
"Chris" <co***********@nospam.yahoo.comwrote in message
news:%2****************@TK2MSFTNGP05.phx.gbl...
Hi Mac,

I think you should be looking at the SetupDiRemoveDevice function that
lives in setupapi.dll.

Here is the newsgroup post, with code in C++, that led me there:
http://groups.google.com/group/micro...23a91958887ed7

The Declaration should look something like this:

Private Declare Function SetupDiRemoveDevice Lib "setupapi.dll" ( _
ByRef DeviceInfoSet As Int32, _
ByRef DeviceInfoData As PSP_DEVINFO_DATA) As Int32

As far as the PSP_DEVINFO_DATA goes I'm not really sure

MSDN link
http://msdn.microsoft.com/library/de...0e3d25.xml.asp

I hope this is helpful as I'm just taking a guess here.

Chris

"Mac" <ma*@doc2lan.dewrote in message
news:ey**************@TK2MSFTNGP02.phx.gbl...
>Hi folks,

As you all know, in DeviceManager you select a Device using right
Mouseclick
and select Uninstall to remove this Device (no matter wich kind of
device)..
My question is: Can someone give me a WORKING example on how to uninstall
a
existing device from a Windows XP,2K or 2K3 Platform.

VB and VB.NET Sources welcome ;-)

--
Regards,

Mac


Oct 18 '06 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

6
by: Matt Frame | last post by:
I wrote a small assembly to test the process of placing it into the Global Assembly Cache but now I cannot remove it. When I hi-light and click delete I get the following: Assembly 'Assembly...
5
by: Leslie Lim | last post by:
I had link my 4 of workstations to server with MySql. 1 pc of my pc can run a software which can update MsSql perfectly but not others(3 failed). I tried to add System Dsn data source for Control...
2
by: Dave A | last post by:
I have an application that runs in the system tray (taskbar notification area) and it runs at startup. Occasionally I need to release a new version. I have created a deployment project in .Net. ...
0
by: Fan Ruo Xin | last post by:
I installed Stinger in my PC (w2k). I need to do a quick compare between DB2 OLAP server and DB2 Cube Views. And I only found DB2 Cube Views version8.1 trial code from IBM website. I didn't want to...
9
by: VJ | last post by:
I am deploying a Package having applications developed using VB.NET and VS.NET 2003. I am using the Packaging feature provided with the VisualStudio. I can use the package to creates shortcuts for...
2
by: WWengert | last post by:
I am developing a Windows application using VS2005 Pro (VB). The solution includes a setup project. I sent the setup files to a tester and he installed and used the program successfully. I then...
0
by: Nattydreadlock | last post by:
Hello, I'm having some problems installing Visual Studio 2005. I'll briefly explain what's the history of the problem here. First I installed VS 2005 beta 2. I uninstalled it later via the...
2
by: =?Utf-8?B?ZnJlZGR5?= | last post by:
I would like to uninstall app form both local and remote computers without the user knowing what is going on. I have admin right to all the computers so this is not a problem. Can this be done? ...
1
by: Luke | last post by:
Hey all, i'm currently working on a project for our IT group. what this program does is lists all the installed programs on the remote machine for the admin. what i'm trying to add is...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.