NetFileClose

[DllImport("netapi32.dll", CharSet = CharSet.Unicode, SetLastError = true)]
public static extern uint NetFileClose(
   string ServerName,
   uint FileId
);

Microsoft documentation: Link

Last updated