阅读:2145回复:1
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个参数该如何设置?谢谢了 给个例子吧。万分感谢 |
|
沙发#
发布于:2007-02-06 22:34
找到了个答案。。明天看看对不对。。。先贴给大家 看看。
_T("jack") _T("empty") seem like a good start... Note that a password of 0 length is a Really Bad Idea and has a number of seriously nasty security implications...for example, an account logged in with a zero-length password is denied network access in WinXP. |
|