Loader Lock
what is loader lock ?
Loader Lock is a special internal lock , windows holds while loading or unloading DLLs
So Windows restricts these operations inside DllMain to avoid deadlocks or hangs.
So DLL Sideloading is not possible.
Inside DllMain, Windows...
dll-loader-lock.hashnode.dev1 min read