No I'm not running any AV or other security software. I even disabled Windows Defender.
The folder has full permission for Everyone and it's outside user's specific location.
I also tried it with Windows 7 32 bit, but also didn't work. nothing was injected.
Strange thing is that, in case of failed injection attempt, there's a code for throwing an error message in PrintForm.pas, but nothing is showing up...
- Code: Select all
if not InjectLibrary(CDriverName, 'HookPrintAPIs32.dll', ALL_SESSIONS, true, 'Project1.exe') then
// if you want your stuff to run in under-privileges user accounts, too,
// you have to do write a little service for the NT family
// an example for that can be found in the "HookProcessTermination" demo
MessageBox(Handle, 'only users with administrator privileges can run this demo', 'information...', MB_ICONINFORMATION);
InjectLibrary returns true, but no dll is being injected..?
I'm not blaming madCodeHook madshi, I had perfect experience with it, just trying to find the issue
I'm still thinking I'm missing something, but ran out of ideas.
The only thing is that, I'm running the demos inside a VM, but I don't think that could be an issue. Actually, I'll try to run your demo from hte host OS and post the result...