如何将驱动器号与SCSI ID匹配 [英] How to Match Drive Letter to SCSI ID

查看:103
本文介绍了如何将驱动器号与SCSI ID匹配的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们已经转换了一个c ++应用程序,该应用程序可以使用ASPI访问scsi自动存储塔和scsi光盘驱动器以使用SPTI.该应用程序使用SetupDi调用来查找所有scsi设备及其ID.它还调用GetLogicalDriveStrings和GetDriveType 获取并显示由操作系统分配的驱动器号.我还没有弄清楚如何将驱动器号链接到scsi id.我想自动执行此操作,以防止用户向应用程序中输入不匹配的信息.

解决方案

嗨MesaCorp,

一旦获得DevicePathId(可以是scsi样式路径ID),请使用GetVolumeNameForVolumeMountPoint找出卷名,一旦获得卷名,便可以获取安装点.


We have converted a c++ application that accesses scsi jukebox and scsi optical drives with ASPI to use SPTI.  The application uses the SetupDi calls to find all of the scsi devices and their IDs.  It also calls GetLogicalDriveStrings and GetDriveType to get and display the drive letters assigned by the OS.  What I have not figured out is how to link the drive letters to the scsi ids.  I would like to do this automatically to prevent users from entering mismatched information into the application.

解决方案

Hi MesaCorp,

Once you get DevicePathId (that could be scsi style path id), use GetVolumeNameForVolumeMountPoint to find out the volume name, and once you get the volume name you'll be able to get mounting points.


这篇关于如何将驱动器号与SCSI ID匹配的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆