Check for new hardware programatically



Hi,

I'd like to be able to do the following using code (in Delphi 5
Standard, WinXP Pro):

Open Device Manager
Select a type of hardware (eg. Modems)
Press the rescan hardware button

I don't want to necessarily show the device manager window etc, I'd
just like code that has the same net effect.

TIA,
- QS Computing.

.