5

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?

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 Answers1

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