ILCreateFromPath function
Applies to: desktop apps only
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 |
|---|---|
|
Minimum supported server | Windows Server 2003 |
|
Header |
|
|
Library |
|
|
DLL |
|
|
Unicode and ANSI names | ILCreateFromPathW (Unicode) and ILCreateFromPathA (ANSI) |
Send comments about this topic to Microsoft
Build date: 3/7/2012
pszPath needs to be a full path
pszPath needs to be a full path, if pszPath is a relative path this function will fail.
- 4/19/2011
- feuerblitz03