>>>Well, I have tried it... Success in connection but never success on Disconnect..
>>>and I need to disconnect it in file manager!
>>
>>What return code are you getting when you issue the WNetCancelConnection?
>
>
>return 2250
>
>Thanks for help!
That's ERROR_NOT_CONNECTED. Are you passing the right drive specifier?
George
Ubi caritas et amor, deus ibi est