makefriend8
驱动小牛
驱动小牛
  • 注册日期2003-08-01
  • 最后登录2014-06-27
  • 粉丝0
  • 关注0
  • 积分84分
  • 威望111点
  • 贡献值0点
  • 好评度9点
  • 原创分0分
  • 专家分0分
阅读:2137回复:1

CreateService的 第十二个参数怎么用?

楼主#
更多 发布于:2007-02-06 16:57
  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个参数该如何设置?谢谢了
给个例子吧。万分感谢
makefriend8
驱动小牛
驱动小牛
  • 注册日期2003-08-01
  • 最后登录2014-06-27
  • 粉丝0
  • 关注0
  • 积分84分
  • 威望111点
  • 贡献值0点
  • 好评度9点
  • 原创分0分
  • 专家分0分
沙发#
发布于: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.
游客

返回顶部