>>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.
Thanks a lot, George, I will. Actually, I was just trying to help somebody from Russian forum...
If it's not broken, fix it until it is.
My Blog