CoReleaseMarshalData

[DllImport("ole32.dll", SetLastError = true)]
public static extern int CoReleaseMarshalData(
   IStream pStm
);

Microsoft documentation: Link

Last updated