bilik2004
March 2nd, 2004, 06:47 AM
Hi All,
First, as a new commer, I would like to comment on this wonderfull and knowledgeful forum.
To my problem.
I wrote an application that uses WNetAddCOnnection2 and WNetCancelConnection to create/cancel a connection to the IPC share on a remote machine (in order to install and run services on those machines).
When I launch two instances of it on the same machine and using both to connect to the same remote machine, upon closing the connection in one application, the connection of the second application is shut as well. I spot that by receiving ERROR_NOT_CONNECTED as a return code from WNetCancelConnection in the second application.
My question:
Is there a way to config the Wnet connection APIs or is there another mechanism for creating multiple connections form one machine to another remote machine, all using the same share and being able to cancel these connections selectively?
Regards,
Barak
First, as a new commer, I would like to comment on this wonderfull and knowledgeful forum.
To my problem.
I wrote an application that uses WNetAddCOnnection2 and WNetCancelConnection to create/cancel a connection to the IPC share on a remote machine (in order to install and run services on those machines).
When I launch two instances of it on the same machine and using both to connect to the same remote machine, upon closing the connection in one application, the connection of the second application is shut as well. I spot that by receiving ERROR_NOT_CONNECTED as a return code from WNetCancelConnection in the second application.
My question:
Is there a way to config the Wnet connection APIs or is there another mechanism for creating multiple connections form one machine to another remote machine, all using the same share and being able to cancel these connections selectively?
Regards,
Barak