![]() | |
| |||||||
| 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 |
![]() |
| | LinkBack | Thread Tools | Display Modes |
| | #1 |
| Младенец Join Date: Oct 2001 Location: Australia
Posts: 3
Rep Power: 0 Reputation:
10 | 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"> |
| | |
| | #2 |
| Administrator Join Date: Sep 2001 Location: South Korea, Gumi
Posts: 7,195
Blog Entries: 15 Rep Power: 10 Reputation:
313 | 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 ] |
| | |
| | #3 |
| Младенец Join Date: Oct 2001 Location: Australia
Posts: 3
Rep Power: 0 Reputation:
10 | 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 |
| | |