#include <windows.h>
#include <stdio.h>
Go to the source code of this file.
◆ BUFFER_SIZE
◆ main()
int main |
( |
int |
argc, |
|
|
wchar_t * |
argv[] |
|
) |
| |
Definition at line 35 of file win_lcid.cpp.
35 {
37}
BOOL CALLBACK MyFuncLocaleEx(LPWSTR pStr, DWORD dwFlags, LPARAM lparam)
◆ MyFuncLocaleEx()
Definition at line 11 of file win_lcid.cpp.
11 {
13 int bufferSize;
14
15 bufferSize = GetLocaleInfoEx(pStr, LOCALE_SENGLANGUAGE, wcBuffer,
BUFFER_SIZE);
16 if (bufferSize == 0) {
17 wprintf(L
"Locale %s had error %d\n", pStr,
GetLastError());
19 }
20
21 LCID lcid = LocaleNameToLCID(pStr, nullptr);
22 if (lcid == 0) {
25 }
26
27 if (lcid > 0x8000) {
28 wprintf(L"//");
29 }
30 wprintf(L" { 0x%.4x, \"%s\" }, //%s\n", lcid, pStr, wcBuffer);
31
33}
WINBASEAPI _Check_return_ _Post_equals_last_error_ DWORD WINAPI GetLastError(VOID)