Given the Start value of the service is a 2, then yes it is automatically
started by the SCM, unless things go bump in the night and it crashes. In
that case of course no it won’t, but there should be an entry in the event
log to give you some indication of that, and of course you have the option
of writing why to the event log. The service and driver can both write
events to the event log.
Gary G. Little
H (952) 223-1349
C (952) 454-4629
xxxxx@comcast.net
-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of Ged
Sent: Thursday, September 23, 2010 5:13 AM
To: Windows System Software Devs Interest List
Subject: RE: [ntdev] discover if a service has started at boot
I want to know if the service was started automatically by the SCM I have
both a user mode service and a driver so either solution is workable, it
would be preferable to do it in the service though.
Thanks
-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of xxxxx@broadcom.com
Sent: 22 September 2010 19:57
To: Windows System Software Devs Interest List
Subject: RE:[ntdev] discover if a service has started at boot
What you actually want to know? Do you want to know if the service was
started automatically by SCM on manually? Do you want to know if it is a
first start of the service since boot?
The solution depends on whether it is a kernel mode driver or user mode
service.
NTDEV is sponsored by OSR
For our schedule of WDF, WDM, debugging and other seminars visit:
http://www.osr.com/seminars
To unsubscribe, visit the List Server section of OSR Online at
http://www.osronline.com/page.cfm?name=ListServer
NTDEV is sponsored by OSR
For our schedule of WDF, WDM, debugging and other seminars visit:
http://www.osr.com/seminars
To unsubscribe, visit the List Server section of OSR Online at
http://www.osronline.com/page.cfm?name=ListServer