Re: Remove network connection
- From: "Jonas" <jonaug@xxxxxxxxxxxxxxxx>
- Date: Fri, 20 Oct 2006 09:47:47 +0200
Hi.
I want to delete the connection.
I will try with the RasDeleteEntry, do you know any way to accomplish this
via WMI?
"Charles Wang[MSFT]" <changliw@xxxxxxxxxxxxxxxxxxxx> wrote in message
news:ymIQgoA9GHA.5376@xxxxxxxxxxxxxxxxxxxxxxxx
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: Charles Wang[MSFT]
- Re: Remove network connection
- References:
- Remove network connection
- From: Jonas
- RE: Remove network connection
- From: Charles Wang[MSFT]
- Remove network connection
- Prev by Date: Where to store string messages?
- Next by Date: Re: Where to store string messages?
- Previous by thread: RE: Remove network connection
- Next by thread: Re: Remove network connection
- Index(es):
Relevant Pages
|