There's a typo in the call for CM_Reenumerate_DevNode_Ex in cfgmgr32.dll The attached patch corrects it.