使用services.msc在Windows 2008 R2中用于启动和停止服务的API

问题描述:





这是关于services.msc的查询。在Windows 2003和Windows 2008中,services.msc正在使用"StartService"。和"ControlService"分别启动和停止Windows服务。虽然在Windows 2008 r2中不是这种情况。

通过在windbg中调试services.msc,通过向上述函数添加断点来观察。您能否告诉我在Windows 2008 r2中的services.msc中进行的设计更改是什么以及它用于启动和停止服务的API。



 

谢谢,

Gulshan

Hi,

This is a query regarding services.msc. In windows 2003 and windows 2008, services.msc was using "StartService" and "ControlService" to start and stop a windows service respectively. Whereas this is not the case in windows 2008 r2.
This was observed by debugging services.msc in windbg by adding breakpoints to above functions. Can you please let me know what is the design change done in services.msc in windows 2008 r2 and what API it uses to start and stop services.

 
Thanks,
Gulshan

你好,

根据您的描述,我将此问题移至常规Windows桌面问题论坛以获得更好的支持。感谢您的理解。

According to your description, I move this issue to General Windows Desktop Issues forum for better support. Thanks for your understanding.

问候,