To detour SetUnhandledExceptionFilter to a dummy function, don't use WriteProcessMemory which is usually used for inter-process writes and debugging. Instead, use more common technique based on VirtualProtect.
To detour SetUnhandledExceptionFilter to a dummy function, don't use WriteProcessMemory which is usually used for inter-process writes and debugging. Instead, use more common technique based on VirtualProtect.