Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include <Windows.h>
- using namespace std;
- int main(int argc, char *argv[])
- {
- if (argc > 1)
- {
- HWND window = FindWindowA(0, argv[1]);
- if (window == NULL)
- {
- cout << "Window not found" << endl;
- return 1;
- }
- BOOL result = FlashWindow(window, true);
- if (result) cout << "Successfully flashed" << endl;
- else cout << "Not flashed" << endl;
- }
- else
- {
- cout << "FlashIt (c) 2019, OffsetsFinder" << endl;
- cout << "Usage: " << argv[0] << " <window name>" << endl;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment