(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...?
(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
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