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