Beispiel #1
0
 def MapGeneric(self, guid, aceflags, mask):
     """ Converts generic access rights to specific rights.  This implementation uses standard file system rights,
         but you can map them any way that suits your application.
     """
     return win32security.MapGenericMask(
         mask, (FILE_GENERIC_READ, FILE_GENERIC_WRITE, FILE_GENERIC_EXECUTE,
                FILE_ALL_ACCESS))
 def MapGeneric(self, guid, aceflags, mask):
     """Converts generic access rights to specific rights."""
     return win32security.MapGenericMask(
         mask,
         (
             SERVICE_GENERIC_READ,
             SERVICE_GENERIC_WRITE,
             SERVICE_GENERIC_EXECUTE,
             win32service.SERVICE_ALL_ACCESS,
         ),
     )