示例#1
0
        ///////////////////////////////////
        // Get Functions

        /// <summary>
        /// This function is used to read the value of MHL feature functions of DWORD type. MHL Dwords are 32 bit unsigned 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>DWORD 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 uint GetDword(string name)
        {
            uint ret = MHLSRV._MHL_GetDword(loadedDrvHandle, name);

            if (throwsException && this.GetLastError() != 0)
            {
                throw new System.ArgumentException("Get DWORD Failed " + name, "Error " + this.GetLastError().ToString() + "; " + this.GetLastErrorMessage());
            }
            return(ret);
        }
示例#2
0
        ///////////////////////////////////
        // Get 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 uint GetDword(int handle, String name)
        {
            return(MHLSRV._MHL_GetDword(handle, name));
        }