-
I am not getting any errors from I tried using both the handle returned from Even if it is not supported, I think it is a bug that |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
DetourUpdateProcessWithDll is for internal use of DetourCreateProcessWithDll; it creates the process suspended, adds the DLL to the process's IAT using DetourUpdateProcessWithDll, then resumes the process, causing the loader to load that DLL. If you apply it to an already running process, then that won't work as the loader has already processed the IAT. If you want to forcefully load a DLL into a process that has already been launched, try using CreateRemoteThread + LoadLibrary (or just LoadLibrary if it's in your own process). |
Beta Was this translation helpful? Give feedback.
DetourUpdateProcessWithDll is for internal use of DetourCreateProcessWithDll; it creates the process suspended, adds the DLL to the process's IAT using DetourUpdateProcessWithDll, then resumes the process, causing the loader to load that DLL. If you apply it to an already running process, then that won't work as the loader has already processed the IAT.
If you want to forcefully load a DLL into a process that has already been launched, try using CreateRemoteThread + LoadLibrary (or just LoadLibrary if it's in your own process).