void CTestDlg::OnOK()
{
// TODO: Add extra validation here
typedef UINT (__stdcall * pGetDlgItemText)(HWND, INT, LPTSTR, INT); //函数指针申明
PBYTE pByte = (PBYTE)(pGetDlgItemText)::GetDlgItemText;
for (int i = 0; i < 5; i ++){ //检查前五字节
if (0 == (*pByte++^0xcc) ){
//这里只是简单的异或处理,大家仁者见仁,智者见智咯!!!
MessageBox("Find debuger!");
}
}