summaryrefslogtreecommitdiff
path: root/src/mir_app
diff options
context:
space:
mode:
authorGeorge Hazan <ghazan@miranda.im>2019-07-24 15:14:43 +0300
committerGeorge Hazan <ghazan@miranda.im>2019-07-24 15:14:43 +0300
commit452b8be3a5317b861f4b79241afa6211f4cb5643 (patch)
tree8af65fdd3c75f246af6dec0cec4bae8b498c41fd /src/mir_app
parent1ecb5424cdf72be85d0c016f650d29cf62447c83 (diff)
more useless shit cleaned
Diffstat (limited to 'src/mir_app')
-rw-r--r--src/mir_app/src/db_events.cpp3
-rw-r--r--src/mir_app/src/utils.cpp504
2 files changed, 253 insertions, 254 deletions
diff --git a/src/mir_app/src/db_events.cpp b/src/mir_app/src/db_events.cpp
index 12abaef1f8..67e4e3b526 100644
--- a/src/mir_app/src/db_events.cpp
+++ b/src/mir_app/src/db_events.cpp
@@ -51,14 +51,13 @@ void UnloadEventsModule()
MIR_APP_DLL(int) DbEvent_RegisterType(DBEVENTTYPEDESCR *et)
{
- if (et == nullptr || et->cbSize != sizeof(DBEVENTTYPEDESCR))
+ if (et == nullptr)
return -1;
if (eventTypes.getIndex(et) != -1)
return -1;
DBEVENTTYPEDESCR *p = (DBEVENTTYPEDESCR*)mir_calloc(sizeof(DBEVENTTYPEDESCR));
- p->cbSize = sizeof(DBEVENTTYPEDESCR);
p->module = mir_strdup(et->module);
p->eventType = et->eventType;
p->descr = mir_strdup(et->descr);
diff --git a/src/mir_app/src/utils.cpp b/src/mir_app/src/utils.cpp
index 4c34d92254..be9a8521b3 100644
--- a/src/mir_app/src/utils.cpp
+++ b/src/mir_app/src/utils.cpp
@@ -36,258 +36,258 @@ INT_PTR __cdecl svcEnterString(WPARAM, LPARAM lParam);
static BOOL bModuleInitialized = FALSE;
static CountryListEntry countries[] = {
- {0, LPGEN("Unspecified"), ""},
- {9999, LPGEN("Other"), ""},
- {0xFFFF, LPGEN("Unknown"), ""},
- {93, LPGEN("Afghanistan"), "AF"},
- {358, LPGEN("Aland Islands"), "AX"},
- {355, LPGEN("Albania"), "AL"},
- {213, LPGEN("Algeria"), "DZ"},
- {1684, LPGEN("American Samoa"), "AS"},
- {376, LPGEN("Andorra"), "AD"},
- {244, LPGEN("Angola"), "AO"},
- {1264, LPGEN("Anguilla"), "AI"},
- {0xFFFE, LPGEN("Antarctica"), "AQ"},
- {1268, LPGEN("Antigua and Barbuda"), "AG"},
- {54, LPGEN("Argentina"), "AR"},
- {374, LPGEN("Armenia"), "AM"},
- {297, LPGEN("Aruba"), "AW"},
- {61, LPGEN("Australia"), "AU"},
- {43, LPGEN("Austria"), "AT"},
- {994, LPGEN("Azerbaijan"), "AZ"},
- {1242, LPGEN("Bahamas"), "BS"},
- {973, LPGEN("Bahrain"), "BH"},
- {880, LPGEN("Bangladesh"), "BD"},
- {1246, LPGEN("Barbados"), "BB"},
- {375, LPGEN("Belarus"), "BY"},
- {32, LPGEN("Belgium"), "BE"},
- {501, LPGEN("Belize"), "BZ"},
- {229, LPGEN("Benin"), "BJ"},
- {1441, LPGEN("Bermuda"), "BM"},
- {975, LPGEN("Bhutan"), "BT"},
- {591, LPGEN("Bolivia"), "BO"},
- {5997, LPGEN("Bonaire, Sint Eustatius and Saba"), "BQ"},
- {387, LPGEN("Bosnia and Herzegovina"), "BA"},
- {267, LPGEN("Botswana"), "BW"},
- {55, LPGEN("Bouvet Island"), "BV"},
- {55, LPGEN("Brazil"), "BR"},
- {246, LPGEN("British Indian Ocean Territory"), "IO"},
- {673, LPGEN("Brunei"), "BN"},
- {359, LPGEN("Bulgaria"), "BG"},
- {226, LPGEN("Burkina Faso"), "BF"},
- {257, LPGEN("Burundi"), "BI"},
- {855, LPGEN("Cambodia"), "KH"},
- {237, LPGEN("Cameroon"), "CM"},
- {1, LPGEN("Canada"), "CA"},
- {238, LPGEN("Cape Verde"), "CV"},
- {1345, LPGEN("Cayman Islands"), "KY"},
- {236, LPGEN("Central African Republic"), "CF"},
- {235, LPGEN("Chad"), "TD"},
- {56, LPGEN("Chile"), "CL"},
- {86, LPGEN("China"), "CN"},
- {61, LPGEN("Christmas Island"), "CX"},
- {61, LPGEN("Cocos (Keeling) Islands"), "CC"},
- {57, LPGEN("Colombia"), "CO"},
- {269, LPGEN("Comoros"), "KM"},
- {242, LPGEN("Congo, Republic of the"), "CG"},
- {243, LPGEN("Congo, Democratic Republic of the"), "CD"},
- {682, LPGEN("Cook Islands"), "CK"},
- {506, LPGEN("Costa Rica"), "CR"},
- {225, LPGEN("Cote d'Ivoire"), "CI"},
- {385, LPGEN("Croatia"), "HR"},
- {53, LPGEN("Cuba"), "CU"},
- {5999, LPGEN("Curacao"), "CW"},
- {357, LPGEN("Cyprus"), "CY"},
- {420, LPGEN("Czech Republic"), "CZ"},
- {45, LPGEN("Denmark"), "DK"},
- {253, LPGEN("Djibouti"), "DJ"},
- {1767, LPGEN("Dominica"), "DM"},
- {1809, LPGEN("Dominican Republic"), "DO"},
- {670, LPGEN("East Timor"), "TL"},
- {593, LPGEN("Ecuador"), "EC"},
- {20, LPGEN("Egypt"), "EG"},
- {503, LPGEN("El Salvador"), "SV"},
- {240, LPGEN("Equatorial Guinea"), "GQ"},
- {291, LPGEN("Eritrea"), "ER"},
- {372, LPGEN("Estonia"), "EE"},
- {251, LPGEN("Ethiopia"), "ET"},
- {500, LPGEN("Falkland Islands (Malvinas)"), "FK"},
- {298, LPGEN("Faroe Islands"), "FO"},
- {679, LPGEN("Fiji"), "FJ"},
- {358, LPGEN("Finland"), "FI"},
- {33, LPGEN("France"), "FR"},
- {594, LPGEN("French Guiana"), "GF"},
- {689, LPGEN("French Polynesia"), "PF"},
- {0xFFFE, LPGEN("French Southern and Antarctic Lands"), "TF"},
- {241, LPGEN("Gabon"), "GA"},
- {220, LPGEN("Gambia"), "GM"},
- {995, LPGEN("Georgia"), "GE"},
- {49, LPGEN("Germany"), "DE"},
- {233, LPGEN("Ghana"), "GH"},
- {350, LPGEN("Gibraltar"), "GI"},
- {30, LPGEN("Greece"), "GR"},
- {299, LPGEN("Greenland"), "GL"},
- {1473, LPGEN("Grenada"), "GD"},
- {590, LPGEN("Guadeloupe"), "GP"},
- {1671, LPGEN("Guam"), "GU"},
- {502, LPGEN("Guatemala"), "GT"},
- {44, LPGEN("Guernsey"), "GG"},
- {224, LPGEN("Guinea"), "GN"},
- {245, LPGEN("Guinea-Bissau"), "GW"},
- {592, LPGEN("Guyana"), "GY"},
- {509, LPGEN("Haiti"), "HT"},
- {0xFFFE, LPGEN("Heard Island and McDonald Islands"), "HM"},
- {504, LPGEN("Honduras"), "HN"},
- {852, LPGEN("Hong Kong"), "HK"},
- {36, LPGEN("Hungary"), "HU"},
- {354, LPGEN("Iceland"), "IS"},
- {91, LPGEN("India"), "IN"},
- {62, LPGEN("Indonesia"), "ID"},
- {98, LPGEN("Iran"), "IR"},
- {964, LPGEN("Iraq"), "IQ"},
- {353, LPGEN("Ireland"), "IE"},
- {44, LPGEN("Isle of Man"), "IM"},
- {972, LPGEN("Israel"), "IL"},
- {39, LPGEN("Italy"), "IT"},
- {1876, LPGEN("Jamaica"), "JM"},
- {81, LPGEN("Japan"), "JP"},
- {44, LPGEN("Jersey"), "JE"},
- {962, LPGEN("Jordan"), "JO"},
- {76, LPGEN("Kazakhstan"), "KZ"},
- {254, LPGEN("Kenya"), "KE"},
- {686, LPGEN("Kiribati"), "KI"},
- {850, LPGEN("North Korea"), "KP"},
- {82, LPGEN("South Korea"), "KR"},
- {965, LPGEN("Kuwait"), "KW"},
- {996, LPGEN("Kyrgyzstan"), "KG"},
- {856, LPGEN("Laos"), "LA"},
- {371, LPGEN("Latvia"), "LV"},
- {961, LPGEN("Lebanon"), "LB"},
- {266, LPGEN("Lesotho"), "LS"},
- {231, LPGEN("Liberia"), "LR"},
- {218, LPGEN("Libya"), "LY"},
- {423, LPGEN("Liechtenstein"), "LI"},
- {370, LPGEN("Lithuania"), "LT"},
- {352, LPGEN("Luxembourg"), "LU"},
- {853, LPGEN("Macau"), "MO"},
- {389, LPGEN("Macedonia"), "MK"},
- {261, LPGEN("Madagascar"), "MG"},
- {265, LPGEN("Malawi"), "MW"},
- {60, LPGEN("Malaysia"), "MY"},
- {960, LPGEN("Maldives"), "MV"},
- {223, LPGEN("Mali"), "ML"},
- {356, LPGEN("Malta"), "MT"},
- {692, LPGEN("Marshall Islands"), "MH"},
- {596, LPGEN("Martinique"), "MQ"},
- {222, LPGEN("Mauritania"), "MR"},
- {230, LPGEN("Mauritius"), "MU"},
- {262, LPGEN("Mayotte"), "YT"},
- {52, LPGEN("Mexico"), "MX"},
- {691, LPGEN("Micronesia, Federated States of"), "FM"},
- {373, LPGEN("Moldova"), "MD"},
- {377, LPGEN("Monaco"), "MC"},
- {976, LPGEN("Mongolia"), "MN"},
- {382, LPGEN("Montenegro"), "ME"},
- {1664, LPGEN("Montserrat"), "MS"},
- {212, LPGEN("Morocco"), "MA"},
- {258, LPGEN("Mozambique"), "MZ"},
- {95, LPGEN("Myanmar"), "MM"},
- {264, LPGEN("Namibia"), "NA"},
- {674, LPGEN("Nauru"), "NR"},
- {977, LPGEN("Nepal"), "NP"},
- {31, LPGEN("Netherlands"), "NL"},
- {687, LPGEN("New Caledonia"), "NC"},
- {64, LPGEN("New Zealand"), "NZ"},
- {505, LPGEN("Nicaragua"), "NI"},
- {227, LPGEN("Niger"), "NE"},
- {234, LPGEN("Nigeria"), "NG"},
- {683, LPGEN("Niue"), "NU"},
- {672, LPGEN("Norfolk Island"), "NF"},
- {1670, LPGEN("Northern Mariana Islands"), "MP"},
- {47, LPGEN("Norway"), "NO"},
- {968, LPGEN("Oman"), "OM"},
- {92, LPGEN("Pakistan"), "PK"},
- {680, LPGEN("Palau"), "PW"},
- {970, LPGEN("Palestinian Territories"), "PS"},
- {507, LPGEN("Panama"), "PA"},
- {675, LPGEN("Papua New Guinea"), "PG"},
- {595, LPGEN("Paraguay"), "PY"},
- {51, LPGEN("Peru"), "PE"},
- {63, LPGEN("Philippines"), "PH"},
- {64, LPGEN("Pitcairn Islands"), "PN"},
- {48, LPGEN("Poland"), "PL"},
- {351, LPGEN("Portugal"), "PT"},
- {1787, LPGEN("Puerto Rico"), "PR"},
- {974, LPGEN("Qatar"), "QA"},
- {262, LPGEN("Reunion"), "RE"},
- {40, LPGEN("Romania"), "RO"},
- {7, LPGEN("Russia"), "RU"},
- {250, LPGEN("Rwanda"), "RW"},
- {590, LPGEN("Saint Barthelemy"), "BL"},
- {290, LPGEN("Saint Helena, Ascension and Tristan da Cunha"), "SH"},
- {1869, LPGEN("Saint Kitts and Nevis"), "KN"},
- {1758, LPGEN("Saint Lucia"), "LC"},
- {590, LPGEN("Saint Martin (French part)"), "MF"},
- {508, LPGEN("Saint Pierre and Miquelon"), "PM"},
- {1784, LPGEN("Saint Vincent and the Grenadines"), "VC"},
- {685, LPGEN("Samoa"), "WS"},
- {378, LPGEN("San Marino"), "SM"},
- {239, LPGEN("Sao Tome and Principe"), "ST"},
- {966, LPGEN("Saudi Arabia"), "SA"},
- {221, LPGEN("Senegal"), "SN"},
- {381, LPGEN("Serbia"), "RS"},
- {248, LPGEN("Seychelles"), "SC"},
- {232, LPGEN("Sierra Leone"), "SL"},
- {65, LPGEN("Singapore"), "SG"},
- {1721, LPGEN("Sint Maarten (Dutch part)"), "SX"},
- {421, LPGEN("Slovakia"), "SK"},
- {386, LPGEN("Slovenia"), "SI"},
- {677, LPGEN("Solomon Islands"), "SB"},
- {252, LPGEN("Somalia"), "SO"},
- {27, LPGEN("South Africa"), "ZA"},
- {500, LPGEN("South Georgia and the South Sandwich Islands"), "GS"},
- {211, LPGEN("South Sudan"), "SS"},
- {34, LPGEN("Spain"), "ES"},
- {94, LPGEN("Sri Lanka"), "LK"},
- {249, LPGEN("Sudan"), "SD"},
- {597, LPGEN("Suriname"), "SR"},
- {4779, LPGEN("Svalbard and Jan Mayen"), "SJ"},
- {268, LPGEN("Swaziland"), "SZ"},
- {46, LPGEN("Sweden"), "SE"},
- {41, LPGEN("Switzerland"), "CH"},
- {963, LPGEN("Syria"), "SY"},
- {886, LPGEN("Taiwan"), "TW"},
- {992, LPGEN("Tajikistan"), "TJ"},
- {255, LPGEN("Tanzania"), "TZ"},
- {66, LPGEN("Thailand"), "TH"},
- {228, LPGEN("Togo"), "TG"},
- {690, LPGEN("Tokelau"), "TK"},
- {676, LPGEN("Tonga"), "TO"},
- {1868, LPGEN("Trinidad and Tobago"), "TT"},
- {216, LPGEN("Tunisia"), "TN"},
- {90, LPGEN("Turkey"), "TR"},
- {993, LPGEN("Turkmenistan"), "TM"},
- {1649, LPGEN("Turks and Caicos Islands"), "TC"},
- {688, LPGEN("Tuvalu"), "TV"},
- {256, LPGEN("Uganda"), "UG"},
- {380, LPGEN("Ukraine"), "UA"},
- {971, LPGEN("United Arab Emirates"), "AE"},
- {44, LPGEN("United Kingdom"), "GB"},
- {1, LPGEN("United States"), "US"},
- {699, LPGEN("United States Minor Outlying Islands"), "UM"},
- {598, LPGEN("Uruguay"), "UY"},
- {998, LPGEN("Uzbekistan"), "UZ"},
- {678, LPGEN("Vanuatu"), "VU"},
- {379, LPGEN("Vatican City"), "VA"},
- {58, LPGEN("Venezuela"), "VE"},
- {84, LPGEN("Vietnam"), "VN"},
- {1284, LPGEN("Virgin Islands (British)"), "VG"},
- {1340, LPGEN("Virgin Islands (United States)"), "VI"},
- {681, LPGEN("Wallis and Futuna"), "WF"},
- {5289, LPGEN("Western Sahara"), "EH"},
- {967, LPGEN("Yemen"), "YE"},
- {260, LPGEN("Zambia"), "ZM"},
- {263, LPGEN("Zimbabwe"), "ZW"}
+ { 0, "", LPGEN("Unspecified") },
+ { 9999, "", LPGEN("Other") },
+ { 0xFFFF, "", LPGEN("Unknown") },
+ { 93, "AF", LPGEN("Afghanistan") },
+ { 358, "AX", LPGEN("Aland Islands") },
+ { 355, "AL", LPGEN("Albania") },
+ { 213, "DZ", LPGEN("Algeria") },
+ { 1684, "AS", LPGEN("American Samoa") },
+ { 376, "AD", LPGEN("Andorra") },
+ { 244, "AO", LPGEN("Angola") },
+ { 1264, "AI", LPGEN("Anguilla") },
+ { 0xFFFE, "AQ", LPGEN("Antarctica") },
+ { 1268, "AG", LPGEN("Antigua and Barbuda") },
+ { 54, "AR", LPGEN("Argentina") },
+ { 374, "AM", LPGEN("Armenia") },
+ { 297, "AW", LPGEN("Aruba") },
+ { 61, "AU", LPGEN("Australia") },
+ { 43, "AT", LPGEN("Austria") },
+ { 994, "AZ", LPGEN("Azerbaijan") },
+ { 1242, "BS", LPGEN("Bahamas") },
+ { 973, "BH", LPGEN("Bahrain") },
+ { 880, "BD", LPGEN("Bangladesh") },
+ { 1246, "BB", LPGEN("Barbados") },
+ { 375, "BY", LPGEN("Belarus") },
+ { 32, "BE", LPGEN("Belgium") },
+ { 501, "BZ", LPGEN("Belize") },
+ { 229, "BJ", LPGEN("Benin") },
+ { 1441, "BM", LPGEN("Bermuda") },
+ { 975, "BT", LPGEN("Bhutan") },
+ { 591, "BO", LPGEN("Bolivia") },
+ { 5997, "BQ", LPGEN("Bonaire, Sint Eustatius and Saba") },
+ { 387, "BA", LPGEN("Bosnia and Herzegovina") },
+ { 267, "BW", LPGEN("Botswana") },
+ { 55, "BV", LPGEN("Bouvet Island") },
+ { 55, "BR", LPGEN("Brazil") },
+ { 246, "IO", LPGEN("British Indian Ocean Territory") },
+ { 673, "BN", LPGEN("Brunei") },
+ { 359, "BG", LPGEN("Bulgaria") },
+ { 226, "BF", LPGEN("Burkina Faso") },
+ { 257, "BI", LPGEN("Burundi") },
+ { 855, "KH", LPGEN("Cambodia") },
+ { 237, "CM", LPGEN("Cameroon") },
+ { 1, "CA", LPGEN("Canada") },
+ { 238, "CV", LPGEN("Cape Verde") },
+ { 1345, "KY", LPGEN("Cayman Islands") },
+ { 236, "CF", LPGEN("Central African Republic") },
+ { 235, "TD", LPGEN("Chad") },
+ { 56, "CL", LPGEN("Chile") },
+ { 86, "CN", LPGEN("China") },
+ { 61, "CX", LPGEN("Christmas Island") },
+ { 61, "CC", LPGEN("Cocos (Keeling) Islands") },
+ { 57, "CO", LPGEN("Colombia") },
+ { 269, "KM", LPGEN("Comoros") },
+ { 242, "CG", LPGEN("Congo, Republic of the") },
+ { 243, "CD", LPGEN("Congo, Democratic Republic of the") },
+ { 682, "CK", LPGEN("Cook Islands") },
+ { 506, "CR", LPGEN("Costa Rica") },
+ { 225, "CI", LPGEN("Cote d'Ivoire") },
+ { 385, "HR", LPGEN("Croatia") },
+ { 53, "CU", LPGEN("Cuba") },
+ { 5999, "CW", LPGEN("Curacao") },
+ { 357, "CY", LPGEN("Cyprus") },
+ { 420, "CZ", LPGEN("Czech Republic") },
+ { 45, "DK", LPGEN("Denmark") },
+ { 253, "DJ", LPGEN("Djibouti") },
+ { 1767, "DM", LPGEN("Dominica") },
+ { 1809, "DO", LPGEN("Dominican Republic") },
+ { 670, "TL", LPGEN("East Timor") },
+ { 593, "EC", LPGEN("Ecuador") },
+ { 20, "EG", LPGEN("Egypt") },
+ { 503, "SV", LPGEN("El Salvador") },
+ { 240, "GQ", LPGEN("Equatorial Guinea") },
+ { 291, "ER", LPGEN("Eritrea") },
+ { 372, "EE", LPGEN("Estonia") },
+ { 251, "ET", LPGEN("Ethiopia") },
+ { 500, "FK", LPGEN("Falkland Islands (Malvinas)") },
+ { 298, "FO", LPGEN("Faroe Islands") },
+ { 679, "FJ", LPGEN("Fiji") },
+ { 358, "FI", LPGEN("Finland") },
+ { 33, "FR", LPGEN("France") },
+ { 594, "GF", LPGEN("French Guiana") },
+ { 689, "PF", LPGEN("French Polynesia") },
+ { 0xFFFE, "TF", LPGEN("French Southern and Antarctic Lands") },
+ { 241, "GA", LPGEN("Gabon") },
+ { 220, "GM", LPGEN("Gambia") },
+ { 995, "GE", LPGEN("Georgia") },
+ { 49, "DE", LPGEN("Germany") },
+ { 233, "GH", LPGEN("Ghana") },
+ { 350, "GI", LPGEN("Gibraltar") },
+ { 30, "GR", LPGEN("Greece") },
+ { 299, "GL", LPGEN("Greenland") },
+ { 1473, "GD", LPGEN("Grenada") },
+ { 590, "GP", LPGEN("Guadeloupe") },
+ { 1671, "GU", LPGEN("Guam") },
+ { 502, "GT", LPGEN("Guatemala") },
+ { 44, "GG", LPGEN("Guernsey") },
+ { 224, "GN", LPGEN("Guinea") },
+ { 245, "GW", LPGEN("Guinea-Bissau") },
+ { 592, "GY", LPGEN("Guyana") },
+ { 509, "HT", LPGEN("Haiti") },
+ { 0xFFFE, "HM", LPGEN("Heard Island and McDonald Islands") },
+ { 504, "HN", LPGEN("Honduras") },
+ { 852, "HK", LPGEN("Hong Kong") },
+ { 36, "HU", LPGEN("Hungary") },
+ { 354, "IS", LPGEN("Iceland") },
+ { 91, "IN", LPGEN("India") },
+ { 62, "ID", LPGEN("Indonesia") },
+ { 98, "IR", LPGEN("Iran") },
+ { 964, "IQ", LPGEN("Iraq") },
+ { 353, "IE", LPGEN("Ireland") },
+ { 44, "IM", LPGEN("Isle of Man") },
+ { 972, "IL", LPGEN("Israel") },
+ { 39, "IT", LPGEN("Italy") },
+ { 1876, "JM", LPGEN("Jamaica") },
+ { 81, "JP", LPGEN("Japan") },
+ { 44, "JE", LPGEN("Jersey") },
+ { 962, "JO", LPGEN("Jordan") },
+ { 76, "KZ", LPGEN("Kazakhstan") },
+ { 254, "KE", LPGEN("Kenya") },
+ { 686, "KI", LPGEN("Kiribati") },
+ { 850, "KP", LPGEN("North Korea") },
+ { 82, "KR", LPGEN("South Korea") },
+ { 965, "KW", LPGEN("Kuwait") },
+ { 996, "KG", LPGEN("Kyrgyzstan") },
+ { 856, "LA", LPGEN("Laos") },
+ { 371, "LV", LPGEN("Latvia") },
+ { 961, "LB", LPGEN("Lebanon") },
+ { 266, "LS", LPGEN("Lesotho") },
+ { 231, "LR", LPGEN("Liberia") },
+ { 218, "LY", LPGEN("Libya") },
+ { 423, "LI", LPGEN("Liechtenstein") },
+ { 370, "LT", LPGEN("Lithuania") },
+ { 352, "LU", LPGEN("Luxembourg") },
+ { 853, "MO", LPGEN("Macau") },
+ { 389, "MK", LPGEN("Macedonia") },
+ { 261, "MG", LPGEN("Madagascar") },
+ { 265, "MW", LPGEN("Malawi") },
+ { 60, "MY", LPGEN("Malaysia") },
+ { 960, "MV", LPGEN("Maldives") },
+ { 223, "ML", LPGEN("Mali") },
+ { 356, "MT", LPGEN("Malta") },
+ { 692, "MH", LPGEN("Marshall Islands") },
+ { 596, "MQ", LPGEN("Martinique") },
+ { 222, "MR", LPGEN("Mauritania") },
+ { 230, "MU", LPGEN("Mauritius") },
+ { 262, "YT", LPGEN("Mayotte") },
+ { 52, "MX", LPGEN("Mexico") },
+ { 691, "FM", LPGEN("Micronesia, Federated States of") },
+ { 373, "MD", LPGEN("Moldova") },
+ { 377, "MC", LPGEN("Monaco") },
+ { 976, "MN", LPGEN("Mongolia") },
+ { 382, "ME", LPGEN("Montenegro") },
+ { 1664, "MS", LPGEN("Montserrat") },
+ { 212, "MA", LPGEN("Morocco") },
+ { 258, "MZ", LPGEN("Mozambique") },
+ { 95, "MM", LPGEN("Myanmar") },
+ { 264, "NA", LPGEN("Namibia") },
+ { 674, "NR", LPGEN("Nauru") },
+ { 977, "NP", LPGEN("Nepal") },
+ { 31, "NL", LPGEN("Netherlands") },
+ { 687, "NC", LPGEN("New Caledonia") },
+ { 64, "NZ", LPGEN("New Zealand") },
+ { 505, "NI", LPGEN("Nicaragua") },
+ { 227, "NE", LPGEN("Niger") },
+ { 234, "NG", LPGEN("Nigeria") },
+ { 683, "NU", LPGEN("Niue") },
+ { 672, "NF", LPGEN("Norfolk Island") },
+ { 1670, "MP", LPGEN("Northern Mariana Islands") },
+ { 47, "NO", LPGEN("Norway") },
+ { 968, "OM", LPGEN("Oman") },
+ { 92, "PK", LPGEN("Pakistan") },
+ { 680, "PW", LPGEN("Palau") },
+ { 970, "PS", LPGEN("Palestinian Territories") },
+ { 507, "PA", LPGEN("Panama") },
+ { 675, "PG", LPGEN("Papua New Guinea") },
+ { 595, "PY", LPGEN("Paraguay") },
+ { 51, "PE", LPGEN("Peru") },
+ { 63, "PH", LPGEN("Philippines") },
+ { 64, "PN", LPGEN("Pitcairn Islands") },
+ { 48, "PL", LPGEN("Poland") },
+ { 351, "PT", LPGEN("Portugal") },
+ { 1787, "PR", LPGEN("Puerto Rico") },
+ { 974, "QA", LPGEN("Qatar") },
+ { 262, "RE", LPGEN("Reunion") },
+ { 40, "RO", LPGEN("Romania") },
+ { 7, "RU", LPGEN("Russia") },
+ { 250, "RW", LPGEN("Rwanda") },
+ { 590, "BL", LPGEN("Saint Barthelemy") },
+ { 290, "SH", LPGEN("Saint Helena, Ascension and Tristan da Cunha") },
+ { 1869, "KN", LPGEN("Saint Kitts and Nevis") },
+ { 1758, "LC", LPGEN("Saint Lucia") },
+ { 590, "MF", LPGEN("Saint Martin (French part)") },
+ { 508, "PM", LPGEN("Saint Pierre and Miquelon") },
+ { 1784, "VC", LPGEN("Saint Vincent and the Grenadines") },
+ { 685, "WS", LPGEN("Samoa") },
+ { 378, "SM", LPGEN("San Marino") },
+ { 239, "ST", LPGEN("Sao Tome and Principe") },
+ { 966, "SA", LPGEN("Saudi Arabia") },
+ { 221, "SN", LPGEN("Senegal") },
+ { 381, "RS", LPGEN("Serbia") },
+ { 248, "SC", LPGEN("Seychelles") },
+ { 232, "SL", LPGEN("Sierra Leone") },
+ { 65, "SG", LPGEN("Singapore") },
+ { 1721, "SX", LPGEN("Sint Maarten (Dutch part)") },
+ { 421, "SK", LPGEN("Slovakia") },
+ { 386, "SI", LPGEN("Slovenia") },
+ { 677, "SB", LPGEN("Solomon Islands") },
+ { 252, "SO", LPGEN("Somalia") },
+ { 27, "ZA", LPGEN("South Africa") },
+ { 500, "GS", LPGEN("South Georgia and the South Sandwich Islands") },
+ { 211, "SS", LPGEN("South Sudan") },
+ { 34, "ES", LPGEN("Spain") },
+ { 94, "LK", LPGEN("Sri Lanka") },
+ { 249, "SD", LPGEN("Sudan") },
+ { 597, "SR", LPGEN("Suriname") },
+ { 4779, "SJ", LPGEN("Svalbard and Jan Mayen") },
+ { 268, "SZ", LPGEN("Swaziland") },
+ { 46, "SE", LPGEN("Sweden") },
+ { 41, "CH", LPGEN("Switzerland") },
+ { 963, "SY", LPGEN("Syria") },
+ { 886, "TW", LPGEN("Taiwan") },
+ { 992, "TJ", LPGEN("Tajikistan") },
+ { 255, "TZ", LPGEN("Tanzania") },
+ { 66, "TH", LPGEN("Thailand") },
+ { 228, "TG", LPGEN("Togo") },
+ { 690, "TK", LPGEN("Tokelau") },
+ { 676, "TO", LPGEN("Tonga") },
+ { 1868, "TT", LPGEN("Trinidad and Tobago") },
+ { 216, "TN", LPGEN("Tunisia") },
+ { 90, "TR", LPGEN("Turkey") },
+ { 993, "TM", LPGEN("Turkmenistan") },
+ { 1649, "TC", LPGEN("Turks and Caicos Islands") },
+ { 688, "TV", LPGEN("Tuvalu") },
+ { 256, "UG", LPGEN("Uganda") },
+ { 380, "UA", LPGEN("Ukraine") },
+ { 971, "AE", LPGEN("United Arab Emirates") },
+ { 44, "GB", LPGEN("United Kingdom") },
+ { 1, "US", LPGEN("United States") },
+ { 699, "UM", LPGEN("United States Minor Outlying Islands") },
+ { 598, "UY", LPGEN("Uruguay") },
+ { 998, "UZ", LPGEN("Uzbekistan") },
+ { 678, "VU", LPGEN("Vanuatu") },
+ { 379, "VA", LPGEN("Vatican City") },
+ { 58, "VE", LPGEN("Venezuela") },
+ { 84, "VN", LPGEN("Vietnam") },
+ { 1284, "VG", LPGEN("Virgin Islands (British)") },
+ { 1340, "VI", LPGEN("Virgin Islands (United States)") },
+ { 681, "WF", LPGEN("Wallis and Futuna") },
+ { 5289, "EH", LPGEN("Western Sahara") },
+ { 967, "YE", LPGEN("Yemen") },
+ { 260, "ZM", LPGEN("Zambia") },
+ { 263, "ZW", LPGEN("Zimbabwe") },
};
static INT_PTR GetCountryByNumber(WPARAM wParam, LPARAM)