Archived

This topic is now archived and is closed to further replies.

Sandman

Scan for hardware changes under XP

Recommended Posts

Sandman    2210
Does anyone know of a way to tell windows XP to scan for hardware changes programmatically? It usually does this at startup or when you go to Add/Remove hardware, but I need to be able to trigger it through code. I''ve scoured the DDK docs and not found anything. Anyone got any ideas?

Share this post


Link to post
Share on other sites
johnasb    122
Here you go. Download and add devcon.exe to windows directory, then run "Devcon.exe Rescan" from comand line or BAT file, etc.:

http://support.microsoft.com/default.aspx?scid=http://support.microsoft.com:80/support/kb/articles/q311/2/72.asp&NoWebContent=1

Share this post


Link to post
Share on other sites
DrPizza    160
More importantly, look at the XP DDK which has the devcon source code. devcon''s not redistributable which limits its usefulness.

Share this post


Link to post
Share on other sites