Those integers are 32bit (Integer, Int32), not 64bit (Long, Int64)
VB.NET:
Const INTERNET_AUTODIAL_FORCE_ONLINE As Int32 = 1
Const INTERNET_AUTODIAL_FORCE_UNATTENDED As Int32 = 2
Declare Function InternetAutodial Lib "wininet.dll" ( _
ByVal dwFlags As Int32, _
ByVal hwndParent As Int32) As Int32
It return 1 if success and 0 if fail, so fail could be an indication for modem is not there, you could also do a ping/request upon fail to see if already connected. I don't have a dialup, but that's how I understand the docs.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.