I want to run a LabVIEW application which needs to map a disk on another network. I want to use WNetAddConnection2 from mpr.dll.
I have valid accounts on both networks and I succeeded the mapping in Windows Explorer.
In LabVIEW I didn't succeed, probably because of the way I am transmiting the NETRESOURCE structure to the DLL. If passing like a LabVIEW cluster I'm obtaining error code 1200. If passing like in "CLUSTERSimpleS_A.vi" I get error code 487. These error codes are obtained no matter what values I'm using for dwScope, dwType, dwDisplayType and dwUsage.
Any help, please ?