I use SHBrowseForFolder() to select a folder on MTP device. Then I want to copy file from/to there. IPortableDeviceContent interface (from Windows Portable Devices SDK) seems suitable, but how to get it for the object with PIDL, returned from SHBrowseForFolder()?
(I asked similar question about obtaining IWMDMStorageControl interface: How to get IWMDMStorageControl interface for given PIDL)
We can get the displayed name, associated with the PILD from SHBrowseForFolder() in this way:
Then we can parse the path and traverse through MTP file structure by the same path. It is not elegant solution, but it is the only one which I found.