// JP opened flex table

Click to See Complete Forum and Search --> : How to create multiple distinctive connections to the same share?


bilik2004
March 2nd, 2004, 07:01 AM
Hi All,

First, as a new comer, allow to thank for a well managed and knowledgeful forum.

My Problem:
I wrote an application that uses WNetAddConnection2 and WNetCancelConnection for creating a connection to the IPC share on a remote machine. I use this connection for installing and running services on the remote machine.
When I launch two instances of this application on the same machine and use both for connecting to the same remote machine, canceling the connection in one instance, will shut the connection of the other, as well. The main indication for that is receiving ERROR_NOT_CONNECTED as a return code from WNetCancelConnection when trying to close the connection in the second instance.

My Question:
Is there a way to config the WNet connection APIs or is there some other mechanism for creating multiple distinctive connections from one machine to the same share on another machine in a way that will allow a selective termination of these connections?

//JP added flex table