Given a volume (eg Z:), how to tell if that volume is on a device that is "removable"?

Posted by user15071 on Stack Overflow See other posts from Stack Overflow or by user15071
Published on 2010-05-18T06:00:13Z Indexed on 2010/05/20 19:00 UTC
Read the original article Hit count: 237

Filed under:
|

Hello, I want to know whether the disk that a given volume resides on is removable (CM_DEVCAP_REMOVABLE). Looking for pointers on win32.

Clarify: What I am really trying to find out is whether the disk that the volume resides on is connected on a port (eg. USB) that is external to the computer.

© Stack Overflow or respective owner

Related posts about Windows

Related posts about win32