ILClone function (shlobj_core.h)

Clones an ITEMIDLIST structure.

Syntax

PIDLIST_RELATIVE ILClone(
  [in] PCUIDLIST_RELATIVE pidl
);

Parameters

[in] pidl

Type: PCUIDLIST_RELATIVE

A pointer to the ITEMIDLIST structure to be cloned.

Return value

Type: PIDLIST_RELATIVE

Returns a pointer to a copy of the ITEMIDLIST structure pointed to by pidl.

Remarks

When you are finished with the cloned ITEMIDLIST structure, release it with ILFree to avoid memory leaks.

Requirements

Requirement Value
Minimum supported client Windows XP [desktop apps only]
Minimum supported server Windows Server 2003 [desktop apps only]
Target Platform Windows
Header shlobj_core.h (include Shlobj.h)
Library Shell32.lib
DLL Shell32.dll (version 5.0 or later)