예제 #1
0
        /// <summary>
        /// This function is used to read the value of MHL feature functions of INT type. MHL Integers are 32 bit signed values.
        /// </summary>
        /// <param name="name">Name of the requested feature</param>
        /// <exception cref="System.ArgumentException">If exceptions are enabled, on failure exception is thrown with valid error message.</exception>
        /// <returns>INT value for requested feature. -1 on failure, if exceptions are not enabled.</returns>
        /// <remarks>On failure, use GetLastError() ot GetLastErrorMessage() for more information.</remarks>
        public int GetInt(string name)
        {
            int ret = MHLSRV._MHL_GetInt(loadedDrvHandle, name);

            if (throwsException && this.GetLastError() != 0)
            {
                throw new System.ArgumentException("Get INT Failed " + name, "Error " + this.GetLastError().ToString() + "; " + this.GetLastErrorMessage());
            }
            return(ret);
        }
예제 #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 GetInt(int handle, String name)
 {
     return(MHLSRV._MHL_GetInt(handle, name));
 }