Advertisement
captmicro

Unknown

Nov 4th, 2010
246
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.44 KB | None | 0 0
  1. typedef BOOL (WINAPI *_AW)(HWND, DWORD, DWORD);
  2.  
  3. _AW AnimateWin = 0;
  4. HWND hWindow = NULL;
  5.  
  6. /* Anti OllyDbg */
  7. hWindow = FindWindowA("OLLYDBG", 0);
  8. hWindow = FindWindowExA(hWindow, 0, "MDIClient", 0);
  9. //hWindow = FindWindowExA(hWindow, 0, "ACPU", 0);
  10. if (hWindow != NULL)
  11. {
  12.     AnimateWin = (_AW)GetProcAddress(
  13.         LoadLibrary("user32.dll"),
  14.         "AnimateWindow");
  15.     if (AnimateWin != 0)
  16.         AnimateWin(hWindow, 1000, 0x00000010 | 0x00010000);
  17. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement