02 Jan
Posted by hamo as General 154 views, 0 Comments
If you don’t have Iphlpapi.lib installed, you can retrieve the local DNS server in the following way. The main step is load “Iphlpapi.dll” with ::LoadLibary method and call ::GetProcAddress to get the “GetNetworkParams”. Here is the full source:
Code Library is powered by WordPress, theme byBloggingPro. Content on this site is licensed under a Creative Commons Attribution 3.0 License.