Is there a way to detect the internet connection on Windows in C/C++?
I've tried playing around with the connection types in Windows.h
, but I haven't figured out a good way.
Just to clarify I don't mean sending an HTTP request to google. I mean getting the actual status of Windows' connection to a network. Windows clearly has that info because they display it in the taskbar, so I'm wondering if I can access that as well.