cscg24-guacamole

CSCG 2024 Challenge 'Guacamole Mashup'
git clone https://git.sinitax.com/sinitax/cscg24-guacamole
Log | Files | Refs | sfeed.txt

locale.h (7040B)


      1/**
      2 * FreeRDP: A Remote Desktop Protocol Implementation
      3 * Microsoft Locales
      4 *
      5 * Copyright 2009-2012 Marc-Andre Moreau <marcandre.moreau@gmail.com>
      6 *
      7 * Licensed under the Apache License, Version 2.0 (the "License");
      8 * you may not use this file except in compliance with the License.
      9 * You may obtain a copy of the License at
     10 *
     11 *     http://www.apache.org/licenses/LICENSE-2.0
     12 *
     13 * Unless required by applicable law or agreed to in writing, software
     14 * distributed under the License is distributed on an "AS IS" BASIS,
     15 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
     16 * See the License for the specific language governing permissions and
     17 * limitations under the License.
     18 */
     19
     20/* Detection of plausible keyboard layout id based on current locale (LANG) setting. */
     21
     22/*
     23 * Refer to "Windows XP/Server 2003 - List of Locale IDs, Input Locale, and Language Collection":
     24 * http://www.microsoft.com/globaldev/reference/winxp/xp-lcid.mspx
     25 */
     26
     27#ifndef FREERDP_LOCALE_H
     28#define FREERDP_LOCALE_H
     29
     30#include <freerdp/api.h>
     31#include <freerdp/types.h>
     32
     33#define AFRIKAANS 0x0436
     34#define ALBANIAN 0x041C
     35#define ALSATIAN 0x0484
     36#define AMHARIC 0x045E
     37#define ARABIC_SAUDI_ARABIA 0x0401
     38#define ARABIC_IRAQ 0x0801
     39#define ARABIC_EGYPT 0x0C01
     40#define ARABIC_LIBYA 0x1001
     41#define ARABIC_ALGERIA 0x1401
     42#define ARABIC_MOROCCO 0x1801
     43#define ARABIC_TUNISIA 0x1C01
     44#define ARABIC_OMAN 0x2001
     45#define ARABIC_YEMEN 0x2401
     46#define ARABIC_SYRIA 0x2801
     47#define ARABIC_JORDAN 0x2C01
     48#define ARABIC_LEBANON 0x3001
     49#define ARABIC_KUWAIT 0x3401
     50#define ARABIC_UAE 0x3801
     51#define ARABIC_BAHRAIN 0x3C01
     52#define ARABIC_QATAR 0x4001
     53#define ARMENIAN 0x042B
     54#define ASSAMESE 0x044D
     55#define AZERI_LATIN 0x042C
     56#define AZERI_CYRILLIC 0x082C
     57#define BASHKIR 0x046D
     58#define BASQUE 0x042D
     59#define BELARUSIAN 0x0423
     60#define BENGALI_INDIA 0x0445
     61#define BOSNIAN_LATIN 0x141A
     62#define BRETON 0x047E
     63#define BULGARIAN 0x0402
     64#define CATALAN 0x0403
     65#define CHEROKEE 0x045C
     66#define CHINESE_TAIWAN 0x0404
     67#define CHINESE_PRC 0x0804
     68#define CHINESE_HONG_KONG 0x0C04
     69#define CHINESE_SINGAPORE 0x1004
     70#define CHINESE_MACAU 0x1404
     71#define CROATIAN 0x041A
     72#define CROATIAN_BOSNIA_HERZEGOVINA 0x101A
     73#define CZECH 0x0405
     74#define DANISH 0x0406
     75#define DARI 0x048C
     76#define DIVEHI 0x0465
     77#define DUTCH_STANDARD 0x0413
     78#define DUTCH_BELGIAN 0x0813
     79#define ENGLISH_UNITED_STATES 0x0409
     80#define ENGLISH_UNITED_KINGDOM 0x0809
     81#define ENGLISH_AUSTRALIAN 0x0C09
     82#define ENGLISH_CANADIAN 0x1009
     83#define ENGLISH_NEW_ZEALAND 0x1409
     84#define ENGLISH_INDIA 0x4009
     85#define ENGLISH_IRELAND 0x1809
     86#define ENGLISH_MALAYSIA 0x4409
     87#define ENGLISH_SOUTH_AFRICA 0x1C09
     88#define ENGLISH_JAMAICA 0x2009
     89#define ENGLISH_CARIBBEAN 0x2409
     90#define ENGLISH_BELIZE 0x2809
     91#define ENGLISH_TRINIDAD 0x2C09
     92#define ENGLISH_ZIMBABWE 0x3009
     93#define ENGLISH_PHILIPPINES 0x3409
     94#define ENGLISH_SINGAPORE 0x4809
     95#define ESTONIAN 0x0425
     96#define FAEROESE 0x0438
     97#define FARSI 0x0429
     98#define FILIPINO 0x0464
     99#define FINNISH 0x040B
    100#define FRENCH_STANDARD 0x040C
    101#define FRENCH_BELGIAN 0x080C
    102#define FRENCH_CANADIAN 0x0C0C
    103#define FRENCH_SWISS 0x100C
    104#define FRENCH_LUXEMBOURG 0x140C
    105#define FRENCH_MONACO 0x180C
    106#define FRISIAN 0x0462
    107#define GEORGIAN 0x0437
    108#define GALICIAN 0x0456
    109#define GERMAN_STANDARD 0x0407
    110#define GERMAN_SWISS 0x0807
    111#define GERMAN_AUSTRIAN 0x0C07
    112#define GERMAN_LUXEMBOURG 0x1007
    113#define GERMAN_LIECHTENSTEIN 0x1407
    114#define GREEK 0x0408
    115#define GREENLANDIC 0x046F
    116#define GUJARATI 0x0447
    117#define HAWAIIAN 0x0475
    118#define HEBREW 0x040D
    119#define HINDI 0x0439
    120#define HUNGARIAN 0x040E
    121#define ICELANDIC 0x040F
    122#define IGBO 0x0470
    123#define INDONESIAN 0x0421
    124#define INUKTITUT 0x045D
    125#define IRISH 0x083C
    126#define ITALIAN_STANDARD 0x0410
    127#define ITALIAN_SWISS 0x0810
    128#define JAPANESE 0x0411
    129#define KANNADA 0x044B
    130#define KAZAKH 0x043F
    131#define KHMER 0x0453
    132#define KICHE 0x0486
    133#define KINYARWANDA 0x0487
    134#define KONKANI 0x0457
    135#define KOREAN 0x0412
    136#define KYRGYZ 0x0440
    137#define LAO 0x0454
    138#define LATVIAN 0x0426
    139#define LITHUANIAN 0x0427
    140#define LOWER_SORBIAN 0x082E
    141#define LUXEMBOURGISH 0x046E
    142#define MACEDONIAN 0x042F
    143#define MALAY_MALAYSIA 0x043E
    144#define MALAY_BRUNEI_DARUSSALAM 0x083E
    145#define MALAYALAM 0x044C
    146#define MALTESE 0x043A
    147#define MAPUDUNGUN 0x047A
    148#define MAORI 0x0481
    149#define MARATHI 0x044E
    150#define MOHAWK 0x047C
    151#define MONGOLIAN 0x0450
    152#define MYANMAR 0x0455
    153#define NEPALI 0x0461
    154#define NORWEGIAN_BOKMAL 0x0414
    155#define NORWEGIAN_NYNORSK 0x0814
    156#define OCCITAN 0x0482
    157#define ORIYA 0x0448
    158#define PASHTO 0x0463
    159#define POLISH 0x0415
    160#define PORTUGUESE_BRAZILIAN 0x0416
    161#define PORTUGUESE_STANDARD 0x0816
    162#define PUNJABI 0x0446
    163#define QUECHUA_BOLIVIA 0x046B
    164#define QUECHUA_ECUADOR 0x086B
    165#define QUECHUA_PERU 0x0C6B
    166#define ROMANIAN 0x0418
    167#define ROMANSH 0x0417
    168#define RUSSIAN 0x0419
    169#define SAMI_INARI 0x243B
    170#define SAMI_LULE_NORWAY 0x103B
    171#define SAMI_LULE_SWEDEN 0x143B
    172#define SAMI_NORTHERN_FINLAND 0x0C3B
    173#define SAMI_NORTHERN_NORWAY 0x043B
    174#define SAMI_NORTHERN_SWEDEN 0x083B
    175#define SAMI_SKOLT 0x203B
    176#define SAMI_SOUTHERN_NORWAY 0x183B
    177#define SAMI_SOUTHERN_SWEDEN 0x1C3B
    178#define SANSKRIT 0x044F
    179#define SERBIAN_LATIN 0x081A
    180#define SERBIAN_LATIN_BOSNIA_HERZEGOVINA 0x181A
    181#define SERBIAN_CYRILLIC 0x0C1A
    182#define SERBIAN_CYRILLIC_BOSNIA_HERZEGOVINA 0x1C1A
    183#define SESOTHO_SA_LEBOA 0x046C
    184#define SINHALA 0x045B
    185#define SLOVAK 0x041B
    186#define SLOVENIAN 0x0424
    187#define SPANISH_TRADITIONAL_SORT 0x040A
    188#define SPANISH_MEXICAN 0x080A
    189#define SPANISH_MODERN_SORT 0x0C0A
    190#define SPANISH_GUATEMALA 0x100A
    191#define SPANISH_COSTA_RICA 0x140A
    192#define SPANISH_PANAMA 0x180A
    193#define SPANISH_DOMINICAN_REPUBLIC 0x1C0A
    194#define SPANISH_VENEZUELA 0x200A
    195#define SPANISH_COLOMBIA 0x240A
    196#define SPANISH_PERU 0x280A
    197#define SPANISH_ARGENTINA 0x2C0A
    198#define SPANISH_ECUADOR 0x300A
    199#define SPANISH_CHILE 0x340A
    200#define SPANISH_UNITED_STATES 0x540A
    201#define SPANISH_URUGUAY 0x380A
    202#define SPANISH_PARAGUAY 0x3C0A
    203#define SPANISH_BOLIVIA 0x400A
    204#define SPANISH_EL_SALVADOR 0x440A
    205#define SPANISH_HONDURAS 0x480A
    206#define SPANISH_NICARAGUA 0x4C0A
    207#define SPANISH_PUERTO_RICO 0x500A
    208#define SWAHILI 0x0441
    209#define SWEDISH 0x041D
    210#define SWEDISH_FINLAND 0x081D
    211#define SYRIAC 0x045A
    212#define TAMIL 0x0449
    213#define TATAR 0x0444
    214#define TELUGU 0x044A
    215#define THAI 0x041E
    216#define TIBETAN_BHUTAN 0x0851
    217#define TIBETAN_PRC 0x0451
    218#define TSWANA 0x0432
    219#define UKRAINIAN 0x0422
    220#define TURKISH 0x041F
    221#define TURKMEN 0x0442
    222#define UIGHUR 0x0480
    223#define UPPER_SORBIAN 0x042E
    224#define URDU 0x0420
    225#define URDU_INDIA 0x0820
    226#define UZBEK_LATIN 0x0443
    227#define UZBEK_CYRILLIC 0x0843
    228#define VIETNAMESE 0x042A
    229#define WELSH 0x0452
    230#define WOLOF 0x0488
    231#define XHOSA 0x0434
    232#define YAKUT 0x0485
    233#define YI 0x0478
    234#define YORUBA 0x046A
    235#define ZULU 0x0435
    236
    237#ifdef __cplusplus
    238extern "C"
    239{
    240#endif
    241
    242	FREERDP_API DWORD freerdp_get_system_locale_id(void);
    243	FREERDP_API const char* freerdp_get_system_locale_name_from_id(DWORD localeId);
    244	FREERDP_API int freerdp_detect_keyboard_layout_from_system_locale(DWORD* keyboardLayoutId);
    245
    246#ifdef __cplusplus
    247}
    248#endif
    249
    250#endif /* FREERDP_LOCALE_H */