What is the equivalent of API WNetAddConnection2 in C#?

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hi,

We know that windows API WNetAddConnection2 can make a connection to a
network resource. but how to do this job in C#? i'm wondering about it.

Thanks
-Zhilin
 
| Hi,
|
| We know that windows API WNetAddConnection2 can make a connection to a
| network resource. but how to do this job in C#? i'm wondering about it.
|
| Thanks
| -Zhilin

By PInvoking WNetAddConnection2, the framework has no managed equivalent.
Note that there is (almost) no reason to make a connection to a shared
resource, learn to use UNC paths when accessing shared files.

Willy.
 
Back
Top