Closing all connections to server?

Tech-Archive recommends: Fix windows errors by optimizing your registry



Someone knows how Windows XP close all the active network connections
when a user log off?

I' like to call programmatically the same functions because I can't do
it using the command line NET USE or the WinApi (WNetEnumResource and
WNetCancelConnection2).

I have to close all previous connections before login as new user to
some folder on a Server with Samba.
Sometime when I try to close all the active connections some "hidden"
connections are still open (I can't detect them with NET USE or
WNetEnumResource); the only solution is to log off and then login
again.

Thanks, Lauro
.



Relevant Pages

  • Re: ADO.NET - SQLSERVER CONNECTIONS
    ... So It's more efficient to open and close connections as needed, ... How this affect the performance of the server memory ... >> and the databas share the same server, the question is what is more ... >> this connection open until the user log out?. ...
    (microsoft.public.sqlserver.programming)
  • Re: SignOut a User
    ... as far as I know it doesn't matter how many connections there are, ... the cookie (after successful login) is created per browser. ... >> RedirectFromLoginPage to double check their behavior. ...
    (microsoft.public.dotnet.framework.aspnet.security)
  • Re: PDO: Switch database user without reopening connection
    ... At the bare minimum there will be a login user who only has ... the postgres user they are logged in as to one that can make ... modifications to the database as well (editors get update permission, ... As database connections are expensive to ...
    (comp.lang.php)
  • VPN TCP/IP CP reported error cp 31
    ... >and resolve network hostnames while connected. ... >Checking network protocol connections... ... >I have other DSL P.P.o.E. ... DSL users that seem to login ...
    (microsoft.public.win2000.ras_routing)
  • Re: site on local machine runs fine, but does not run on the server?
    ... hi Oleg, ... it can't be that you don't need to login to your DB. ... Does your server supports DB connections? ...
    (microsoft.public.dotnet.framework.aspnet.security)