On Feb 26 15:45, Corinna Vinschen via Cygwin wrote: > On Feb 25 16:59, Jeremy Drake via Cygwin wrote: > D'uh. My reading skills are detoriating. I tried RESOURCE_CONNECTED > and RESOURCE_REMEMBERED, but always with lpNetResource set up for a > certain server... *facepalm* > > I reworked the netdrive code now, so it works a little bit more > generically. The problem is still that some servers never show > up if you try to enumerate servers with WSD or WNet functions. > SMB servers are not enumerated with WNet at all, and WSD shows some > servers but not all servers in the neighbourhood. So when trying > to enumerate shares, we still need some kind of heuristic. > See the latest commit 323729f654ae. > > I added more comments and two FIXMEs in terms of WNNC_NET_DAV. > Changing the loop (or better, adding another loop) which handles > remembered or connected resources sounds like a good idea, but > still needs implementing. I'm open to patches here.
I implemented finding servers by enumerating the container WNet resources from the top level and added enumerating connected disk resources. The latter is only enabled for WebDAV right now since connected resources are a subset of all shared resources and only WebDAV is known (yet!) to suffer from the problem. Give the next test release cygwin-3.6.0-0.406.g15b52ba69d64 a try, please. > The way if and how to handle WNNC_NET_RDR2SAMPLE isn't still quite > clear, too. If multiple drivers actually use the same network type, > doesn't that mean you can only ever install one of them? Or is there no > kind of collision and they co-exist? This is still something I'd like to learn... Corinna -- Problem reports: https://cygwin.com/problems.html FAQ: https://cygwin.com/faq/ Documentation: https://cygwin.com/docs.html Unsubscribe info: https://cygwin.com/ml/#unsubscribe-simple