Is there any known way (whether documented or otherwise) to create an ITEMIDLIST
structure from a path, such as with ILCreateFromPath
, while bypassing the MAX_PATH
limitation on the length?
Asked
Active
Viewed 526 times
5

user541686
- 205,094
- 128
- 528
- 886
-
Did you try to prefix `\\?\pszPath` with Unicode version `ILCreateFromPathW`? You could also try [`SHSimpleIDListFromPath`](http://msdn.microsoft.com/en-us/library/bb762254%28VS.85%29.aspx) (it is *not* deprecated) – kobik Apr 03 '12 at 12:08
-
I am not having an issue with ILCreateFromPathW under Windows 7. Anyone else? – pcunite Apr 11 '14 at 18:30
1 Answers
1
You can use SHParseDisplayName instead. The documentation does not mention any limitation of the length of pszName.

Norbert Willhelm
- 2,579
- 1
- 23
- 33
-
-
1It is probably not possible since Windows shell does not support long pathes (see http://msdn.microsoft.com/en-us/library/windows/desktop/aa365247(v=vs.85).aspx for reference). – Norbert Willhelm Apr 02 '12 at 20:52