【问题标题】:IMAPI2 How to to associate the UniqueID with the drive letterIMAPI2 如何将 UniqueID 与驱动器号相关联
【发布时间】:2012-01-21 07:54:58
【问题描述】:

我有以下代码:

        foreach (string uniqueRecorderID in discMaster)
        {
            MsftDiscRecorder2 discRecorder2 = new MsftDiscRecorder2();
            discRecorder2.InitializeDiscRecorder(uniqueRecorderID);
            comboBox1.Items.Add(discRecorder2);

        }
        comboBox1.SelectedIndex = 0;

问题是我想在组合框中显示驱动器号,因此用户可以选择他喜欢使用的驱动器,但仍然可以使用所选驱动器的 UniqueID 来刻录光盘。

那么有没有办法将 UniqueID 与驱动器号相关联?

谢谢大家。

【问题讨论】:

    标签: c# imapi drive-letter


    【解决方案1】:

    您可以使用与记录器关联的 VolumePathNames 属性。这包含设备的驱动器号和 NTFS 安装点列表。

    驱动器号应该在 discRecorder2.VolumePathNames [0] 中,但如果需要,您可以循环浏览列表并添加所有项目。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2015-08-16
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多