def get_serv_parms(service):
 import _winreg
 value = []
 try:
  key = _winreg.OpenKey(_winreg.HKEY_LOCAL_MACHINE, (_SERVICE_KEY + service))
  for n in xrange(_winreg.QueryInfoKey(key)[1]):
   (name, value, _val_type) = _winreg.EnumValue(key, n)
   if (name == _SERVICE_PARM):
    break
  _winreg.CloseKey(key)
 except WindowsError:
  pass
 for n in xrange(len(value)):
  value[n] = value[n]
 return value

def get_serv_parms ( service ) : import _winreg value = [ ] try : key = _winreg . OpenKey ( _winreg . HKEY_LOCAL_MACHINE , ( _SERVICE_KEY + service ) ) for n in xrange ( _winreg . QueryInfoKey ( key ) [ 1 ] ) : ( name , value , _val_type ) = _winreg . EnumValue ( key , n ) if ( name == _SERVICE_PARM ) : break _winreg . CloseKey ( key ) except WindowsError : pass for n in xrange ( len ( value ) ) : value [ n ] = value [ n ] return value
get the service command line parameters from registry .