G
Guest
Guest
Archived from groups: microsoft.public.development.device.drivers,microsoft.public.win32.programmer.kernel,microsoft.public.windowsxp.device_driver.dev (More info?)
Calling OpenSCManager() to install a driver from a service that is
automatially starting during system start appears to "block" after the SCM
has determined that the Service has hung. Why is this? What can I do to
install a driver at service * system start time.
DETAILS:
I have a service that is automatically started on system startup. During
service start it installs and creates a driver. This works fine starting and
stopping the driver using the MCC Service manager. However, it "blocks"
during system startup but does load successfully -- placing a number of
eventlog entries in the Service I see:
Service starting (time x)
Service ready to call OpenSCManager() to load driver (time x+1 second)
SCM reporting Service "Hung" (time x+10 seconds)
Service finishes call to OpenSCManager() and successfully loads driver
(time x + 11seconds to 1 minute!!!)
Service started
When starting under MCC Service manager it starts in a second or two. Under
system start the Service components all start very quickly, except the call
to OpenSCManager does not complete until the SCM loading the Service
declares the Service Hung. What gives?
Calling OpenSCManager() to install a driver from a service that is
automatially starting during system start appears to "block" after the SCM
has determined that the Service has hung. Why is this? What can I do to
install a driver at service * system start time.
DETAILS:
I have a service that is automatically started on system startup. During
service start it installs and creates a driver. This works fine starting and
stopping the driver using the MCC Service manager. However, it "blocks"
during system startup but does load successfully -- placing a number of
eventlog entries in the Service I see:
Service starting (time x)
Service ready to call OpenSCManager() to load driver (time x+1 second)
SCM reporting Service "Hung" (time x+10 seconds)
Service finishes call to OpenSCManager() and successfully loads driver
(time x + 11seconds to 1 minute!!!)
Service started
When starting under MCC Service manager it starts in a second or two. Under
system start the Service components all start very quickly, except the call
to OpenSCManager does not complete until the SCM loading the Service
declares the Service Hung. What gives?