NetUseAdd or Net32UseAdd

The NetUseAdd API establishes a connection between a local or null device name and a shared resource by redirecting the local or null (UNC) device name to the shared resource.