ILFindLastID function

Returns a pointer to the last SHITEMID structure in an ITEMIDLIST structure.

Syntax

PUITEMID_CHILD ILFindLastID(
  PCUIDLIST_RELATIVE pidl
);

Parameters

pidl

Type: PCUIDLIST_RELATIVE

A pointer to an ITEMIDLIST structure.

Return Value

Type: PUITEMID_CHILD

A pointer to the last SHITEMID structure in pidl.

Remarks

This function does not clone the last item, so you do not have to call ILFree to release the returned pointer.

Requirements

   
Windows version Windows XP [desktop apps only] 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)