• Advertisement

Archived

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

Scan for hardware changes under XP

This topic is 5099 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

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
Advertisement
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
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

  • Advertisement