win32security.GetNamedSecurityInfo

PySECURITY_DESCRIPTOR = GetNamedSecurityInfo(ObjectName, ObjectType , SecurityInfo )

Retrieve security info for an object by name

Parameters

ObjectName : str/unicode

Name of object

ObjectType : int

Value from SE_OBJECT_TYPE enum

SecurityInfo : int

Combination of SECURITY_INFORMATION constants

Comments

Separate owner, group, dacl, and sacl are not returned as they can be easily retrieved from the returned PySECURITY_DESCRIPTOR