PySC_HANDLE/(PySC_HANDLE, int) = CreateService(scHandle, name
, displayName
, desiredAccess
, serviceType
, startType
, errorControl
, binaryFile
, loadOrderGroup
, bFetchTag
, serviceDeps
, acctName
, password
)
Creates a new service.
Parameters
scHandle : PySC_HANDLE
handle to service control manager databasename : string
Name of servicedisplayName : string
Display namedesiredAccess : int
type of access to serviceserviceType : int
type of servicestartType : int
When/how to start serviceerrorControl : int
severity if service fails to startbinaryFile : string
name of binary fileloadOrderGroup : string
name of load ordering group , or NonebFetchTag : int
Should the tag be fetched and returned? If TRUE, the result is a tuple of (handle, tag), otherwise just handle.serviceDeps : [string,...]
sequence of dependency namesacctName : string
account name of service, or Nonepassword : string
password for service account , or None