ConnectUNCWithCredentials.UNCAccessWithCredentials.NetUseAdd C# (CSharp) Method

NetUseAdd() private method

private NetUseAdd ( System.String UncServerName, UInt32 Level, USE_INFO_2 &Buf, UInt32 &ParmError ) : UInt32
UncServerName System.String
Level System.UInt32
Buf USE_INFO_2
ParmError System.UInt32
return System.UInt32
        internal static extern NET_API_STATUS NetUseAdd(
            LPWSTR UncServerName,
            DWORD Level,
            ref USE_INFO_2 Buf,
            out DWORD ParmError);