#include <windows.h>
int main(){
int key,wartosc=666;
printf("%prn", RegCreateKeyExA(HKEY_LOCAL_MACHINE, "SOFTWAREtest", 0, 0, REG_OPTION_NON_VOLATILE, KEY_ALL_ACCESS, 0, &key, 0));
printf("%prn", RegSetValueExA(key, "lol", 0, REG_DWORD, &wartosc, 4));
printf("%prn", RegCloseKey(key))...