(self, exc)
| 219 | return windef.EXCEPTION_CONTINUE_EXECUTION |
| 220 | |
| 221 | def remove_hxbp_callback(self, exc): |
| 222 | with self.NewCurrentException(exc): |
| 223 | exp_code = self.get_exception_code() |
| 224 | context = self.get_exception_context() |
| 225 | exp_addr = context.pc |
| 226 | hxbp_used = self.remove_hxbp_in_context(context, self.data) |
| 227 | windows.current_process.write_memory(exp_addr, b"\x90") |
| 228 | # Raising in the VEH is a bad idea.. |
| 229 | # So better give the information to triggerer.. |
| 230 | if hxbp_used is not None: |
| 231 | self.get_exception_context().Eax = exp_addr |
| 232 | else: |
| 233 | self.get_exception_context().Eax = 0 |
| 234 | return windef.EXCEPTION_CONTINUE_EXECUTION |
| 235 | |
| 236 | def setup_hxbp_in_context(self, context, addr): |
| 237 | for i in range(4): |
nothing calls this directly
no test coverage detected