/////////////////////////////////// // Set Functions /// <summary> /// This function is used to write a DWORD value to MHL features that are of DWORD type. /// The DWORD 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">DWORD 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 SetDword(string name, uint val) { if (MHLSRV._MHL_SetDword(loadedDrvHandle, name, val) == 0) { if (throwsException) { throw new System.ArgumentException("Cannot set DWORD " + name, "Error " + this.GetLastError().ToString() + "; " + this.GetLastErrorMessage()); } return(false); } return(true); }
/////////////////////////////////// // Set Functions /// <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 SetDword(int handle, String name, uint val) { return(MHLSRV._MHL_SetDword(handle, name, val)); }