win32security.GetUserObjectSecurity

PySECURITY_DESCRIPTOR = GetUserObjectSecurity(handle, info )

Obtains specified information about the security of a user object. The information obtained is constrained by the caller's access rights and privileges.

Parameters

handle : PyHANDLE

The handle to the object

info=OWNER_SECURITY_INFORMATION | GROUP_SECURITY_INFORMATION | DACL_SECURITY_INFORMATION | SACL_SECURITY_INFORMATION : int

Flags that specify the information requested.