Hi,
I'm sorry that I am not sure if you want to close the connection or delete
an entry when a user logs out. Could you please lighten me more on your
issue?
Anyway, according to my experiences, RAS API is required on this issue and
the P/Invoke technology provides the appropriate way on .NET platform.
Firstly, you can use RasEnumConnecti ons to emumerate all the available
active RAS connections handles on your system; Then use RasHangup to close
the connection by the handle.
If you wanted to delete the entry, please use RasEnumEntries to retrieve
the available entries, then use RasDeleteEntry to delete the entry.
For the RAS API references, please refer to:
Remote Access Service Functions
http://msdn.microsoft.com/library/de...us/rras/rras/r
as_start_page.a sp
Please feel free to let me know if you need further research on this issue.
It's my pleasure to be of assistance.
Sincerely yours,
Charles Wang
Microsoft Online Community Support
=============== =============== =============== =========
When responding to posts, please "Reply to Group" via
your newsreader so that others may learn and benefit
from this issue.
=============== =============== =============== =========
This posting is provided "AS IS" with no warranties, and confers no rights.
=============== =============== =============== =========