ILRemoveLastID function

Removes the last SHITEMID structure from an ITEMIDLIST structure.

Syntax

BOOL ILRemoveLastID(
  PUIDLIST_RELATIVE pidl
);

Parameters

pidl

Type: PUIDLIST_RELATIVE

A pointer to the ITEMIDLIST structure to be shortened. When the function returns, this variable points to the shortened structure.

Return Value

Type: BOOL

Returns TRUE if successful, FALSE otherwise.

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)