LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

Help with SDK function WNetAddConnection3 in win2000

I am using win sdk function WNetAddConnection3 to map network drive. it works fine in win98 but does not work at all in win2000. Any suggestion ideas?
Thanks for your help in advance.
Sheetal
Thanks.
CVI 2010
LabVIEW 2011 SP1
Vision Builder AI 2011 SP1
0 Kudos
Message 1 of 3
(3,302 Views)
WNetAddConnection3 works in Win2000, so something else must be wrong. On the Win2000 machine, can you do the same mapping using 'net use' from the command line (logged in as the same user the application runs under)? What is the exact code you are using? What error code does WNetAddConnection3 return when you try it?

Martin.
--
Martin
Certified CVI Developer
0 Kudos
Message 2 of 3
(3,302 Views)
Thanks Martin.
Here is my function. (function.txt attached)
I get error code 67 back.
It works fine in win98.
Thanks for your help.
Thanks.
CVI 2010
LabVIEW 2011 SP1
Vision Builder AI 2011 SP1
0 Kudos
Message 3 of 3
(3,302 Views)