I need to display a properties window for certain items: folders and files.
For a single element that displays property windows, it’s very simple - just set the .lpFile field. But I can’t get how to display the properties window for multiple items.
1) Enumerating files in .lpFile as "file1.txt" "file2.txt" "etc. does not work. Even if it does not work, because the list of files may be too large.
2) Work through PIDLIST_ABSOLUTE did not bring any results. You can create PIDLIST_ABSOLUTE for one file through ILCreateFromPath, but cannot merge several PIDLIST_ABSOLUTE into one.
Does anyone have a workaround? Any answers would be appreciated.
PS: As I recently understood, PIDLIST_ABSOLUTE is uniquely created for a specific unique object. Thus, two or more PIDLIST_ABSOLUTE cannot be combined. But the question is still relevant.
source
share