/// <summary> /// This function is used to write binary data to MHL features that are of binary type. /// </summary> /// <param name="name">Name of the feature to set</param> /// <param name="val">Byte array to write</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 SetBin(string name, byte[] val) { if (MHLSRV._MHL_SetBin(loadedDrvHandle, name, val, val.Length) == 0) { if (throwsException) { throw new System.ArgumentException("Cannot set BIN " + 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 SetBin(int handle, String name, byte[] val) { return(MHLSRV._MHL_SetBin(handle, name, val, val.Length)); }