win32security.GetSecurityInfo

PySECURITY_DESCRIPTOR = GetSecurityInfo(handle, ObjectType , SecurityInfo )

Retrieve security info for an object by handle

Parameters

handle : int/PyHANDLE

Handle to 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