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

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

楼主#
更多 发布于:2007-02-06 16:58
  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个参数该如何设置?谢谢了
给个例子吧。万分感谢
游客

返回顶部