RasConnectionNotification

  • Thread starter Francisco Garcia
  • Start date
F

Francisco Garcia

Hi,

I want to get notified when individual subentries of a multilink ras entry
are dialed or hung up. I have some questions about RasConnectionNotification
behavior

If I dial each subentry with a different call to RasDial, will I get a
different HRASCONN for each subentry?
I call RasConnectionNotification to get notified of subentry
disconnections. May I assume that I will only be notified the disconnection
of my subentry?
How do I tell RAS I don't want to be notified any more? Should I call
RasConnectionNotification with a null Event? The same connection & event but
zero flags?

Thanks in advance
 
P

Peter Schmitt

Francisco said:
If I dial each subentry with a different call to RasDial, will I get a
different HRASCONN for each subentry?
You will get different HRASCONN connection handles for each successfully
established connection.
I call RasConnectionNotification to get notified of subentry
disconnections. May I assume that I will only be notified the disconnection
of my subentry?
At the SDK documentation it is described this way. When you call
RasConnectionNotification giving the connection handle you will only
getting events concerning this connection. If you what to get events of
each connection you'll have to call the function wiht INVALID_HANDLE_VALUE.
How do I tell RAS I don't want to be notified any more? Should I call
RasConnectionNotification with a null Event? The same connection & event but
zero flags?
I don't really know but I think freeing the event handle should be enough.

Peter
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top