Ejemplo n.º 1
0
        /// <summary>
        /// This function is used to read the value of MHL feature functions of double type. MHL doubles are 64 bit floating point values.
        /// </summary>
        /// <param name="name">Name of the requested feature</param>
        /// <exception cref="System.ArgumentException">If exceptions are enabled, on failure exception is thrown with valid error message.</exception>
        /// <returns>double value for requested feature. NaN constant on failure (0xFFFFFFFF in hexadecimal), if exceptions are not enabled.</returns>
        /// <remarks>On failure, use GetLastError() ot GetLastErrorMessage() for more information.</remarks>
        public double GetDouble(string name)
        {
            double ret = 0;

            MHLSRV._MHL_GetDouble(loadedDrvHandle, name, ref ret);

            if (throwsException && this.GetLastError() != 0)
            {
                throw new System.ArgumentException("Get double Failed " + name, "Error " + this.GetLastError().ToString() + "; " + this.GetLastErrorMessage());
            }
            return(ret);
        }