Click or drag to resize

FolderCompareRelativeIdLists Method (IntPtr, IntPtr, SHCIDS, Boolean)

Determines the relative order of two file objects or folders, given their item identifier lists.

Namespace:  ShellBoost.Core.WindowsShell
Assembly:  ShellBoost.Core (in ShellBoost.Core.dll) Version: 1.8.3.0
Syntax
C#
public int CompareRelativeIdLists(
	IntPtr relativePidl1,
	IntPtr relativePidl2,
	SHCIDS comparison = SHCIDS.SHCIDS_NONE,
	bool throwOnError = true
)

Parameters

relativePidl1
Type: SystemIntPtr
The first relative PIDL.
relativePidl2
Type: SystemIntPtr
The second relative PIDL.
comparison (Optional)
Type: ShellBoost.Core.WindowsShellSHCIDS
Specifies how the comparison should be performed.
throwOnError (Optional)
Type: SystemBoolean
true to throw error; otherwise false.

Return Value

Type: Int32
A negative return value indicates that the first item should precede the second (relativePidl1 < relativePidl2). A positive return value indicates that the first item should follow the second (relativePidl1 > relativePidl2). A return value of zero indicates that the two items are the same (relativePidl1 = relativePidl2).
See Also