aekpong Level: Whizz Kid
 Registered: 27-12-2005 Posts: 14
|
modem state
Why window me return state of modem wrong .
use this function from Goran.
==========================
INTERNET_CONNECTION_MODEM = 1 'Constant
IsConnectedToInternet Retval
==========================
When I Click start Dial on Windows me
modem state = Not connect, Function return Retval=81 ,But on Xp return Retval=86
And when I check this statement on Xp It work , But on Windowme Not work
'mycode
Private Sub StartDial_Click()
If (Retval And INTERNET_CONNECTION_MODEM) = INTERNET_CONNECTION_MODEM Then 'window ME OS, When modem state=(Not connect) statement=true Why ? debug.print "Internet Connection Connect"
exit sub
End if
'New dial
End sub
____________________________
TK
|