Thanks, I've done some digging:
https://stackoverflow.com/questions/23778814/tape-drive-directory-path-on-windows-8-1
"Most likely you'll want to enumerate the attached devices using SetupDiGetClassDevs()
passing GUID_DEVINTERFACE_TAPE
as the class GUID, followed by SetupDiEnumDeviceInterfaces()
, then you can get the device path using SetupDiGetDeviceInterfaceDetail()
. You can then open it using CreateFile()
. "
Looks like I need to use Setupapi.