示例#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
文件: GPStream.cs 项目: JianwenSun/cc
 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;
 }