Пример #1
0
 public void Stat(out STATSTG pstatstg, int grfStatFlag)
 {
     pstatstg = new STATSTG
     {
         cbSize = _wrappedStream.Length,
         type   = (int)STGTY.Stream,
     };
 }
Пример #2
0
 public void Stat(out STATSTG pstatstg, int grfStatFlag)
 {
     pstatstg = new STATSTG
     {
         cbSize = _wrappedStream.Length,
         type = (int)STGTY.Stream,
     };
 }
Пример #3
0
 /// <summary>
 /// Constructor of the class
 /// </summary>
 /// <param name="workPath">workpath of the storage</param>
 /// <param name="enumStorage">true if the storage should be enumerated automatically</param>
 public IStorageWrapper(string workPath, bool enumStorage)
 {
     Interop.StgOpenStorage(workPath, null, 32, IntPtr.Zero, 0, out storage);
     IBaseStorageWrapper.BaseUrl = workPath;
     STATSTG sTATSTG = new STATSTG();
     storage.Stat(out sTATSTG, 1);
     if(enumStorage)
     {
         base.EnumIStorageObject(storage);
     }
 }
Пример #4
0
 public void Stat(STATSTG[] pstatstg, uint grfStatFlag)
 {
     _stg.Stat(pstatstg, grfStatFlag);
     pstatstg[0].pwcsName = "hello.stg";
 }
Пример #5
0
 public void Stat(IntPtr pstatstg, int grfStatFlag) {
     STATSTG stats = new STATSTG();
     stats.cbSize = dataStream.Length;
     Marshal.StructureToPtr(stats, pstatstg, true);
 }
 public void Stat(IntPtr pstatstg, int grfStatFlag)
 {
     STATSTG structure = new STATSTG {
         cbSize = this.dataStream.Length
     };
     Marshal.StructureToPtr(structure, pstatstg, true);
 }
Пример #7
0
 void UCOMIStream.Stat(out STATSTG stat, int flags)
 {
     stat = new STATSTG();
     stat.cbSize = Marshal.SizeOf(stat);
     stat.grfLocksSupported = 0;
 }