Hello.
I'm doing process injection into remote process thread (using WriteProcessMemory with reallocations and CreateRemoteThread) and without using CRT (C-runtime). I'd like to use exceptions in my remote thread, but since I'm not using CRT I must use SEH exceptions. They work correctly without CRT in original process, but when I inject function into remote thread, the program crash when exception is thrown -- __except will not properly catch the exception.
How can I make SEH exceptions work in remote thread? I'm using the same entry point in original process and also in injected process, so the __SEH_prolog is executed in both threads. I'm compiling with /EHa option.
Thank you.
I'm doing process injection into remote process thread (using WriteProcessMemory with reallocations and CreateRemoteThread) and without using CRT (C-runtime). I'd like to use exceptions in my remote thread, but since I'm not using CRT I must use SEH exceptions. They work correctly without CRT in original process, but when I inject function into remote thread, the program crash when exception is thrown -- __except will not properly catch the exception.
How can I make SEH exceptions work in remote thread? I'm using the same entry point in original process and also in injected process, so the __SEH_prolog is executed in both threads. I'm compiling with /EHa option.
Thank you.