[DllImport("netapi32.dll", CharSet = CharSet.Unicode, SetLastError = true)] public static extern uint NetShareSetInfo( string servername, string netname, uint level, ref SHARE_INFO_2 Buf, out uint parm_err );
Microsoft documentation: Link
Last updated 1 year ago