Disconnect from the Internet To disconnect from the internet, we use the rasapi32.dll file. First, we enumerate (loop through), all the active connections using the RasEnumConnections API call, and then call RasHangUp to disconnect. in Public bookmarkswith .netinternetvb.netby 2 users