-
Notifications
You must be signed in to change notification settings - Fork 1k
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
How to hook an existing local process? #162
Labels
Comments
You will need to inject a DLL into the target process and can then use DetourUpdateThread in that injected DLL. A few ways you can inject a DLL is by using SetWindowsHookEx, SetWinEventHook, or CreateRemoteThread + LoadLibrary. |
I went with |
ghost
locked as resolved and limited conversation to collaborators
Jan 27, 2021
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
I am looking to hook an existing local process but can't find any clear documentation on how to do so.
I have tried, without success:
CreateToolhelp32Snapshot
to iterate threads followed byOpenThread
to callDetourUpdateThread
.OpenProcess
to callDetourUpdateProcessWithDll
.I checked #76 but feel the suggested approach is for the process itself. Is their any documentation on how Detours can be used for an existing local process?
The text was updated successfully, but these errors were encountered: