We have a .NET application that uses the WNet API through P/Invoke to enumerate network resources in a Windows network. The application works perfectly on Vista and Windows 7, but in Windows 8 it doesn't discover anything.
I have tried to debug it and there are no errors, it actually finds a few network containers at the first level, but then within them it finds nothing, it always returns zero entries and "no more entries" code.
Are there any known problems with WNet API on Windows 8?
Thanks, Mihai
SOLUTION
I change my code accord to http://www.pinvoke.net/default.aspx/netapi32/netserverenum.html and all works well
I have the same isue with this code
in line
the method crash....