How to simulate 'Scan for hardware changes'

Hi all:

I want my applications dynamycally show my driver’s changable properties in
Device Manager.

I’ve done this by CM_Locate_DevNode_Ex and CM_Reenumerate_DevNode_Ex. But
sometimes these 2 functions can do nothing. While, if I manually select
‘Scan for hardware changes’ from Device Manager, those settings were shown
in Device Manager properly every time.

Anyone has ideas?

Ray Yang