Branch: Tag:

2000-06-29

2000-06-29 00:40:30 by Fredrik Hübinette (Hubbe) <hubbe@hubbe.net>

may now work on W2K

Rev: lib/modules/Protocols.pmod/DNS.pmod:1.42

416: Inside #if defined(__NT__)
   return RegGetValue(HKEY_LOCAL_MACHINE, key, val);    };    } +  + #if constant(RegGetKeyNames) +  /* W2K, should be fixed to return results from *all* interfaces +  * instead of just the first interface. -Hubbe +  */ +  foreach(RegGetKeyNames(HKEY_LOCAL_MACHINE, +  "SYSTEM\\CurrentControlSet\\Tcpip\\Parameters\\Interfaces"), string key) +  { +  catch { +  return RegGetValue(HKEY_LOCAL_MACHINE, +  "SYSTEM\\CurrentControlSet\\Tcpip\\Parameters\\Interfaces\\"+key,val); +  };    } -  +  +  }   #endif       static private string match_etc_hosts(string host)