Given filesystem pathname, how to retrieve corresponding ABSOLUTE ITEMIDLIST?
Looks like it can be done in one call or two, but which functions i have/must/should to use for that?
开发者_开发知识库I'm looking for best-practice approach, eg: API specially designed for path -> idl translation.
If it's really a file-system path, call ILCreateFromPath
. If you need to handle non-file-system objects as well (like My Computer, or Network Neighborhood), then use SHParseDisplayName
.
精彩评论