Exemplo n.º 1
0
 /// <summary>
 /// This function is used to write a double value to MHL features that are of double type.
 /// The double data type is defined as a 32 bit unsigned integer in MHL.
 /// </summary>
 /// <param name="name">Name of the feature to set</param>
 /// <param name="val">double value to set</param>
 /// <exception cref="System.ArgumentException">If exceptions are enabled, on failure exception is thrown with valid error message.</exception>
 /// <returns>true on success, false on failure.</returns>
 /// <remarks>On failure, use GetLastError() ot GetLastErrorMessage() for more information.</remarks>
 public bool SetDouble(string name, double val)
 {
     if (MHLSRV._MHL_SetDouble(loadedDrvHandle, name, ref val) == 0)
     {
         if (throwsException)
         {
             throw new System.ArgumentException("Cannot set double " + name, "Error " + this.GetLastError().ToString() + "; " + this.GetLastErrorMessage());
         }
         return(false);
     }
     return(true);
 }