| 3 | #include <algorithm> |
| 4 | |
| 5 | static std::wstring getDefaultLanguage() |
| 6 | { |
| 7 | ULONG bytes{}; |
| 8 | ULONG numLanguages{}; |
| 9 | GetUserPreferredUILanguages(MUI_LANGUAGE_NAME, &numLanguages, nullptr, &bytes); |
| 10 | std::wstring buffer(bytes, {}); |
| 11 | GetUserPreferredUILanguages(MUI_LANGUAGE_NAME, &numLanguages, buffer.data(), &bytes); |
| 12 | return std::wstring{ buffer.data() }; |
| 13 | } |
| 14 | |
| 15 | CopyOperationNames& CopyOperationNames::GetInstance() |
| 16 | { |
no test coverage detected