I am developing an install utility on Win2000 for installation( including
updating registry )
of all the devices/boards in the system.
I use "CM_Reenumerate_DevNode_Ex" function enumerating devices from the root
device node.
Now i want to find out when the enumeration was complete..There might be
only one board
in the system..OR 10 boards in the system..therefore
enumeration time depends on the number of boards present in the system.
Is there any way of knowing when the enumeration was complete & all the
devices were found.
Vijay
It seems to me that there's a "synchronous" flag for this call that's
supposed to cause it to return only after the enumeration is complete.
--
Walter Oney, Consulting and Training
Basic and Advanced Driver Programming Seminars
Now teaming with John Hyde for USB Device Engineering Seminars
Check out our schedule at http://www.oneysoft.com
CM_Reenumerate_DevNode_Ex:
http://msdn.microsoft.com/library/en-us/install/hh/install/cfgmgrfn_3s6q.asp
note a few important details here: synchronous re-enumeration implies only
that devices present in the device subtree specified at the time of the call
will have been queried for updated bus relations information (re-enumerated)
by the time the call returns.
it does not imply that any new devices that may have been found during the
re-enumeration will have been installed or started. consider that for some
devices a matching driver may not have been found (in which case they may
never be installed or started), - or - perhaps the installation is waiting for a
user action to complete.
once a device is started, it's queried for it's own bus relations (outside of the
original synchronous re-enumeration request), and may enumerate new
child devices to be installed, started, and enumerated.
hope this helps,
jim.
--
This posting is provided "AS IS" with no warranties, and confers no rights.
"Walter Oney" <walt...@oneysoft.com> wrote in message news:3D9D5607...@oneysoft.com...
I have an old DDK installed on my machine, which does not mention the
details abt. the flags
( CM_Reenumerate_DevNode_Ex(
IN DEVINST dnDevInst,
IN ULONG ulFlags, // ulFlags not used.
IN HMACHINE hMachine
);
"Jim Cavalaris [MS]" <jam...@online.microsoft.com> wrote in message
news:3d9d72b0$1...@news.microsoft.com...
Try CMP_WaitNoPendingInstallEvents
Max