I'm coding a program to monitor a remote directory, and I use the windows API: WNetAddConnection. I use it to map remote directory to Z: by use a specified user/password.
After I put this program to the working environment, someone use explorer location "\192.168.X.X\somedir" to login the same directory I monitored, and it makes my program cannot connect to this directory, so I have to ask this people not to do this thing, but I cannot force them not to.
So I want to know if there is a way to disconnect all the other connection, or provent them do this thing, do anyone knows how?
By the way, I'm not a expert in windows, I don't know the detail of windows network (or what this bug really means), can anyone tell me where is the documentation for windows network?