检测调试器(过StrongOD)

放码(⊙_⊙)~~

方法一:

//GetCursorPos,WindowFromPoint
POINT point;
if (GetCursorPos(&point))
{
  char buf[256];
  HWND hwnd = WindowFromPoint(point);
  HWND hwnd_tmp = hwnd;
  while (hwnd_tmp)
  {
      hwnd_tmp = GetParent(hwnd_tmp);
      if (hwnd_tmp)  hwnd = hwnd_tmp;
  }

  if (GetWindowText(hwnd, buf, 256))
  {
    for (unsigned int i=0 ;i

方法二:

//GetDesktopWindow,GetWindow
HWND decwnd = GetDesktopWindow();
if (enumwindows(decwnd))
  goto FIND;
return 0;
BOOLEAN enumwindows( HWND hwnd_ )
{
  HWND hwnd = GetWindow(hwnd_, GW_CHILD);
  if (hwnd)
  {
    char buf[256];
    if (GetWindowText(hwnd, buf, 256))
    {
      //MessageBox(NULL, buf, "god", MB_OK);
      for (unsigned int i=0 ;i

很简单,大家一看都明白!其实就是sky++的方法,过StrongOD v0.4.3!

同步发表在:http://bbs.pediy.com/showthread.php?t=138937


你可能感兴趣的:(逆向,调试)