Exemple #1
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);
            }
        }