Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Disconnecting from Dialup connection
Message
From
11/04/2000 23:44:19
 
 
To
11/04/2000 21:59:35
General information
Forum:
Visual FoxPro
Category:
Windows API functions
Miscellaneous
Thread ID:
00358466
Message ID:
00358518
Views:
10
>I have tried a dll and an ocx as mailserver in VFP to send emails.
>Both work fine, there is only one problem.
>1. How to disconnect from internet from within VFP.
>
>I tried 'destroying' the Connected to... window via winapi, but to no avail.......
>After sending the email i want to disconnect the dial up connection.
>
>2. And it seems to me that if the customer closes/cancels the dial-up process, something makes as well hang the dll as the ocx.
>So a restart to dial is not possible unless i exit VFP first.
>What part of 'winet' remains in memory i dont know.
>

WinInet has nothing to do with it. AFAIK, You cannot programmatically close a RAS session without having the handle to it, and you get the handle by initiating the session yourself. Check out wwIPStuff at www.west-wind.com; it has wrapper methods for the functions needed to dial and hang up a RAS connection.
Erik Moore
Clientelligence
Previous
Reply
Map
View

Click here to load this message in the networking platform