borderAndreaVB free resources for Visual Basic developersborder

borderAndreaVB Visual Basic and VB.NET source code resources - Copyright © 1999-2007 Andrea Tincaniborder

AndreaVB | Forum | News | Downloads | Register | Help | Member List | Statistics | Search | PM | Profile

Print This Topic
Previous Topic (Cash Drawer)Next Topic (Shutdown network PC) New Topic New Poll Post Reply
AndreaVB Forum : Network : modem state
Poster Message
aekpong
Level: Whizz Kid

Registered: 27-12-2005
Posts: 14

icon 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

01-04-2006 at 02:10 PM
View Profile Send Email to User Show All Posts Visit Homepage | Quote Reply
AndreaVB Forum : Network : modem state
Previous Topic (Cash Drawer)Next Topic (Shutdown network PC) New Topic New Poll Post Reply
Surf To:


Not Logged In? Username: Password: Lost your password?
Partners: Download Actual Software | Free Software Download
borderAndreaVB free resources for Visual Basic developersborder

borderAndreaVB Visual Basic and VB.NET source code resources - Copyright © 1999-2007 Andrea Tincaniborder