Advertisement
Guest User

Untitled

a guest
Jan 18th, 2014
636
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.76 KB | None | 0 0
  1. HHOOK MouseHook;
  2.  
  3. LRESULT CALLBACK MouseHookProc(int nCode, WPARAM wParam, LPARAM lParam)
  4. {
  5. if (nCode == HC_ACTION)
  6. {
  7. if(wParam == WM_RBUTTONDOWN || wParam == WM_LBUTTONDOWN)
  8. {
  9. MSLLHOOKSTRUCT *info=(MSLLHOOKSTRUCT*)lParam;
  10. if((info->flags & LLMHF_INJECTED) == LLMHF_INJECTED)
  11. {
  12. ExitProcess(-1);
  13. }
  14. }
  15. }
  16. return CallNextHookEx(MouseHook,nCode,wParam,lParam);
  17. }
  18.  
  19.  
  20. void AntiShotbotLogger()
  21. {
  22. HINSTANCE hInstance = GetModuleHandle(NULL);
  23.  
  24. MouseHook = SetWindowsHookEx( WH_MOUSE_LL, MouseHookProc, hInstance, NULL );
  25. MSG message;
  26. while (GetMessage(&message,NULL,0,0)) {
  27. TranslateMessage( &message );
  28. DispatchMessage( &message );
  29. }
  30.  
  31. UnhookWindowsHookEx(MouseHook);
  32. return;
  33. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement