Use P/Invoke and WNetAddConnection2
There should also be some wrappers out there to do some of the grunt work for you.
Google is your friend, as always.
More Related Contents:
- Checking if a list of DateTime objs are coherent
- Reading CSV files using C#
- Using AES encryption in C#
- .NET Process.Start default directory?
- How do I read a specified line in a text file?
- How to save MailMessage object to disk as *.eml or *.msg file
- What does the ‘=>’ syntax in C# mean?
- Web Reference vs. Service Reference
- C#: Overriding return types
- Why use String.Format? [duplicate]
- How to Create Deterministic Guids
- Why do local variables require initialization, but fields do not?
- Does Stream.Dispose always call Stream.Close (and Stream.Flush)
- Text difference algorithm
- Center multiple rows of controls in a FlowLayoutPanel
- How do I create a real-time Excel automation add-in in C# using RtdServer?
- Mocking EF DbContext with Moq
- C# add validation on a setter method
- .NET virus scanning API
- Adding unknown (at design time) properties to an ExpandoObject
- Default implementation in interface is not seen by the compiler?
- How Can I add properties to a class on runtime in C#?
- Why doesn’t $ in .NET multiline regular expressions match CRLF?
- How to get img/src or a/hrefs using Html Agility Pack?
- Creating Zip file from stream and downloading it
- What is the correct way to free memory in C#
- Getting names of local variables (and parameters) at run-time through lambda expressions
- Using var outside of a method
- Is TLS 1.1 and TLS 1.2 enabled by default for .NET 4.5 and .NET 4.5.1?
- LINQ to Entities does not recognize the method ‘System.String ToString()’ method in MVC 4