pinigin

FlashIt

Feb 24th, 2019
279
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.52 KB | None | 0 0
  1. #include <iostream>
  2. #include <Windows.h>
  3.  
  4. using namespace std;
  5.  
  6. int main(int argc, char *argv[])
  7. {
  8.     if (argc > 1)
  9.     {
  10.         HWND window = FindWindowA(0, argv[1]);
  11.         if (window == NULL)
  12.         {
  13.             cout << "Window not found" << endl;
  14.             return 1;
  15.         }
  16.  
  17.         BOOL result = FlashWindow(window, true);
  18.         if (result) cout << "Successfully flashed" << endl;
  19.         else cout << "Not flashed" << endl;
  20.     }
  21.     else
  22.     {
  23.         cout << "FlashIt (c) 2019, OffsetsFinder" << endl;
  24.         cout << "Usage: " << argv[0] << " <window name>" << endl;
  25.     }
  26. }
Advertisement
Add Comment
Please, Sign In to add comment