I need to change the registry parameter. I found a couple of examples on the Internet, reproduced it - and nothing happened, GetLastError() returns 0. Therefore, I ask for help) one.
I do it and nothing changes
HKEY hkey; RegOpenKeyEx(HKEY_CURRENT_USER, L"Software\\Microsoft\\Windows\\Windows Error Reporting\\", 0, KEY_ALL_ACCESS, &hkey); RegSetValue(hkey, TEXT("DontShowUI"), REG_DWORD, L"1", sizeof(L"1"));