Shell32ILIsParent Method

Tests whether an ITEMIDLIST structure is the parent of another ITEMIDLIST structure.

Definition

Namespace: DevCase.Win32.NativeMethods
Assembly: DevCase.net48 (in DevCase.net48.dll) Version: 6.0.0.0 (6.0)
XMLNS for XAML: Not mapped to an xmlns.
[DllImportAttribute("Shell32.dll", ExactSpelling = true, SetLastError = true)]
public static bool ILIsParent(
	IntPtr pidl1,
	IntPtr pidl2,
	bool immediate
)

Parameters

pidl1  IntPtr
A pointer to an ITEMIDLIST (PIDL) structure that specifies the parent. This must be an absolute PIDL.
pidl2  IntPtr
A pointer to an ITEMIDLIST (PIDL) structure that specifies the child. This must be an absolute PIDL.
immediate  Boolean
A Boolean value that is set to to test for immediate parents of pidl2, or to test for any parents of pidl2.

Return Value

Boolean
Returns if pidl1 is a parent of pidl2.

If fImmediate is set to , the function only returns if pidl1 is the immediate parent of pidl2. Otherwise, the function returns .

Remarks

See Also