C++ system pop-up window program

#include<windows.h>
#include<cstdio> 
 
int main(){
	int x;
	x=MessageBox(GetForegroundWindow(),"","",1);
	printf("%d\n",x);
	x=MessageBox(GetForegroundWindow(),"系统马上关机","运行",2);
	printf("%d\n",x);
	x=MessageBox(GetForegroundWindow(),"","系统提示",3);
	printf("%d\n",x);
	x=MessageBox(GetForegroundWindow(),"456789545678987289347548394839874548789878938298373892384738293847389","sb",4);
	printf("%d\n",x);
	x=MessageBox(GetForegroundWindow(),"","",5);
	printf("%d\n",x);
	x=MessageBox(GetForegroundWindow(),"电脑即将爆炸,请赶紧离开座位!","提示",6);
	printf("%d\n",x);
}

Guess you like

Origin blog.csdn.net/Djyt4102520/article/details/124242523