notepad-plus-plus-legacy/PowerEditor
Waldi Ravens 31ae813286
Allow plugins to load private DLL files from the plugins folder
The problem is the way Windows searches for dynamically linked DLLs (Dynamic-Link Library Search Order).
For example, LuaScript.dll is the plug-in DLL, loaded by Notepad++.exe, and lua53.dll is the auxiliary DLL, required by LuaScript.dll and also by user-installed Lua modules. Both DLLs should be located in \plugins\LuaScript. But, when Notepad++ calls LoadLibrary to load LuaScript.dll, Windows will not find the dynamically linked lua53.dll, hence the LoadLibrary call fails. This happens, because Windows will look in the application directory (which is the location of Notepad++.exe), and not in the LuaScript.dll directory.
To make Windows search in the LuaScript.dll directory, Notepad++ needs to call LoadLibraryEx with the LOAD_LIBRARY_SEARCH_DLL_LOAD_DIR flag.

Close #5802, close #5853
2019-07-04 20:29:05 +02:00
..
bin Notepad++ 7.7.1 release 2019-06-20 02:13:55 +02:00
gcc MinGW GCC update 2016-10-31 14:03:29 +01:00
installer Fix a typo 2019-07-03 20:32:31 +02:00
misc/chameleon Remove the old icon 2016-09-21 09:06:22 +02:00
scintilla.original.forUpdating Upgrade Scintilla - Update Scintilla build informtion 2019-05-08 22:10:04 +02:00
src Allow plugins to load private DLL files from the plugins folder 2019-07-04 20:29:05 +02:00
Test/FunctionList Remove BOM from 2 localization files 2019-03-15 03:13:31 +01:00
visual.net Remove VS2013 project file. 2019-05-31 22:35:32 +02:00