I'm trying to write a program, which will catch the event of a dll load into memory.
For that purpose I put a hook on LdrLoadDll
API.
That works very fine, but the problem is that this API doesn't catch dlls which loaded as dependencies.
For example -
LoadLibraryW(L"C:\...\chrome_child.dll");
using LdrLoadDl
I will catch chrome_child.dll
loading to memory, but I won't catch win32u.dll
which is one of chrome_child.dll
dependencies.
Does anyone know a better API to use for that purpose?