RE: Remove network connection
- From: changliw@xxxxxxxxxxxxxxxxxxxx (Charles Wang[MSFT])
- Date: Fri, 20 Oct 2006 05:39:18 GMT
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 RasEnumConnections 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/default.asp?url=/library/en-us/rras/rras/r
as_start_page.asp
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.
======================================================
.
- Follow-Ups:
- Re: Remove network connection
- From: Jonas
- Re: Remove network connection
- References:
- Remove network connection
- From: Jonas
- Remove network connection
- Prev by Date: Re: Application.DoEvents()
- Next by Date: Re: how do I add columns from other tables to a DataGrid?
- Previous by thread: Remove network connection
- Next by thread: Re: Remove network connection
- Index(es):
Relevant Pages
|