code: def get_active_services():
          
          with win32.OpenSCManager(
              dwDesiredAccess = win32.SC_MANAGER_ENUMERATE_SERVICE
          ) as hSCManager:
              return [ entry for entry in win32.EnumServicesStatusEx(hSCManager,
                          dwServiceType  = win32.SERVICE_WIN32,
                          dwServiceState = win32.SERVICE_ACTIVE) \
                      if entry.ProcessId ]
docs: Retrieve a list of all active system services.
  
          @see: L{get_services},
              L{start_service}, L{stop_service},
              L{pause_service}, L{resume_service}
  
          @rtype:  list( L{win32.ServiceStatusProcessEntry} )
          @return: List of service status descriptors.