////////////////////////////////////////////// /// <summary> /// Constructs a TapeStream /// </summary> /// <param name="drive">TapeDrive to read/write from</param> public TapeStream(TapeDrive drive) { if (!drive.Loaded) { drive.Load(); } tapeDrive = drive; }
/// <summary> /// Gets the tape media parameters /// </summary> /// <returns>Class containing media parameters</returns> public static TapeMediaInformation GetTapeMediaParameters(TapeDrive tapeDrive) { UInt32 size; TapeMediaInformation tapeDriveInfo = new TapeMediaInformation(); GetTapeParameters(tapeDrive.Handle, 0, out size, tapeDriveInfo); return(tapeDriveInfo); }
////////////////////////////////////////////// /// <summary> /// Constructs a TapeStream /// </summary> /// <param name="drive">TapeDrive to read/write from</param> public TapeStream(TapeDrive drive) { if (!drive.Loaded) drive.Load(); tapeDrive = drive; }
/// <summary> /// Gets the tape drive parameters /// </summary> /// <returns>Class containing drive parameters</returns> public static TapeDriveInformation GetTapeDriveParameters(TapeDrive tapeDrive) { UInt32 size; TapeDriveInformation tapeMediaInfo = new TapeDriveInformation(); GetTapeParameters(tapeDrive.Handle, 1, out size, tapeMediaInfo); return tapeMediaInfo; }
public static void SetTapeMediaParameters(TapeDrive tapeDrive, SetTapeMediaInformation info) { SetTapeParameters(tapeDrive.Handle, 0, info); }