Ureader.com  
Microsoft software help and Community
   home   |   control panel login   |   archive   |  
 
platform
active.directory
adsi
adsi.iis-admin
base
com_ole
complus_mts
component_svcs
database
directx
gdi
graphics_mm
internet.client
internet.server
internet.server.isapi-dev
localization
mapi
messaging
msi
mslayerforunicode
multimedia
networking
networking.ipv6
sdk_install
security
shell
telephony.tapi_2
telephony.tapi_3
telephony.tsp
telephony.wte
tools
ui
ui_shell
win_base_svcs
win16
  
 
date: Wed, 16 Nov 2005 14:21:57 +0100,    group: microsoft.public.platformsdk.networking        back       


How winXP close connections at logoff?   
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
date: Wed, 16 Nov 2005 14:21:57 +0100   author:   Lauro

Re: How winXP close connections at logoff?   
It uses closesocket.

Make a test with SoftIce, make breakpoint :

bpm closesocket

and then make logoff.

-- 
Vladimir

"Lauro"  wrote in message 
news:licmn15hr0c52npui9bo2h4m46v0k69vkl@4ax.com...
> 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
date: Fri, 23 Dec 2005 23:17:45 +0200   author:   Scherbina Vladimir

Re: How winXP close connections at logoff?   
Sorry misprint, I ment bpx closesocket.

-- 
Vladimir

"Scherbina Vladimir"  wrote in message 
news:OqzUTZACGHA.2704@TK2MSFTNGP15.phx.gbl...
> It uses closesocket.
>
> Make a test with SoftIce, make breakpoint :
>
> bpm closesocket
>
> and then make logoff.
>
> -- 
> Vladimir
>
> "Lauro"  wrote in message 
> news:licmn15hr0c52npui9bo2h4m46v0k69vkl@4ax.com...
>> 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
>
>
date: Fri, 23 Dec 2005 23:19:51 +0200   author:   Scherbina Vladimir

Re: How winXP close connections at logoff?   
The problem here is IMHO not what operation used but "how" to do it from 
Lauro's process.
Different sockets opened by different services ( processes ) and only system 
have access to them.
Arkady

"Scherbina Vladimir"  wrote in message 
news:eiPCAbACGHA.3936@TK2MSFTNGP12.phx.gbl...
> Sorry misprint, I ment bpx closesocket.
>
> -- 
> Vladimir
>
> "Scherbina Vladimir"  wrote in message 
> news:OqzUTZACGHA.2704@TK2MSFTNGP15.phx.gbl...
>> It uses closesocket.
>>
>> Make a test with SoftIce, make breakpoint :
>>
>> bpm closesocket
>>
>> and then make logoff.
>>
>> -- 
>> Vladimir
>>
>> "Lauro"  wrote in message 
>> news:licmn15hr0c52npui9bo2h4m46v0k69vkl@4ax.com...
>>> 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
>>
>>
>
>
date: Sat, 24 Dec 2005 13:18:27 +0200   author:   Arkady Frenkel

Re: How winXP close connections at logoff?   
what is  IMHO ? and how do you fix it? so when people logon to samba ,
they can logofff?
thank you
date: 24 Dec 2005 11:50:32 -0800   author:   unknown

Re: How winXP close connections at logoff?   
wrote in message 
news:1135453832.232416.142110@g49g2000cwa.googlegroups.com...
> what is  IMHO ? and how do you fix it? so when people logon to samba ,

http://www.learnthenet.com/english/glossary/imho.htm

> they can logofff?
> thank you
>

-- 
Vladimir
date: Sat, 24 Dec 2005 22:26:10 +0200   author:   Scherbina Vladimir

Re: How winXP close connections at logoff?   
Lauro wrote:
> Someone knows how Windows XP close all the active network connections
> when a user log off?

It's an OS so it can do anything. There is AFAIK no API exposed to user code 
that allows it to do that.

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

I am missing something. Windows already closes the connections for you. Why 
do you need to do it manually before next logon?

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

How do you know there are such connections?


-- 
Eugene
http://www.gershnik.com
date: Tue, 27 Dec 2005 10:27:45 -0800   author:   Eugene Gershnik

Google
 
Web ureader.com


    COPYRIGHT 2007, YARDI TECHNOLOGY LIMITED, ALL RIGHT RESERVE  |   contact us