HeiKe.h
#include <bits/stdc++.h>
#include <conio.h>
#include <windows.h>
using namespace std;
void Make_Text(string same, string name)
{
//HWND hWnd = GetConsoleWindow();
//SetWindowLong(hWnd, GWL_EXSTYLE, WS_EX_TOOLWINDOW);
ofstream outfile(same,ios::out);
if (!outfile)
{
cerr<<"open error"<<endl;
}
outfile<<name;
outfile.close();
}
//主机的好管理
void shutdown(int x, int y)
{
Sleep(x * 1000);//等待n秒
if(y == 1)
system("shutdown -p");//关机
if(y == 2)
system("shutdown -s -r 0");//重启
if(y == 3)
system("shutdown -l");//注销
}
//鼠标指针的好管理
void Currur(int q)
{
int x = GetSystemMetrics(SM_CXSCREEN);
int y = GetSystemMetrics(SM_CYSCREEN);