>Hi everyone,
>
>Could you please help me with the declaration and usage of WNetAddConnection2 function? I found Erik Moore sample in API section, but it's for WNetAddConnection function only.
>
>Thanks in advance.
Nadya,
You might want to look at Ed Rauh's ClsHeap (and Netresource) programming. The NETRESOURCE structure used by the function requires pointers to strings. I think Ed may have provided an example using this function.
George
Ubi caritas et amor, deus ibi est