Export (0) Print
Expand All
Expand Minimize
1 out of 1 rated this helpful - Rate this topic

ILCreateFromPath function

Returns the ITEMIDLIST structure associated with a specified file path.

Syntax


PIDLIST_ABSOLUTE ILCreateFromPath(
  _In_  PCTSTR pszPath
);

Parameters

pszPath [in]

Type: PCTSTR

A pointer to a null-terminated Unicode string that contains the path. This string should be no more than MAX_PATH characters in length, including the terminating null character.

Return value

Type: PIDLIST_ABSOLUTE

Returns a pointer to an ITEMIDLIST structure that corresponds to the path.

Remarks

Call ILFree to release the ITEMIDLIST when you are finished with it.

Requirements

Minimum supported client

Windows XP [desktop apps only]

Minimum supported server

Windows Server 2003 [desktop apps only]

Header

Shlobj.h

Library

Shell32.lib

DLL

Shell32.dll (version 5.0 or later)

Unicode and ANSI names

ILCreateFromPathW (Unicode) and ILCreateFromPathA (ANSI)

 

 

Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

ADD
Show:
© 2014 Microsoft. All rights reserved.