parameters: (self, requestedinfo, bdefault)
docstring: Requests the existing permissions for object
docstring_summary: Requests the existing permissions for object
docstring_tokens: Requests the existing permissions for object
function: def GetSecurity(self, requestedinfo, bdefault):
          """Requests the existing permissions for object"""
          if bdefault:
              ## This is invoked if the 'Default' button is pressed (only present if SI_RESET is passed
              ## with the flags in GetObjectInfo). Passing an empty SD with a NULL Dacl
              ##  should cause inherited ACL from parent dir or default dacl from user's token to be used
              return win32security.SECURITY_DESCRIPTOR()
          else:
              ## GetFileSecurity sometimes fails to return flags indicating that an ACE is inherited
              return win32security.GetNamedSecurityInfo(
                  self.FileName, win32security.SE_FILE_OBJECT, requestedinfo
              )
function_tokens: def GetSecurity ( self , requestedinfo , bdefault ) : if bdefault : ## This is invoked if the 'Default' button is pressed (only present if SI_RESET is passed ## with the flags in GetObjectInfo). Passing an empty SD with a NULL Dacl ##  should cause inherited ACL from parent dir or default dacl from user's token to be used return win32security . SECURITY_DESCRIPTOR ( ) else : ## GetFileSecurity sometimes fails to return flags indicating that an ACE is inherited return win32security . GetNamedSecurityInfo ( self . FileName , win32security . SE_FILE_OBJECT , requestedinfo )