Home All Groups Group Topic Archive Search About
Author
17 Oct 2006 6:05 PM
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

Author
17 Oct 2006 11:20 PM
Chris
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/microsoft.public.development.device.drivers/browse_thread/thread/191a96ba565a4043/7423a91958887ed7

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/default.asp?url=/library/en-us/devinst_r/hh/DevInst_r/di-rtns_ab1e54f4-687d-4db2-8799-c33c1e0e3d25.xml.asp

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

Chris

Show quoteHide quote
"Mac" <m**@doc2lan.de> wrote in message
news:ey4gZbh8GHA.4632@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
>
>
>
Author
18 Oct 2006 8:21 AM
Mac
Hi Chris,

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

Regards,

Mac


Show quoteHide quote
"Chris" <consult_Chris@nospam.yahoo.com> wrote in message
news:%23JIonLk8GHA.4084@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/microsoft.public.development.device.drivers/browse_thread/thread/191a96ba565a4043/7423a91958887ed7
>
> 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/default.asp?url=/library/en-us/devinst_r/hh/DevInst_r/di-rtns_ab1e54f4-687d-4db2-8799-c33c1e0e3d25.xml.asp
>
> I hope this is helpful as I'm just taking a guess here.
>
> Chris
>
> "Mac" <m**@doc2lan.de> wrote in message
> news:ey4gZbh8GHA.4632@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
>>
>>
>>
>
>