How to upload and download data from a USB device using MTP (device is not a camera)

I hope you can help me - my task is to upload and download some files to a USB device using MTP.

I found this great example: http://www.codeproject.com/Articles/30726/Transferring-D90-images-with-WIA , and now I can transfer some images from my smartphone to a PC, and I was able to improve this example. to give me the same device information as in the device manager (e.g. ID, manufacturer, PnP ID string, etc.). This example uses WIA, and I assume it will be possible to transfer images from the device, right?

So my question is: what method is needed to upload and download files to a USB device connected via MTP? I spend days searching google, but I have not found a working solution or working example. Microsoft does not help with this problem, basically all the links on their page are dead.

Hope there is someone here who can push me in the right direction so that I can solve this problem.

Thanks in advance.

+8
c ++ c # usb mtp
source share
1 answer

I believe the Windows Portable Devices (WPD) API is what you need.

http://msdn.microsoft.com/en-us/library/dd389005(v=vs.85).aspx

+2
source share

All Articles