OleSave

[DllImport("ole32.dll", SetLastError = true)]
public static extern int OleSave(
   IStorage pStg,
   IStream pStm,
   [MarshalAs(UnmanagedType.Bool)] bool fSameAsLoad
);

Microsoft documentation: Link

Last updated