win32service.SetServiceObjectSecurity

SetServiceObjectSecurity(Handle, SecurityInformation, SecurityDescriptor)

Set the security descriptor for a service

Parameters

Handle : PySC_HANDLE

Service handle

SecurityInformation : int

Type of infomation to set, combination of values from SECURITY_INFORMATION enum

SecurityDescriptor : PySECURITY_DESCRIPTOR

PySECURITY_DESCRIPTOR containing infomation to set