Beispiel #1
0
 /// <summary>Initializes a new instance of the <see cref="ShellLibrary"/> class.</summary>
 /// <param name="iItem">The i item.</param>
 /// <param name="readOnly">if set to <c>true</c> [read only].</param>
 public ShellLibrary2(IShellItem iItem, bool readOnly = false)
 {
     lib = new IShellLibrary();
     lib.LoadLibraryFromItem(iItem, readOnly ? STGM.STGM_READ : STGM.STGM_READWRITE);
     Init(iItem);
 }
Beispiel #2
0
 /// <summary>Initializes a new instance of the <see cref="ShellLibrary"/> class.</summary>
 /// <param name="iItem">The i item.</param>
 /// <param name="readOnly">if set to <c>true</c> [read only].</param>
 internal ShellLibrary(IShellItem iItem, bool readOnly = false) : base(iItem)
 {
     lib = new IShellLibrary();
     lib.LoadLibraryFromItem(iItem, readOnly ? STGM.STGM_READ : STGM.STGM_READWRITE);
 }