First off, big thanks to aejw for making my life a lot easier by writing an awesome class to make this possible.
Download the project files from here, extract cNetworkDrives0015.cs and add it to your project.
using aejw.Network;
private bool mount_drive(string localdrive, string sharelocation, string user