VB RAS Hangup
Video Capture Help ] AVIFile Tutorial ] Licensing and Distribution ] Resources ] Awards ] Latest News ] Source Code ] Free Controls ]

 

RAS API Functions (Dial-up Networking) - FROM VB!
Download (16k) VB source here!

DETAILS:
This simple example program shows how to enumerate all existing Dial Up Networking (DUN) connections and then hang them up (Win9x is limited to one DUN connection).

I wrote this program in response to several questions in various newsgroups about how to use the RAS API in VB.  If I have time, I will add more sample later.

While searching around for info on RAS and VB, I discovered a great website run by a fellow Microsoft MVP - Bill McCarthy.  If you want more info on RAS check out his site: http://www.TotalEnviro.com/PlatformVB

Techniques demonstrated in this project
---------------------------------------
Enumerate existing dial-up connections with RasEnumConnections()

Hang up existing connections using the correct algorithm suggested by Microsoft in the Platform SDK.


You may freely use and modify this code for use in your
own programs. However, you may not redistribute
this archive without permission from Ray Mercer
<raymer@shrinkwrapvb.com>

Copyright (c) 2000 by Ray Mercer - All Rights Reserved