summaryrefslogtreecommitdiff
path: root/include/m_utils.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/m_utils.h')
-rw-r--r--include/m_utils.h9
1 files changed, 9 insertions, 0 deletions
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"