|
-
May 4th, 1999, 07:33 AM
#1
How do you detect a Dial Up Network connection
I have an application which uses sockets to communicate across the internet. At present when opening the socket the windows API automagically starts up the DUN connection. But it does not automatically close the connection, therefore the connection can still be active after the app has been exited. This causes DUN (and Explorer) to crash when you manually disconnect.
I think to get round this I need to detect whether a DUN connection is already available for use and if not startup and disconnect the connection. I've found code on this site to connect/disconnect but how can I detect if there is already a connection.
Thanx in advance.
ps. betters solutions would also be welcome.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|