WinAPI calls to access USB storage which has no drive letter?

后端 未结 3 1624
走了就别回头了
走了就别回头了 2021-02-15 15:18

I\'ve noticed, that some USB storage devices don\'t register in Windows as regular drives, in that they don\'t even get assigned a drive letter. Therefore, I can\'t apparently a

3条回答
  •  盖世英雄少女心
    2021-02-15 16:05

    If you're talking about mobile devices that appears like mounted volumes but without any mounted points, well they are called Windows Portable Devices and they are not mounted volumes.

    Windows doesn't access the file system directly, it only communicates with them through the Media Transfer Protocol (MTP) or Picture Transfert Protocol (PTP) and creates a shell namespace extension to present a virtual folder to the user.

    If you want to communicate with these kind of devices, then you most probably want to use the WPD API.

提交回复
热议问题