ILRemoveLastID function (shlobj_core.h)

Removes the last SHITEMID structure from an ITEMIDLIST structure.

Syntax

BOOL ILRemoveLastID(
  [in, out, optional] PUIDLIST_RELATIVE pidl
);

Parameters

[in, out, optional] 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

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)