Skip to content

Instantly share code, notes, and snippets.

View maykonmeier's full-sized avatar

Maykon Ricardo Meier maykonmeier

View GitHub Profile
@maykonmeier
maykonmeier / NetworkConnection.cs
Created January 17, 2017 13:05
C# Class for creating a network connection using a different network credential
using System;
using System.ComponentModel;
using System.Runtime.InteropServices;
using System.Net;
public class NetworkConnection : IDisposable
{
readonly string _networkName;
public NetworkConnection(string networkName, NetworkCredential credentials)