Quote:
Originally Posted by SLV
Hook LoadLibraryEx -> check if dll is your -> fix flags to DONT_RESOLVE_DLL_REFERENCES -> call original -> set hooks -> call DllMain.
|
This is a bad solution... quote from msdn:
If this value is used, and the executable module is a DLL, the system does not call DllMain for process and thread initialization and termination.
Also, the system does not load additional executable modules that are referenced by the specified module.
https://msdn.microsoft.com/en-us/library/windows/desktop/ms684179%28v=vs.85%29.aspx