Example #1
0
 /// <summary>
 /// This function is used to write a string to MHL features that are of string type.
 /// </summary>
 /// <param name="name">Name of the feature to set</param>
 /// <param name="val">String 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 SetString(string name, string val)
 {
     if (MHLSRV._MHL_SetString(loadedDrvHandle, name, val) == 0)
     {
         if (throwsException)
         {
             throw new System.ArgumentException("Cannot set STRING " + name, "Error " + this.GetLastError().ToString() + "; " + this.GetLastErrorMessage());
         }
         return(false);
     }
     return(true);
 }
Example #2
0
 /// <summary>PROVIDED ONLY FOR BACKWARD COMPATIBILITY. Please use new HotkeyHelper class.</summary>
 /// <remarks>PROVIDED ONLY FOR BACKWARD COMPATIBILITY. Please use new MHLDriver class.</remarks>
 public int SetString(int handle, String name, String val)
 {
     return(MHLSRV._MHL_SetString(handle, name, val));
 }