/// <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 ITStorageWrapper(string workPath, bool enumStorage) { comITStorage = new Interop.UCOMITStorage(); comITStorageInterfaced = (Interop.ITStorage)comITStorage; storage = comITStorageInterfaced.StgOpenStorage(workPath, IntPtr.Zero, 32, IntPtr.Zero, 0); IBaseStorageWrapper.BaseUrl = workPath; if(enumStorage) { base.EnumIStorageObject(storage); } }
/// <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 ITStorageWrapper(string workPath, bool enumStorage) { comITStorage = new Interop.UCOMITStorage(); comITStorageInterfaced = (Interop.ITStorage)comITStorage; storage = comITStorageInterfaced.StgOpenStorage(workPath, IntPtr.Zero, 32, IntPtr.Zero, 0); IBaseStorageWrapper.BaseUrl = workPath; if (enumStorage) { base.EnumIStorageObject(); } }