0

In my project, the exe is an third party one and it knows the location of my parent DLL which is located in the same folder as mine. like EXE (directory A) => Parent DLL(Directory B) => My DLL (Directory B). the problem is when the parent DLL tries to load MY DLL, it always searches in EXE directory (directory A) instead of the (directory B).

I fixed this issue in Windows by using VirtualQuery, which return the handle of the parent DLL (but not the EXE ) and got the path of the parent DLL using GetModuleFileName. Please let me know if there are any equivalent method available in Linux. I know **proc ** is there to get the exe path. but I want to get the parent DLL path.

0 Answers0