Whats the reason that if i unplug my internet cable it still returns ERROR_SUCCESS and prints out "Internet available...
Ps i should have posted it in the networking forum. Feel free to deplace it, thanks!Code:#include <cstdio> #include <windows.h> #include <wininet.h> int main() { if(InternetAttemptConnect(0) == ERROR_SUCCESS) printf("\nInternet available...\n"); else printf("Internet unavailable.\n"); return 0; }