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 : PyUnicode
Name of servicedisplayName : PyUnicode
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 : PyUnicode
name of binary fileloadOrderGroup : PyUnicode
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 : [PyUnicode,...]
sequence of dependency namesacctName : PyUnicode
account name of service, or Nonepassword : PyUnicode
password for service account , or None