borro04
unread,Oct 25, 2012, 1:12:38 PM10/25/12You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
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.