using System; using System.Collections.Generic; using System.Text; using System.Runtime.InteropServices; namespace Biff8Excel.COM { [ComImport, Guid("0000000d-0000-0000-C000-000000000046"), InterfaceType(ComInterfaceType.InterfaceIsIUnknown)] public interface IEnumStatStg { [PreserveSig] int Next(int celt, [MarshalAs(UnmanagedType.LPArray), Out] STATSTG[] rgelt, out int pceltFetched); void Skip(int celt); void Reset(); [return: MarshalAs(UnmanagedType.Interface)] IEnumStatStg Clone(); } [FlagsAttribute] public enum StorageMode { Read = 0x0, Write = 0x1, ReadWrite = 0x2, ShareDenyNone = 0x40, ShareDenyRead = 0x30, ShareDenyWrite = 0x20, ShareExclusive = 0x10, Priority = 0x40000, Create = 0x1000, } }