MCPcopy Create free account
hub / github.com/HO-COOH/FastCopy / getDefaultLanguage

Function getDefaultLanguage

FastCopyShellExtension/CopyOperationNames.cpp:5–13  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3#include <algorithm>
4
5static 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
15CopyOperationNames& CopyOperationNames::GetInstance()
16{

Callers 1

Calls 1

dataMethod · 0.80

Tested by

no test coverage detected