public void Stat(out STATSTG pstatstg, int grfStatFlag) { pstatstg = new STATSTG { cbSize = _wrappedStream.Length, type = (int)STGTY.Stream, }; }
/// <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); } }
public void Stat(STATSTG[] pstatstg, uint grfStatFlag) { _stg.Stat(pstatstg, grfStatFlag); pstatstg[0].pwcsName = "hello.stg"; }
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); }
void UCOMIStream.Stat(out STATSTG stat, int flags) { stat = new STATSTG(); stat.cbSize = Marshal.SizeOf(stat); stat.grfLocksSupported = 0; }