Prev Previous Post   Next Post Next

installing driver "FROM" a Service during startup

Posted: 11-01-2004, 04:34 PM
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?



Reply With Quote

Responses to "installing driver "FROM" a Service during startup"

 
LinkBack Thread Tools Display Modes
 


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


Similar Threads
Thread Thread Starter Forum Replies Last Post
Service startup fails with "Access Denied" after Win2K3 domain joi srshowers Windows Vista Networking & Sharing 11 09-06-2007 03:52 PM
after install, vista con't startup "device or hardware error" viper Windows Vista File Management 1 06-27-2006 03:04 AM
TD Error: 1004: Invalid resource: "<File(819):"%17%","machine.inf">": Juergen Striegel Windows XP Embedded 2 11-28-2003 12:20 PM
"Start" "Program" "Menu" list is empty Pete Windows XP Basics 2 07-10-2003 11:42 PM
Do I need tasks "services", "lsass" and "svchost" to keep running?? Pankaj Dhingra Windows XP Performance & Maintenance 1 07-02-2003 02:55 AM