Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Find out when the re-enumeration was complete and successful

0 views
Skip to first unread message

Vijay P

unread,
Oct 3, 2002, 6:27:19 PM10/3/02
to
Hi,

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


Walter Oney

unread,
Oct 4, 2002, 4:49:11 AM10/4/02
to

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

Jim Cavalaris [MS]

unread,
Oct 4, 2002, 6:51:24 AM10/4/02
to
to specify synchronous re-enumeration for CM_Reenumerate_DevNode_Ex,
include the CM_REENUMERATE_SYNCHRONOUS flag.

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...

Vijay P

unread,
Oct 4, 2002, 1:09:39 PM10/4/02
to
Thank you Jim and Walter.

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...

Maxim S. Shatskih

unread,
Oct 4, 2002, 2:17:49 PM10/4/02
to
> 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

Try CMP_WaitNoPendingInstallEvents

Max

0 new messages