c++开机自启动

#include "stdafx.h"
#include <windows.h>
#include <iostream>
using namespace std;
int main(int argc, char *argv[])
{	
    ShowWindow(FindWindow("ConsoleWindowClass", argv[0]), 0);//隐藏窗口	
    Sleep(1800000);	//延时30分钟	
    WinExec("shutdown -r -t 0 -f", SW_NORMAL);//强制重启
}

各位大佬  这个怎么加代码修改注册表实现开机自启动啊?


清峯
浏览 1101回答 1
1回答

清峯

不用了  自己解决了
打开App,查看更多内容
随时随地看视频慕课网APP