Shell32ILFindChild(PIDL, PIDL) Method

Determines whether a specified ITEMIDLIST structure is the child 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", SetLastError = true)]
public static PIDL ILFindChild(
	PIDL pidlParent,
	PIDL pidlChild
)

Parameters

pidlParent  PIDL
A pointer to the parent ITEMIDLIST structure.
pidlChild  PIDL
A pointer to the child ITEMIDLIST structure.

Return Value

PIDL
Returns a pointer to the child's simple ITEMIDLIST structure if pidlChild is a child of pidlParent.

The returned structure consists of pidlChild, minus the SHITEMID structures that make up pidlParent.

Returns Zero if pidlChild is not a child of pidlParent.

Note: The returned pointer is a pointer into the existing parent structure. It is an alias for pidlChild. No new memory is allocated in association with the returned pointer. It is not the caller's responsibility to free the returned value.

Remarks

See Also