I'm trying to transfer files to android MTP device in windows app made with C#. How do i create folder on MTP device in windows app?
I'm using WPD API and I succeeded in sending the file to the MTP device.
var WPD_OBJECT_PARENT_ID = new _tagpropertykey();
WPD_OBJECT_PARENT_ID.fmtid = new Guid(0xEF6B490D, 0x5CD8, 0x437A, 0xAF, 0xFC, 0xDA, 0x8B, 0x60, 0xEE, 0x4A, 0x3C);
WPD_OBJECT_PARENT_ID.pid = 3 ;
I read above code in PortableDevices API. I don'n now what guid means.
I thought api would support the function to create folders. But, However, api support only reading, writing and deleting files.
How do i create folrder on MTP device? Or, is there any good C# api for mtp device?
I referred to the portable device code written in C++. Three keys are required to create a folder.
WPD_OBJECT_CONTENT_TYPE = WPD_CONTENT_TYPE_FOLDERWPD_OBJECT_PARENT_IDWPD_OBJECT_NAME