From 7fb6cc1034f220d789b3889e069a01841f9efcae Mon Sep 17 00:00:00 2001 From: George Hazan Date: Mon, 22 Oct 2012 13:04:15 +0000 Subject: ISO code added to the country list git-svn-id: http://svn.miranda-ng.org/main/trunk@2042 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- include/m_utils.h | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'include') diff --git a/include/m_utils.h b/include/m_utils.h index 14b2c0d62f..bfc5622c3a 100644 --- a/include/m_utils.h +++ b/include/m_utils.h @@ -109,6 +109,14 @@ or NULL on failure */ #define MS_UTILS_GETCOUNTRYBYNUMBER "Utils/GetCountryByNumber" +/* Gets the name of a country given its ISO code v0.1.2.0+ +wParam = (char*)ISOcode +lParam = 0 +Returns a pointer to the string containing the country name on success, +or NULL on failure +*/ +#define MS_UTILS_GETCOUNTRYBYISOCODE "Utils/GetCountryByISOCode" + /* Gets the full list of country IDs v0.1.2.0+ wParam = (WPARAM)(int*)piCount lParam = (LPARAM)(struct CountryListEntry**)ppList @@ -120,6 +128,7 @@ quicker to search numbers out of order than it is to search names out of order struct CountryListEntry { int id; const char *szName; + char ISOcode[3]; }; #define MS_UTILS_GETCOUNTRYLIST "Utils/GetCountryList" -- cgit v1.2.3