Beispiel #1
0
 private StructuredStorage(Microsoft.Expression.Project.NativeMethods.IStorage iStorage)
 {
     if (iStorage == null)
     {
         throw new ArgumentNullException("iStorage");
     }
     this.iStorage = iStorage;
 }
Beispiel #2
0
 protected virtual void Dispose(bool disposing)
 {
     try
     {
         if (this.iStorage != null)
         {
             while (Marshal.ReleaseComObject(this.iStorage) > 0)
             {
             }
         }
     }
     finally
     {
         this.iStorage = null;
     }
 }
Beispiel #3
0
 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);
Beispiel #4
0
 internal static extern int StgCreateDocfile(string pwcsName, Microsoft.Expression.Project.NativeMethods.STGM grfMode, uint reserved, out Microsoft.Expression.Project.NativeMethods.IStorage iStorage);