阅读:1619回复:0
CreateService的 第十二个参数怎么用?
SC_HANDLE CreateService(
SC_HANDLE hSCManager, // handle to SCM database LPCTSTR lpServiceName, // name of service to start LPCTSTR lpDisplayName, // display name DWORD dwDesiredAccess, // type of access to service DWORD dwServiceType, // type of service DWORD dwStartType, // when to start service DWORD dwErrorControl, // severity of service failure LPCTSTR lpBinaryPathName, // name of binary file LPCTSTR lpLoadOrderGroup, // name of load ordering group LPDWORD lpdwTagId, // tag identifier LPCTSTR lpDependencies, // array of dependency names LPCTSTR lpServiceStartName, // account name LPCTSTR lpPassword // account password ); 看了MSDN。还是不太会。 我需要最高权限。不要NULL, LPCTSTR lpServiceStartName, // account name LPCTSTR lpPassword // account password 这2个参数该如何设置?谢谢了 给个例子吧。万分感谢 |
|