Example #1
0
        public static ShellObjectCollection FromShellItem(IShellItem dataObject)
        {
            IShellItemArray shellItemArray;
            Guid            iid = new Guid(ShellIIDGuid.IShellItemArray);

            ShellNativeMethods.SHCreateShellItemArrayFromShellItem(dataObject, ref iid, out shellItemArray);
            return(new ShellObjectCollection(shellItemArray, true));
        }