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:
- Using
CreateToolhelp32Snapshot to iterate threads followed by OpenThread to call DetourUpdateThread.
- Using
OpenProcess to call DetourUpdateProcessWithDll.
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?