Example #1
0
            public IShellItem GetParent()
            {
                var pidlCopy = new PIDL(PIDL);

                if (!pidlCopy.RemoveLastId())
                {
                    Marshal.ThrowExceptionForHR((int)new HRESULT(HRESULT.MK_E_NOOBJECT));
                }
                return(new ShellItemImpl(pidlCopy, true));
            }
Example #2
0
            internal ShellItemImpl InternalGetParent()
            {
                var pidlCopy = new PIDL(PIDL);

                return(pidlCopy.RemoveLastId() ? new ShellItemImpl(pidlCopy, true) : this);
            }