inspircd/inspircd — pull request #314 by ChrisTX (2012-10-04 11:44:50+00:00)
Title: Windows: Replace the old DNS server find mechanism with the proper one, the appropriate API

Parsing the registry for what an API can do isn't exactly a good idea - the API is way more forward compatible than parsing a registry key which might be subject to change.

This code uses GetNetworkParams() from IP Helper API because we require FindDNS() to return a string and using DnsQueryConfig would require a subsequent conversion.