The script that was originally included here is now superseded by:
https://github.com/KBNLresearch/detectStorageMediaType
See also my blog post:
Identification of physical storage media and devices with Python and the Windows API
The script that was originally included here is now superseded by:
https://github.com/KBNLresearch/detectStorageMediaType
See also my blog post:
Identification of physical storage media and devices with Python and the Windows API
Some more resources/examples from a Google search on "winioctlcon.py" that might be useful: