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

EasyHook adding the executing dir to the system path #393

Open
michaelgorman opened this issue Dec 20, 2021 · 3 comments
Open

EasyHook adding the executing dir to the system path #393

michaelgorman opened this issue Dec 20, 2021 · 3 comments

Comments

@michaelgorman
Copy link

michaelgorman commented Dec 20, 2021

I have the easyhook..dll in a sub dir under the server exe that calls RemoteHooking.Inject and instead of the path to the sub dir where the easyhook.dll is the path to where the running exe / server is prefixed to the front of the system path, I think it is being done in RhInjectLibrary. It's creating a conflict for me because I have some dlls (not easyhook) that have the same names in the server dir as well as the injected app but the versions are different so the wrong dlls get loaded. Can this be changed to put the path where easyhook.dll resides instead?

@justinstenning
Copy link
Member

@michaelgorman see this PR: #347

@michaelgorman
Copy link
Author

@spazzarama I see the pull request is still open, do you know why the build failed? Seems like @UMU618 abandoned it, I would finish it but i dont have the knowledge working with the native build process

@UMU618
Copy link

UMU618 commented Jan 17, 2023

Some EXEs need a current directory that is different with the parent folder of it. so we need a new API: RhCreateAndInjectEx to support passing current directory for the EXE.

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

3 participants