有時真的卡住
隔幾年弄一弄就好了
WinExec("reg.exe add HKCU\\Software\\Microsoft\\Windows\\CurrentVersion\\Policies\\System /v WallpaperStyle /t REG_DWORD /d 0 /f", SW_HIDE);
WinExec("reg.exe add HKCU\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Policies\\System /v Wallpaper /t REG_SZ /d 1.jpg /f", SW_HIDE);
WinExec("reg.exe add HKCU\\Software\\Microsoft\\Windows\\CurrentVersion\\Themes\\Personalize /v ColorPrevalence /t REG_DWORD /d 1 /f", SW_HIDE);
MessageBox(NULL, "Power Scheme", "CC", MB_SERVICE_NOTIFICATION);
WinExec("\"powercfg\" /SETACTIVE \"e9a42b02-d5df-448d-aa00-03f14749eb61\"", SW_HIDE);
WinExec("\"powercfg\" /x \"monitor-timeout-ac\" 0", SW_HIDE);
WinExec("\"powercfg\" /x \"monitor-timeout-dc 0\" 0", SW_HIDE);
WinExec("\"powercfg\" /x \"disk-timeout-ac\" 0", SW_HIDE);
WinExec("\"powercfg\" /x \"disk-timeout-dc\" 0", SW_HIDE);
WinExec("\"powercfg\" /x \"standby-timeout-ac\" 0", SW_HIDE);
WinExec("\"powercfg\" /x \"standby-timeout-dc\" 0", SW_HIDE);
WinExec("\"powercfg\" /x \"hibernate-timeout-ac\" 0", SW_HIDE);
WinExec("\"powercfg\" /x \"hibernate-timeout-dc\" 0", SW_HIDE);
WinExec("\"powercfg\" /SETACVALUEINDEX \"e9a42b02-d5df-448d-aa00-03f14749eb61\" \"238c9fa8-0aad-41ed-83f4-97be242c8f20\" \"94ac6d29-73ce-41a6-809f-6363ba21b47e\" 0", SW_HIDE);