private StructuredStorage(Microsoft.Expression.Project.NativeMethods.IStorage iStorage) { if (iStorage == null) { throw new ArgumentNullException("iStorage"); } this.iStorage = iStorage; }
protected virtual void Dispose(bool disposing) { try { if (this.iStorage != null) { while (Marshal.ReleaseComObject(this.iStorage) > 0) { } } } finally { this.iStorage = null; } }
internal static extern int StgOpenStorage(string pcwsName, Microsoft.Expression.Project.NativeMethods.IStorage ptsgPriority, Microsoft.Expression.Project.NativeMethods.STGM grfMode, IntPtr snbExclude, uint reserved, out Microsoft.Expression.Project.NativeMethods.IStorage ppstgOpen);
internal static extern int StgCreateDocfile(string pwcsName, Microsoft.Expression.Project.NativeMethods.STGM grfMode, uint reserved, out Microsoft.Expression.Project.NativeMethods.IStorage iStorage);