Skip to content
⌘ NSIS Forum Archive

CM_Reenumerate_DevNode ?

2 posts

billym#

CM_Reenumerate_DevNode ?

I am trying to figure out how to use this api in nsis to force win9x machines to scan/rescan for new hardware. An assistance would be greatly appreciated.
kichik#
#define CM_REENUMERATE_NORMAL                   0x00000000
!define CM_REENUMERATE_SYNCHRONOUS 1
!define CM_REENUMERATE_RETRY_INSTALLATION 2
!define CM_REENUMERATE_ASYNCHRONOUS 4
!define CM_REENUMERATE_BITS 7
System::Call 'CFGMGR32::CM_Reenumerate_DevNode(i 0, i ${CM_REENUMERATE_SYNCHRONOUS})'
You'd probably need to replace the 0 with a real DEVNODE handle.