I have trying to hook WinApi using AppInitHook. So it works perfectly but I need to hook only some processes not all. The question is how to get process id where dll is loaded? For example dll was loaded for MyApp.exe, how can I get this process id?
Regarsd!
ps sorry im not hardcore WinApi programmer and my question mybe so easy, but its now hard for me)