| 68 | } |
| 69 | |
| 70 | void setStringToWinReg(std::string const& name, std::string const& value) |
| 71 | { |
| 72 | try { |
| 73 | auto key = getOrCreateAlienRegKey(); |
| 74 | key.SetStringValue(ConvertUtf8ToWide(name), ConvertUtf8ToWide(value)); |
| 75 | |
| 76 | } catch (std::exception const& exception) { |
| 77 | log(Priority::Important, exception.what()); |
| 78 | } |
| 79 | } |
| 80 | |
| 81 | int getIntFromWinReg(std::string const& name, int const& defaultValue) |
| 82 | { |
no test coverage detected