how to stop windows services in driver

Hi,

How can I start/stop a window service in my driver?
Similar with net start or net stop.
Are there any sample codes?

Thank You!

cheers,
vincent

You cannot do this from kernel mode

d


From: xxxxx@lists.osr.com [mailto:xxxxx@lists.osr.com] On Behalf Of vincent
Sent: Monday, May 03, 2004 1:44 AM
To: Windows System Software Devs Interest List
Subject: [ntdev] how to stop windows services in driver

Hi,
?
How can I start/stop a window service in my driver???
Similar with net start or net stop.
Are there any sample codes?
?
Thank You!
?
cheers,
vincent

Questions? First check the Kernel Driver FAQ at http://www.osronline.com/article.cfm?id=256

You are currently subscribed to ntdev as: xxxxx@windows.microsoft.com
To unsubscribe send a blank email to xxxxx@lists.osr.com

Hi vincent,

As far as I know you can not start/stop services from drivers.
But if your driver is dependent on any service you can change the
load order of your driver so that it will get loaded only after the
required service is started.

-Rajesh

-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com]On Behalf Of vincent
Sent: Monday, May 03, 2004 2:14 PM
To: Windows System Software Devs Interest List
Subject: [ntdev] how to stop windows services in driver

Hi,

How can I start/stop a window service in my driver?
Similar with net start or net stop.
Are there any sample codes?

Thank You!

cheers,
vincent

Questions? First check the Kernel Driver FAQ at
http://www.osronline.com/article.cfm?id=256

You are currently subscribed to ntdev as: xxxxx@patni.com
To unsubscribe send a blank email to xxxxx@lists.osr.com