Esempio n. 1
0
                public static bool IsFunctionValid(string functionName)
                {
                    if (ADLLibrary == IntPtr.Zero)
                    {
                        return(false);
                    }

                    return(ADLImport.ADL_Main_Control_IsFunctionValid(ADLLibrary, functionName) == 1);
                }
Esempio n. 2
0
 /// <summary> Constructor</summary>
 private ADLCheckLibrary()
 {
     try {
         if (1 == ADLImport.ADL_Main_Control_IsFunctionValid(IntPtr.Zero, "ADL_Main_Control_Create"))
         {
             ADLLibrary = ADLImport.GetModuleHandle(ADLImport.Atiadlxx_FileName);
         }
     } catch (DllNotFoundException) { } catch (EntryPointNotFoundException) { } catch (Exception) { }
 }
Esempio n. 3
0
            /// <summary> Check the import function to see it exists or not</summary>
            /// <param name="functionName"> function name</param>
            /// <returns>return true, if function exists</returns>
            internal static bool IsFunctionValid(string functionName)
            {
                bool result = false;

                if (System.IntPtr.Zero != ADLCheckLibrary_.ADLLibrary)
                {
                    if (1 == ADLImport.ADL_Main_Control_IsFunctionValid(ADLCheckLibrary_.ADLLibrary, functionName))
                    {
                        result = true;
                    }
                }
                return(result);
            }