using System.Runtime.CompilerServices; using System.Runtime.InteropServices; namespace Interop.Lmx; [ComImport] [Guid("63022ACC-281B-4B5D-99AE-C2FC9345FCB8")] [TypeLibType(TypeLibTypeFlags.FDispatchable)] public interface IObjectStg { [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)] [return: MarshalAs(UnmanagedType.Interface)] IAutomationObjectDefinition CreateAutomationObject(); [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)] [return: MarshalAs(UnmanagedType.Interface)] IPrimitiveDefinition CreatePrimitive(); [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)] [return: MarshalAs(UnmanagedType.IUnknown)] object Open([In][MarshalAs(UnmanagedType.Struct)] object xmlSource); }