By looking at the code, it seems that your demo also managed to load the driver successfully but failed to inject the dll.
- 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);
The driver is configured with my hook dll's of course with madConfigDrv.
Thanks again for your help madshi
P.S. as a last resort, I'll purchase the certificate, but https://www.globalsign.com/en/code-signing-certificate/ has 2 types, standard and Extended Validation certificates. Do you know if standard version (priced at $219) is compatible with code hook driver?