Question

Does anybody know to get a file handle ( e.g. via CreateFile() ) to a 'portable device' ? If that is possible ? Like what is possible for drive letters (for instance "\\.\c:") and physical drives (for instance "\\.\PhysicalDrive0")

With portable devices I mean smart phones, gps etc that you can connect via USB to the system. Windows shows a portable device from where you can (for instance) access the internal memory or SD card.

I would like, if possible, to get handles directly to the SD card or other memory inside the 'portable device' so that I can do file reads of the data.

Is that possible and if so how ?

Was it helpful?

Solution

Based on the comments to my question, the answer to my question is NO. You can't get a handle to the portable devices. At least not how and for what I want it.

Unless the driver(s) expose the internal memory and/or drive(s) via drive letter(s), but even then you can't be sure that you get true raw access to the device, since the drivers might be faking the data to make one file system look like another.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top