#include <bits/stdc++.h>
#include <windows.h>
using namespace std;
/* run this program using the console pauser or add your own getch, system("pause") or input loop */
void TopWindow(HWND &hWnd) {
SetWindowPos(hWnd, HWND_TOPMOST, 0, 0, 0, 0, SWP_NOMOVE | SWP_NOSIZE);
}
int main() {
HWND hWnd=GetForegroundWindow();
while(1) {
TopWindow(hWnd);
Sleep(10);
}
}
#极域同款!