How to retrieve network parameters?

IpHlpApi provides a pretty useful function called GetNetworkParams. Helps in retrieving hostname, domain name, and dns server info. This is how we use this API. Code snippet taken from MSDN, modified a bit… [sourcecode language=’cpp’]#include “iphlpapi.h” #pragma comment( lib, “iphlpapi.lib” ) void PrintNetworkParams() {    FIXED_INFO*       pFixedInfo  = 0;    ULONG             ulOutBufLen = 0;    […]
Continue reading…