// Copyright (c) .NET Foundation. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for details.

using System;
using System.Runtime.InteropServices;
using System.Runtime.InteropServices.ComTypes;

namespace OpenLiveWriter.Interop.Com
{
	/// <summary>
	///
	/// </summary>
	[ComImport]
	[InterfaceType(ComInterfaceType.InterfaceIsIUnknown)]
	[Guid("00000109-0000-0000-C000-000000000046")] 
	public interface IPersistStream
	{
		[PreserveSig]
		int GetClassID( 
			[Out] out Guid pClassID ) ;

		[PreserveSig]
		int IsDirty() ;        
	
		void Load( 
			[In] IStream pStm ) ;
			
		void Save(
			[In] IStream pStm,			
			[In, MarshalAs(UnmanagedType.Bool)] bool fClearDirty ) ;

		void GetSizeMax( 
			[Out] out UInt64 pcbSize ) ;
	}
}
		
