/// <summary> /// Determines if the function exists. /// </summary> /// <param name="functionName">Name of the function.</param> /// <returns>Returns true if the function exists, otherwise false.</returns> public bool FunctionExists(string functionName) { using (new CurrentDirectorySaver()) { IntPtr funcptr = AutoHotkeyDll.ahkFindFunc(functionName); return(funcptr != IntPtr.Zero); } }
/// <summary> /// Determines if the function exists. /// </summary> /// <param name="functionName">Name of the function.</param> /// <returns>Returns true if the function exists, otherwise false.</returns> public bool FunctionExists(string functionName) { IntPtr funcptr = AutoHotkeyDll.ahkFindFunc(functionName); return(funcptr != IntPtr.Zero); }