[DllImport("Comdlg32.dll", SetLastError = true)] public static extern NET_API_STATUS NetShareAdd( [MarshalAs(UnmanagedType.LPWStr)] string servername, int level, ref SHARE_INFO_2 buf, out uint parm_err );
Microsoft documentation: Link
Last updated 1 year ago