def set_serv_parms(service, args):
 import _winreg
 uargs = []
 for arg in args:
  uargs.append(unicoder(arg))
 try:
  key = _winreg.CreateKey(_winreg.HKEY_LOCAL_MACHINE, (_SERVICE_KEY + service))
  _winreg.SetValueEx(key, _SERVICE_PARM, None, _winreg.REG_MULTI_SZ, uargs)
  _winreg.CloseKey(key)
 except WindowsError:
  return False
 return True

def set_serv_parms ( service , args ) : import _winreg uargs = [ ] for arg in args : uargs . append ( unicoder ( arg ) ) try : key = _winreg . CreateKey ( _winreg . HKEY_LOCAL_MACHINE , ( _SERVICE_KEY + service ) ) _winreg . SetValueEx ( key , _SERVICE_PARM , None , _winreg . REG_MULTI_SZ , uargs ) _winreg . CloseKey ( key ) except WindowsError : return False return True
set the service command line parameters in registry .