def win_service_get(name):
 service = WindowsService(name, None)
 service._display_name = service._query_config()['display_name']
 return service

def win_service_get ( name ) : service = WindowsService ( name , None ) service . _display_name = service . _query_config ( ) [ 'display_name' ] return service
open a windows service and return it as a windowsservice instance .