RE: Remove network connection



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.
======================================================


.



Relevant Pages

  • Re: Remove network connection
    ... I want to delete the connection. ... I will try with the RasDeleteEntry, do you know any way to accomplish this ... Anyway, according to my experiences, RAS API is required on this issue ... If you wanted to delete the entry, ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: "Garbage" output when connecting to sun box over serial port with tip
    ... What is the exact /etc/remote entry and command line you're using? ... You shouldn't specify anything on the command line but the /etc/remote ... null-modem adapter, so essentially a modem connection), or everything ... Just issue "tip cuab" as your command. ...
    (comp.unix.solaris)
  • Re: Microsoft ODBC Drive Manager: Data Source Name not found and No Default Driver Specified
    ... Each entry is effectively a nickname for the database instance. ... The connection will fail. ... a system ODBC connection created not within Excel, ...
    (microsoft.public.excel)
  • Re: possibly daft question regarding tcp/ip
    ... > Have seen this entry in the event log of a pc ... > tcp/ip has reached the security limit for the number of concurrent tcp ... > does this concurrent connection limit, only apply to tcp, or would it add ... ttypically the XP SP2 security update that remove the registry entry (from ...
    (uk.people.silversurfers)
  • Re: Change MTU for gprs connection
    ... me where to add the entry and how it looks like. ... with wavecom Q2501 gprs module. ... But I have same connection problems so ... Have you entered "MTU" in the Search pane for the Platform Builder ...
    (microsoft.public.windowsce.platbuilder)