win32security.GetKernelObjectSecurity

PySECURITY_DESCRIPTOR = GetKernelObjectSecurity(handle, info )

Obtains specified information about the security of a kernel 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.