View Single Post
Old 11th September 2004, 23:50   #8
JeronimoColon
Junior Member
 
Join Date: Sep 2004
Location: New York City
Posts: 39
As promised:

Function ScanForNewHW
SetPluginUnload alwaysoff
StrCpy $1 ""

System::Call 'setupapi::CM_Locate_DevNodeA(*i .r0, t r1, i r2) i .r3'
System::Call 'setupapi::CM_Reenumerate_DevNode(i r0, i r4) i .r5'

SetPluginUnload manual
System::Free 0
FunctionEnd

I had some weirdness converting this but thanks to kichik I'm all sorted out.

Also, I have a plugin that does the same thing if your interested.

jc3
JeronimoColon is offline   Reply With Quote