Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Load library from different path fails (LoadLibrary call fail). #31

Open
nathan130200 opened this issue Jul 10, 2024 · 3 comments
Open

Comments

@nathan130200
Copy link

Basically when attempt to inject any library from different directory than injector.exe root, the calls to LoadLibraryW always fail. I looked in the code, seems the injector load only for relative paths to injector.exe.

Same as #26

@nefarius
Copy link
Owner

What's your example to reproduce?

@nathan130200
Copy link
Author

nathan130200 commented Jul 10, 2024

The command injector.exe -p <pid of game after successful start> -i "C:\Projects\Game Helpers\bin\Debug\game-helpers.dll" and injector.exe in different path from C:\Projects\Game Helpers\bin\Debug, eg: E:\Programs\utils\injector.exe

Output same LoadLibraryW call failed in remote process.

If i place game-helpers.dll in same folder of injector.exe and call it directly -i game-helpers.dll works fine.

image

The example above is called after my launcher start game .exe file then get PID and inject that library. Since i need hook stuff in c++ functions before first call to CreateMutexA i must inject instantly into the game.

@nefarius
Copy link
Owner

Yeah that's definitely supposed to work like that, will investigate.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants