代码转自https://bbs.pediy.com/thread-225740.htm
#include "stdio.h"
#include "windows.h"
#include "tchar.h"
void
AD_BreakPoint()
{
printf
(
"SEH : BreakPoint\n"
);
__asm {
// install SEH
push handler
push
DWORD
ptr fs:[0]
mov
DWORD
ptr fs:[0], esp
// generating exception
int
3