SetSecurityInfo(handle, ObjectType, SecurityInfo, Owner, Group, Dacl, Sacl)
Sets security info for an object by handle
Parameters
handle : int/PyHANDLE
Handle to objectObjectType : int
Value from SE_OBJECT_TYPE enumSecurityInfo : int
Combination of SECURITY_INFORMATION constantsOwner : PySID
Sid to set as owner of object, can be NoneGroup : PySID
Group Sid, can be NoneDacl : PyACL
Discretionary ACL to set for object, can be NoneSacl : PyACL
System Audit ACL to set for object, can be None