It is possible to enumerate all the files in an MTP device's file system and then get object id's for each file/folder in the system.
My questions are:
I have checked the Programmer's reference page in msdn website but did not find anything relevant. Am I missing something ?
Thanks!
Using IPortableDeviceValues (which you get from the IPortableDeviceProperties::GetValues() method), query for WPD_OBJECT_CONTENT_TYPE. It will return WPD_CONTENT_TYPE_FOLDER if the object is a folder.
Using the IPortableDeviceContent::EnumObjects() method, you can enumerate the content of any folder objects.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With