BExplorer.Shell.Interop.VistaBridge.ShellItemImpl.Compare C# (CSharp) Method

Compare() public method

public Compare ( IShellItem psi, SICHINT hint ) : int
psi IShellItem
hint SICHINT
return int
		public int Compare(IShellItem psi, SICHINT hint) {
			var other = (ShellItemImpl)psi;
			ShellItemImpl myParent = GetParent();
			ShellItemImpl theirParent = other.GetParent();

			if (Shell32.ILIsEqual(myParent.Pidl, theirParent.Pidl)) {
				return myParent.GetIShellFolder().CompareIDs((SHCIDS)hint, Shell32.ILFindLastID(Pidl), Shell32.ILFindLastID(other.Pidl));
			}
			else {
				return 1;
			}
		}