/// <summary> /// This function is used to write a integer value to MHL features that are of integer type. /// The INT data type is defined as a 32 bit signed integer in MHL. /// </summary> /// <param name="name">Name of the feature to set</param> /// <param name="val">Int 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 SetInt(string name, int val) { if (MHLSRV._MHL_SetInt(loadedDrvHandle, name, val) == 0) { if (throwsException) { throw new System.ArgumentException("Cannot set INT " + name, "Error " + this.GetLastError().ToString() + "; " + this.GetLastErrorMessage()); } return(false); } return(true); }
/// <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 SetInt(int handle, String name, int val) { return(MHLSRV._MHL_SetInt(handle, name, val)); }