AKB Forums

Go Back   AKB Forums > Technical sections > Languages, Compilers and Interpreters
Home Register Blogs FAQ Members List Calendar Downloads Arcade Mark Forums Read

Languages, Compilers and Interpreters C,C++,C#,.NET,Java,PHP,Perl,SQL and more

Troubles when posting message? Click here! :: Проблемы с отправлением сообщения? Нажмите сюда!

Reply
 
LinkBack Thread Tools Display Modes
Old Oct 30, 2001, 10:07   #1
Младенец
 
Join Date: Oct 2001
Location: Australia
Posts: 3
Rep Power: 0
Reputation: 10
Cool Adding and removing devices in code???

Does anyone know how to remove a device like you do in device manager in code.<BR>And also control the Add hardware wizard in code??

Thanks,

Jai <IMG SRC="tongue.gif" border="0">
Jai is offline   Reply With Quote Quote selected
Old Oct 30, 2001, 14:31   #2
Administrator
 
acid's Avatar
 
Join Date: Sep 2001
Location: South Korea, Gumi
Posts: 7,195
Blog Entries: 15
Rep Power: 10
Reputation: 313
Post

Well you have to find your device in the following registry key:

HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Servic es

then delete appropriate key. And not sure what you mean by "control the Add hardware wizard"...

Yea, and keep in mind to restart computer after deletion.

acid

[ October 30, 2001: Message edited by: acid ]
__________________
Chat with acid


acid is offline   Reply With Quote Quote selected
Old Nov 1, 2001, 15:32   #3
Младенец
 
Join Date: Oct 2001
Location: Australia
Posts: 3
Rep Power: 0
Reputation: 10
Smile

Thanks for that tip.

About the Hardware wizard. I have a hardware decoder that locks up in memory and the only way I can use it again without rebooting is to remove it from control panel and then add it again with the "Add Hardware Wizard". I would like to write a routine that does this automatically if it locks up in my application but I can't find any info on enumerating the system to see if there is any new hardware present.

If you have any ideas let me know.

Thanks,

Jai
Jai is offline   Reply With Quote Quote selected
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT. The time now is 13:03.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
This board was founded on September 29, 2001
Powered by Viper Internet

Affordable Web Hosting | ParevNet

Buy text link