RE: CMP_WaitNoPendingInstallEvents

This function is not documented yet. It will be documented soon. Here is the
scoop:

DWORD
CMP_WaitNoPendingInstallEvents(
IN DWORD dwTimeout
);

CMP_WaitNoPendingInstallEvents waits until the pnp queue of devices waiting
to be installed has emptied, or for the timeout specified. The autorun
program would call this API and if there are currently devices installing on
the system the autorun program would just exit without displaying any UI.
So it doesn’t suppress the autorun program, the autorun program needs to
suppress itself.

In Whistler the system would suppress the autorun program automatically when
the Found New Hardware wizard is up…but the OS autorun suppression may not
work 100% of the time (don’t ask me why), so autorun programs should call
this CMP_WaitNoPendingInstallEvents and suppress themselves.

Please note this is just a preliminary information. Function name or
behavior might change by the time it gets documented. So use at your own
risk.

-Eliyas

-----Original Message-----
From: Don Burn [mailto:xxxxx@acm.org]
Sent: Wednesday, November 01, 2000 4:49 AM
To: NT Developers Interest List
Subject: [ntdev] CMP_WaitNoPendingInstallEvents

At WinHEC 2000 there was a presentation: “Device Installation For Windows(r)
2000”,
that indicated one should use CMP_WaitNoPendingInstallEvents to suppress
autorun
when a CD is inserted for “Found New Hardware” wizard. My problem is I have
not been able to find this thing at all, is there a way to determine that
the installer is running
so as to appropriately suppress autorun?

Don Burn


You are currently subscribed to ntdev as: xxxxx@microsoft.com
To unsubscribe send a blank email to $subst(‘Email.Unsub’)