I am using CreateRemoteThread to load my DLL in another applications, but my question is how I can pass for exemple a string to my dll and retrive it from lpReserved ? I heard something like that is possible.
Asked
Active
Viewed 222 times
1 Answers
1
The remote process has a different virtual address space than the calling process, so indeed pointer values will be different. You would need to allocate memory specifically in the remote process, typically using VirtualAllocEx, which can allocate memory in a different process and return a pointer that's valid for that remote process only. You can pass this value via lpParameter.
I assume you mean lpParameter, and not lpReserved.
See also: DLL Injection with CreateRemoteThread
tenfour
- 36,141
- 15
- 83
- 142