'Returns a tuple of (AccessRights, DefaultAccess), where AccessRights is a sequence of tuples representing
SI_ACCESS structs, containing (guid, access mask, Name, flags). DefaultAccess indicates which of the
AccessRights will be used initially when a new ACE is added (zero based).
Flags can contain SI_ACCESS_SPECIFIC,SI_ACCESS_GENERAL,SI_ACCESS_CONTAINER,SI_ACCESS_PROPERTY,
CONTAINER_INHERIT_ACE,INHERIT_ONLY_ACE,OBJECT_INHERIT_ACE'

def GetAccessRights(self, objecttype, flags):

    if ((objecttype is not None) and (objecttype != IID_NULL)):
        raise NotImplementedError('Object    type    is    not    supported')
    accessrights = [(IID_NULL, win32service.SERVICE_ALL_ACCESS, 'Full    control', SI_ACCESS_GENERAL), (IID_NULL, SERVICE_GENERIC_READ, 'Generic    read', SI_ACCESS_GENERAL), (IID_NULL, SERVICE_GENERIC_WRITE, 'Generic    write', SI_ACCESS_GENERAL), (IID_NULL, SERVICE_GENERIC_EXECUTE, 'Start/Stop/Pause    service', SI_ACCESS_GENERAL), (IID_NULL, READ_CONTROL, 'Read    Permissions', SI_ACCESS_GENERAL), (IID_NULL, WRITE_DAC, 'Change    permissions', SI_ACCESS_GENERAL), (IID_NULL, WRITE_OWNER, 'Change    owner', SI_ACCESS_GENERAL), (IID_NULL, win32con.DELETE, 'Delete    service', SI_ACCESS_GENERAL), (IID_NULL, win32service.SERVICE_START, 'Start    service', SI_ACCESS_SPECIFIC), (IID_NULL, win32service.SERVICE_STOP, 'Stop    service', SI_ACCESS_SPECIFIC), (IID_NULL, win32service.SERVICE_PAUSE_CONTINUE, 'Pause/unpause    service', SI_ACCESS_SPECIFIC), (IID_NULL, win32service.SERVICE_USER_DEFINED_CONTROL, 'Execute    user    defined    operations', SI_ACCESS_SPECIFIC), (IID_NULL, win32service.SERVICE_QUERY_CONFIG, 'Read    configuration', SI_ACCESS_SPECIFIC), (IID_NULL, win32service.SERVICE_CHANGE_CONFIG, 'Change    configuration', SI_ACCESS_SPECIFIC), (IID_NULL, win32service.SERVICE_ENUMERATE_DEPENDENTS, 'List    dependent    services', SI_ACCESS_SPECIFIC), (IID_NULL, win32service.SERVICE_QUERY_STATUS, 'Query    status', SI_ACCESS_SPECIFIC), (IID_NULL, win32service.SERVICE_INTERROGATE, 'Query    status    (immediate)', SI_ACCESS_SPECIFIC)]
    return (accessrights, 0)
