WUGNET, the Windows User Group Network
Your Complete Resource Center for "The Best" in Shareware, Computing Tips and Support, Windows Industry News... and much more!
Home Forums Shareware Windows Tips Hot Offers FREE Newsletters Arcade Contact Us About Partners
Search WUGNET: RSS Feeds RSS Feeds Advertise with WUGNET    |    Shareware eBooks
HomeHome FAQFAQ      ProfileProfile    Private MessagesPrivate Messages   Log inLog in

Notification of RAS hang ups/disconnections

 
   Home -> Windows Other -> -> RAS RSS
Next:  Ad-Aware and Spybot updates  
Author Message
Vanessa Deagan

External


Since: Mar 21, 2007
Posts: 2



(Msg. 1) Posted: Wed Mar 21, 2007 8:03 am
Post subject: Notification of RAS hang ups/disconnections
Archived from groups: microsoft>public>windowsnt>protocol>ras (more info?)

Hi,

I have developed a small executable for a client that will bring up a VPN
connection using RasDial(). I want to know if there are any
notifications/event that can tell me when the VPN is no longer available. For
example, if someone right-clicks on the VPN connection in the sys-tray and
disconnects, I want my executable to be notified of this.

I have tried setting the dwNotifierType, lpvNotifier in my call to
RasDial(), but this stops sending me notifications after a successful
connection.

I have written a small thread that periodically (every second) polls the
connection by calling RasGetConnectStatus(), and although this works, it's
not really the way I want to do it.

Is there a way of being notified of a RAS (VPN) disconnection using a
callback funtion etc...?

--
Vanessa Deagan
Back to top
Login to vote
Kyle Masterson

External


Since: Apr 13, 2007
Posts: 1



(Msg. 2) Posted: Fri Apr 13, 2007 6:03 am
Post subject: Re: Notification of RAS hang ups/disconnections [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

RasGetConnectStatus() returns you device line name, you may use it to
monitor line through TAPI, and there you'll get notified by a event indeed,
but you chose a better way really...)

<VanessaDeagan.RemoveThis@discussions.microsoft.com> сообщил/сообщила в новостях
следующее: news:B4385904-3F9D-44D0-A2AE-157C9D243278@microsoft.com...
> Hi,
>
> I have developed a small executable for a client that will bring up a VPN
> connection using RasDial(). I want to know if there are any
> notifications/event that can tell me when the VPN is no longer available.
> For
> example, if someone right-clicks on the VPN connection in the sys-tray and
> disconnects, I want my executable to be notified of this.
>
> I have tried setting the dwNotifierType, lpvNotifier in my call to
> RasDial(), but this stops sending me notifications after a successful
> connection.
>
> I have written a small thread that periodically (every second) polls the
> connection by calling RasGetConnectStatus(), and although this works, it's
> not really the way I want to do it.
>
> Is there a way of being notified of a RAS (VPN) disconnection using a
> callback funtion etc...?
>
> --
> Vanessa Deagan
Back to top
Login to vote
Display posts from previous:   
       Home -> Windows Other -> -> RAS All times are: Eastern Time (US & Canada) (change)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You can edit your posts in this forum
You can delete your posts in this forum
You can vote in polls in this forum
Categories:
 Windows XP
 Windows Vista
  Windows Other
 Office
 Office Other
 Security
  • Home |
  • Shareware |
  • Windows Tips |
  • Hot Offers |
  • FREE Newsletters |
  • Arcade |
  • Forums |
  • eBooks |
  • About WUGNET |
  • Partners |
  • Contact

  • WUGNET Privacy Policy |
  • Link to WUGNET |
  • IT Support