Could someone please give me a working example of this funtion and a detailed explanation.

InternetCheckConnection in C++