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")); 
  • one
    check the results of the function call; read the documentation - Abyx

1 answer 1

I did not notice, in win-32 you need to use RegSetValueEx