SyntaxFix
Write A Post
Hire A Developer
Questions
I was having the same problem. Don't know if you've solved this or not, but what I was really trying to do was access a network share with AD credentials. WNetAddConnection2() is what you need to use in that case.
WNetAddConnection2()