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

SetServiceStatus and PnP_No_Pending_Install_Events hang

13 views
Skip to first unread message

borro04

unread,
Oct 25, 2012, 1:12:38 PM10/25/12
to
I am writing a service that used to exist as a cygwin service, but now I want to make it windows centric. I am calling CMP_WaitNoPendingInstallEvents() to ensure that network interfaces are all up. The problem is that CMP_WaitNoPendingInstallEvents is documented to have problems being called in ServiceMain. I have tried moving this function call around in my service, but I can't put it before starting the service because SCM will timeout. Calling it after putting the service in START_PENDING, this function hangs or times out. My service has to run this without timing out before setting the service to RUNNING.
Is there another way to determine if network interfaces are all up?
Can it be called from the service in a way that it will not hang?
The event with this function that hangs is PnP_No_Pending_Install_Events.
0 new messages