Einzelnen Beitrag anzeigen

Benutzerbild von Assarbad
Assarbad

Registriert seit: 8. Okt 2010
Ort: Frankfurt am Main
1.234 Beiträge
 
#2

AW: Copy files to mobile device

  Alt 20. Feb 2019, 10:06
Well, it's kinda difficult to give a general answer. Besides, your question lacks detail.

Despite being only visible in the shell name space, your device (camera or mobile phone) will typically have its own display name. So in theory you should be able to abuse MSDN-Library durchsuchenSHGetDesktopFolder in order to get an instance of MSDN-Library durchsuchenIShellFolder and calling its EnumObjects method to retrieve a MSDN-Library durchsuchenIEnumIDList instance. Using that you should be able to forge a PIDL that corresponds to the shell namespace object representing your device and use that in MSDN-Library durchsuchenSHFileOperation or the newer MSDN-Library durchsuchenIFileOperation.

Do you have a minimum compatibility requirement? If XP and newer is okay, then you may want to look at MSDN-Library durchsuchenWPD Application Programming Interface, which may or may not be easier to wield in your scenario.
Oliver
"... aber vertrauen Sie uns, die Physik stimmt." (Prof. Harald Lesch)
  Mit Zitat antworten Zitat