WNetAddConnection WinAPI function

Does anyone have any code which can show me how to use the
WNetAddConnection2  and the WNetCancelConnection2 functions in the Win32API
?

Please email me since I'm on a slow international link at the moment.

Thanks in advance

Ian