def get_service_name(*args):
 raw_services = _get_services()
 services = dict()
 for raw_service in raw_services:
  if args:
   if ((raw_service['DisplayName'] in args) or (raw_service['ServiceName'] in args) or (raw_service['ServiceName'].lower() in args)):
    services[raw_service['DisplayName']] = raw_service['ServiceName']
  else:
   services[raw_service['DisplayName']] = raw_service['ServiceName']
 return services

def get_service_name ( * args ) : raw_services = _get_services ( ) services = dict ( ) for raw_service in raw_services : if args : if ( ( raw_service [ 'DisplayName' ] in args ) or ( raw_service [ 'ServiceName' ] in args ) or ( raw_service [ 'ServiceName' ] . lower ( ) in args ) ) : services [ raw_service [ 'DisplayName' ] ] = raw_service [ 'ServiceName' ] else : services [ raw_service [ 'DisplayName' ] ] = raw_service [ 'ServiceName' ] return services
the display name is what is displayed in windows when services .