Код: Выделить всё
int test(int a) {
return 0;
}
LONG WINAPI handler(EXCEPTION_POINTERS* p) {
if (p->ExceptionRecord->ExceptionCode == 0xDEAD)
{
std::cout ContextRecord->Dr0 = (DWORD64)func_point;
p->ContextRecord->Dr7 = (1 ExceptionRecord->ExceptionCode == EXCEPTION_SINGLE_STEP) {
std::cout
Подробнее здесь: [url]https://stackoverflow.com/questions/78532747/how-to-use-debug-registers-in-c[/url]