コード例 #1
0
 private static extern Int32 _GetRemovableVolumes(out RemovableVolumeInfoArray volumes, out ushort volumeCount);
コード例 #2
0
 /// <summary>
 /// Gives back a list of all removable volumes recognized by CONFIRE SHERLOCK
 /// </summary>
 /// <param name="volumes">A TCFS_REMOVABLE_VOLUMES structure which holds all information</param>
 /// <param name="volumeCount">The number of volumes inside the TCFS_REMOVABLE_VOLUMES structure.</param>
 /// <exception cref="Exception">if call was not successfull.</exception>
 public static void GetRemovableVolumes(out RemovableVolumeInfoArray volumes, out ushort volumeCount)
 {
     if (_GetRemovableVolumes(out volumes, out volumeCount) != 0)
     {
         throw new Exception("Api error");
     }
 }