Delphi-PRAXiS

Delphi-PRAXiS (https://www.delphipraxis.net/forum.php)
-   Win32/Win64 API (native code) (https://www.delphipraxis.net/17-win32-win64-api-native-code/)
-   -   Delphi Copy files to mobile device (https://www.delphipraxis.net/199147-copy-files-mobile-device.html)

WojTec 29. Dez 2018 16:47

Copy files to mobile device
 
I need to copy files on Windows to disk without letter on mobile device (internal storage and SD card). Normally I'm using SHFileOperation, but it it want to to know target path. How to copy to such devices?

Assarbad 20. Feb 2019 10:06

AW: Copy files to mobile device
 
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.


Alle Zeitangaben in WEZ +1. Es ist jetzt 11:01 Uhr.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO © 2011, Crawlability, Inc.
Delphi-PRAXiS (c) 2002 - 2023 by Daniel R. Wolf, 2024 by Thomas Breitkreuz