FreeRDP
locale.c File Reference
#include <freerdp/config.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <winpr/crt.h>
#include <winpr/assert.h>
#include <winpr/environment.h>
#include "liblocale.h"
#include <freerdp/locale/locale.h>

Macros

#define LOCALE_LANGUAGE_LEN   6
 
#define LOCALE_COUNTRY_LEN   10
 

Functions

static BOOL freerdp_get_system_language_and_country_codes (char *language, size_t languageLen, char *country, size_t countryLen)
 
static const SYSTEM_LOCALE * freerdp_detect_system_locale (void)
 
DWORD freerdp_get_system_locale_id (void)
 
const char * freerdp_get_system_locale_name_from_id (DWORD localeId)
 
int freerdp_detect_keyboard_layout_from_system_locale (DWORD *keyboardLayoutId)
 

Variables

static const SYSTEM_LOCALE SYSTEM_LOCALE_TABLE []
 
static const LOCALE_NAME LOCALE_NAME_TABLE []
 
static const LOCALE_KEYBOARD_LAYOUTS LOCALE_KEYBOARD_LAYOUTS_TABLE []
 

Macro Definition Documentation

◆ LOCALE_COUNTRY_LEN

#define LOCALE_COUNTRY_LEN   10

◆ LOCALE_LANGUAGE_LEN

#define LOCALE_LANGUAGE_LEN   6

FreeRDP: A Remote Desktop Protocol Implementation Microsoft Locales

Copyright 2009-2012 Marc-Andre Moreau marca.nosp@m.ndre.nosp@m..more.nosp@m.au@g.nosp@m.mail..nosp@m.com Copyright 2021 Thincast Technologies GmbH Copyright 2021 Martin Fleisz marti.nosp@m.n.fl.nosp@m.eisz@.nosp@m.thin.nosp@m.cast..nosp@m.com

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Function Documentation

◆ freerdp_detect_keyboard_layout_from_system_locale()

int freerdp_detect_keyboard_layout_from_system_locale ( DWORD *  keyboardLayoutId)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ freerdp_detect_system_locale()

static const SYSTEM_LOCALE* freerdp_detect_system_locale ( void  )
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ freerdp_get_system_language_and_country_codes()

static BOOL freerdp_get_system_language_and_country_codes ( char *  language,
size_t  languageLen,
char *  country,
size_t  countryLen 
)
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ freerdp_get_system_locale_id()

DWORD freerdp_get_system_locale_id ( void  )
Here is the call graph for this function:

◆ freerdp_get_system_locale_name_from_id()

const char* freerdp_get_system_locale_name_from_id ( DWORD  localeId)

Variable Documentation

◆ LOCALE_KEYBOARD_LAYOUTS_TABLE

const LOCALE_KEYBOARD_LAYOUTS LOCALE_KEYBOARD_LAYOUTS_TABLE[]
static

◆ LOCALE_NAME_TABLE

const LOCALE_NAME LOCALE_NAME_TABLE[]
static

◆ SYSTEM_LOCALE_TABLE

const SYSTEM_LOCALE SYSTEM_LOCALE_TABLE[]
static