服务项开启程序代码
<br />BOOL ServiceStart(const wchar_t *wcsServiceName)<br />{<br /> SC_HANDLE hSCManager;<br /> SC_HANDLE hService;<br /> BOOL result=FALSE;<br /><br /> hSCManager=OpenSCManagerW(NULL,NULL,SC_MANAGER_CONNECT);<br /> if(hSCManager!=NULL)<br /> {<br />
原创
2010-09-26 15:06:00 ·
267 阅读 ·
1 评论