Does anyone have any examples of how to map drives to Windows shares using VB.NET. I've read that you can use the WNET libraries and that you don't do this using .NET
I'm developing on the Omni XT15 using VB.NET 2008 and .NET 3.5. The devices are running Windows Embedded Handheld 6.5 Pro on Win CE 5.2.29058
Thanks in advance.
I finally found the answer!! Wow, I had to kiss a lot of metaphorical frogs along the way. There were so many curved balls. Anyway, this page is an excellent link. It demonstrates what you have to do with the WNetAddConnection3W as you have to pass byte arrays - you can't just pass strings (because a pointer to the string is expected), so you have to use marshalling.
There are some other useful pages related to the call including Error Codes