How to "Refresh" Device Manager by programming

We are talking about: Device Manager->Action->Scan for hardware changes
The following CM APIs should work: