pike.git/lib/modules/Protocols.pmod/DNS.pmod:1384: Inside #if defined(__NT__)
array(string) get_tcpip_param(string val, void|string fallbackvalue)
{
array(string) res = ({});
foreach(({
"SYSTEM\\CurrentControlSet\\Services\\Tcpip\\Parameters",
"SYSTEM\\CurrentControlSet\\Services\\Tcpip6\\Parameters",
"SYSTEM\\CurrentControlSet\\Services\\VxD\\MSTCP"
}),string key)
{
catch {
- res += ({ RegGetValue(HKEY_LOCAL_MACHINE, key, val) });
+ res += ({ System.RegGetValue(HKEY_LOCAL_MACHINE, key, val) });
};
}
- #if constant(RegGetKeyNames)
- /* Catch if RegGetKeyNames() doesn't find the directory. */
+ #if constant(System.RegGetKeyNames)
+ /* Catch if System.RegGetKeyNames() doesn't find the directory. */
catch {
- foreach(RegGetKeyNames(HKEY_LOCAL_MACHINE,
+ foreach(System.RegGetKeyNames(HKEY_LOCAL_MACHINE,
"SYSTEM\\CurrentControlSet\\Services\\Tcpip\\"
"Parameters\\Interfaces"), string key)
{
catch {
- res += ({ RegGetValue(HKEY_LOCAL_MACHINE,
+ res += ({ System.RegGetValue(HKEY_LOCAL_MACHINE,
"SYSTEM\\CurrentControlSet\\Services\\Tcpip\\"
"Parameters\\Interfaces\\" + key, val) });
};
}
- foreach(RegGetKeyNames(HKEY_LOCAL_MACHINE,
+ foreach(System.RegGetKeyNames(HKEY_LOCAL_MACHINE,
"SYSTEM\\CurrentControlSet\\Services\\Tcpip6\\"
"Parameters\\Interfaces"), string key)
{
catch {
- res += ({ RegGetValue(HKEY_LOCAL_MACHINE,
+ res += ({ System.RegGetValue(HKEY_LOCAL_MACHINE,
"SYSTEM\\CurrentControlSet\\Services\\Tcpip6\\"
"Parameters\\Interfaces\\" + key, val) });
};
}
};
#endif
res -= ({ UNDEFINED });
return sizeof(res) ? res : ({ fallbackvalue });
}