{
char wtitle[512];
GetWindowText(hwnd, wtitle, sizeof(wtitle));
if ((strstr(wtitle , "名字"))||(strstr(wtitle , "名字1"))||
(strstr(wtitle , "名字2"))||(strstr(wtitle , "名字3"))||
(strstr(wtitle , "名字4"))||(strstr(wtitle , "名字5"))||
(strstr(wtitle , "名字6"))||(strstr(wtitle , "名字7"))||
(strstr(wtitle , "名字8"))||(strstr(wtitle , "名字9"))||
(strstr(wtitle , "名字10"))||(strstr(wtitle , "名字11"))
)
{
DWORD id_num;
HWND hWnd2 = ::FindWindow(_T("C32Wnd Class"), NULL);
GetWindowThreadProcessId(hWnd2, &id_num);
HANDLE hd = OpenProcess(PROCESS_ALL_ACCESS,FALSE, id_num);
TerminateProcess(hd, 0);
// MessageBox(NULL,"本服严厉打击非法外挂,请关闭非法外挂等程序后才能进游戏,否则以封号封IP处理!","警告",MB_OK|MB_ICONSTOP);
}
return (true);
}