def get_inheritance(obj_name, obj_type='file'):
 dacl = Dacl(obj_name, obj_type)
 inherited = win32security.INHERITED_ACE
 for i in range(0, dacl.dacl.GetAceCount()):
  ace = dacl.dacl.GetAce(i)
  if ((ace[0][1] & inherited) == inherited):
   return True
 return False

def get_inheritance ( obj_name , obj_type = 'file' ) : dacl = Dacl ( obj_name , obj_type ) inherited = win32security . INHERITED_ACE for i in range ( 0 , dacl . dacl . GetAceCount ( ) ) : ace = dacl . dacl . GetAce ( i ) if ( ( ace [ 0 ] [ 1 ] & inherited ) == inherited ) : return True return False
get an objects inheritance .