Version Compatibility: Visual Basic 6
The problem : you want to know the connection type with a dialup connection broadband or smallband ? a lot of people have nowaday a DSL connection however a lot of the single computer connections are made with tunnelling ( VPN ) this wil make a dialup account to the modem ( RAS ) for us programmers it wil be difficult to determine the connection type ,this class wil show the Ras statistics including bps so if we get 33600 bps we know this is a modem if we get a much higher value we know this is a broadband connection , ofcourse this wil only work for connections made with RAS as a bonus it wil show lots of other handy stuff drawback the the RasGetConnectionStatistics is only suported starting of Win 2000 however i catched the error in the class so it won`t show an error you simply wil not receive anny info credits go to Tolis Bekiaris (firstname.lastname@example.org) who was so kind to show an example in the KLPD API guide on wich this class is based .
Instructions: Click the link below to download the code. Select 'Save' from the IE popup dialog. Once downloaded, open the .zip file from your local drive using WinZip or a comparable program to view the contents.