public static bool EXISTS(string dll_name, string proc_name) { var dll = NativeMethods.LoadLibrary(dll_name); var proc = NativeMethods.GetProcAddress(dll, proc_name); return(proc != UIntPtr.Zero); }