>>Thanks George
>>
>>Only problem is I need to pass a User-ID I think. I am getting error 1326.
>>I know the machine logon id is not valid on the NT server I am connecting to. Is there a way to pass User Id as well?
>
>I hope that you've read my other post.
>
>The user's login name can be passed using WNetAddConnection2(). I think Ed Rauh's got a file in the download section (under Win32 and other APIs) that can handle calls to it. It's more difficult to use since it requires NETRESOURCE structure containing embedded pointers to strings. You might check there if what I suggested doesn't solve the problem.
Thanks for the plug, George. There's a demonstration of WNetAddConnection3 in my NETRESOURCE class (I think it's called DEMO_WNetAddConnection3.PRG) that uses CLSHEAP and the NETRESOURCE class.