Bonita Montero
2024-06-12 15:29:37 UTC
#include <Windows.h>
#include <iostream>
#include <intrin.h>
using namespace std;
int main()
{
__try
{
__debugbreak();
cout << "hello world" << endl;
}
__except( []( EXCEPTION_POINTERS &ep )
{
ep.ContextRecord->Rip += 1;
return EXCEPTION_CONTINUE_EXECUTION;
}( *GetExceptionInformation() ) )
{
}
}
Try this with a signal handler, or you may prefer suicide.
#include <iostream>
#include <intrin.h>
using namespace std;
int main()
{
__try
{
__debugbreak();
cout << "hello world" << endl;
}
__except( []( EXCEPTION_POINTERS &ep )
{
ep.ContextRecord->Rip += 1;
return EXCEPTION_CONTINUE_EXECUTION;
}( *GetExceptionInformation() ) )
{
}
}
Try this with a signal handler, or you may prefer suicide.