/// <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);
        }
        /// <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 extern UInt32 GetTapeParameters(
     UInt32 hDevice,           // handle to device
     UInt32 dwOperation,        // information type
     out UInt32 lpdwSize,         // information
     TapeDriveInformation lpTapeInformation  // tape media or drive information
     );
 public static extern UInt32 GetTapeParameters(
     UInt32 hDevice,                        // handle to device
     UInt32 dwOperation,                    // information type
     out UInt32 lpdwSize,                   // information
     TapeDriveInformation lpTapeInformation // tape media or drive information
     );