I am in need of a piece of code that can detect if a network connection is connected or disconnected. The connected state would mean a cable was plugged into the Ethernet co
Call GetAdaptersInfo and loop through the list of available network adapters until you find the one you're looking for?