Armenian Knowledge Base  

Go Back   Armenian Knowledge Base > Technical sections > Languages, Compilers, Interpreters
Register

Reply
 
LinkBack Thread Tools
Old 30.10.2001, 11:07   #1
Младенец
 
Join Date: 10 2001
Location: Australia
Posts: 3
Downloads: 0
Uploads: 0
Reputation: 0 | 0
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">
Reply With Quote
Old 30.10.2001, 15:31   #2
Moderator
 
acid's Avatar
 
Join Date: 09 2001
Location: South Korea, Gumi
Posts: 7,699
Downloads: 102
Uploads: 34
Blog Entries: 16
Reputation: 561 | 6
Post

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

HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services

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 ]
Reply With Quote
Old 01.11.2001, 16:32   #3
Младенец
 
Join Date: 10 2001
Location: Australia
Posts: 3
Downloads: 0
Uploads: 0
Reputation: 0 | 0
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
Reply With Quote
Sponsored Links
Reply

Thread Tools


На правах рекламы:
реклама

All times are GMT. The time now is 16:25.


Powered by vBulletin® Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.