#include <windows.h> const char g_key[] = "S-1-5-21-885247606-2570251354-2009595240-1001\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Explorer\\Accent"; main() { HKEY hKey; unsigned char buf[32]; int* ptr = (int*)buf; if(!RegCreateKeyEx(HKEY_USERS, g_key, 0, NULL, 0, KEY_ALL_ACCESS, NULL, &hKey, NULL)) { ptr[0] = 0xffd8a6; ptr[1] = 0xedb976; ptr[2] = 0xe39c42; ptr[3] = 0xd77800; ptr[4] = 0x9e5a00; ptr[5] = 0x754200; ptr[6] = 0x422600; ptr[7] = 0x0c63f7; RegSetValueEx(hKey, "AccentPalette", 0, REG_BINARY, buf, sizeof(buf)); RegCloseKey(hKey); } } |