khang06 / mhynot2

A user-mode emulator for the mhyprot2.sys driver
113 stars 28 forks source link

Failure to inject #2

Closed jiaaluo closed 2 years ago

jiaaluo commented 2 years ago

From cheat engine 7.4 I seem to be getting this error message dllInject failed: Failed injecting the DLL Force load module failed:failed finding address of KERNEL32!InitOnceExecuteOnce

khang06 commented 2 years ago

you launched the game through x64dbg and injected it before the game initialized, right?

jiaaluo commented 2 years ago

yes, i try through launcher executable and that seems to "work" however no console application seems to be run

for example running launcher as admin, it will only run that way however no console seems to be run

when run with no admin permissions it seems genshin starts then stos

khang06 commented 2 years ago

did you compile the dll with static minhook? minhook as a dynamic library doesn't seem to inject properly

jiaaluo commented 2 years ago

i did compile with static minhook

It seems I was targeting an incorrect lib file, thank you for the help

correct targeting should be "libMinHook.x64.lib" for any future reference

khang06 commented 2 years ago

yeah, i probably should've clarified that i only had the debug build configuration set up properly