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?
|
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 SHGetDesktopFolder in order to get an instance of IShellFolder and calling its EnumObjects method to retrieve a IEnumIDList 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 SHFileOperation or the newer IFileOperation. Do you have a minimum compatibility requirement? If XP and newer is okay, then you may want to look at WPD 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