EP_MiscCountryCode
The EP_MiscCountryCode function returns the code of the current user's country. This value could be used for generating registration keys, see Creating Keys.
Name |
Code |
Value |
Afghanistan |
CN_AFGHANISTAN |
114 |
Albania |
CN_ALBANIA |
1 |
Algeria |
CN_ALGERIA |
2 |
Argentina |
CN_ARGENTINA |
3 |
Armenia |
CN_ARMENIA |
4 |
Australia |
CN_AUSTRALIA |
5 |
Austria |
CN_AUSTRIA |
6 |
Azerbaijan |
CN_AZERBAIJAN |
7 |
Bahrain |
CN_BAHRAIN |
8 |
Bangladesh |
CN_BANGLADESH |
115 |
Belarus |
CN_BELARUS |
9 |
Belgium |
CN_BELGIUM |
10 |
Belize |
CN_BELIZE |
11 |
Bolivia |
CN_BOLIVIA |
116 |
Bosnia and Herzegovina |
CN_BOSNIA |
117 |
Brazil |
CN_BRAZIL |
13 |
Brunei Darussalam |
CN_BRUNEI |
14 |
Bulgaria |
CN_BULGARIA |
15 |
Cambodia |
CN_CAMBODIA |
16 |
Canada |
CN_CANADA |
17 |
Caribbean |
CN_CARRIBEAN |
118 |
Chile |
CN_CHILE |
20 |
China |
CN_CHINA |
21 |
Colombia |
CN_COLOMBIA |
22 |
Costa Rica |
CN_COSTARICA |
23 |
Croatia |
CN_CROATIA |
24 |
Czech Republic |
CN_CZECH |
25 |
Denmark |
CN_DENMARK |
26 |
Dominican Republic |
CN_DOMINICAN |
27 |
Ecuador |
CN_ECUADOR |
28 |
Egypt |
CN_EGYPT |
29 |
El Salvador |
CN_ELSALVADOR |
30 |
Estonia |
CN_ESTONIA |
31 |
Ethiopia |
CN_ETHIOPIA |
119 |
Faroe Islands |
CN_FAROE |
32 |
Finland |
CN_FINLAND |
33 |
France |
CN_FRANCE |
34 |
Georgia |
CN_GEORGIA |
35 |
Germany |
CN_GERMANY |
36 |
Greece |
CN_GREECE |
37 |
Greenland |
CN_GREENLAND |
120 |
Guatemala |
CN_GUATEMALA |
38 |
Honduras |
CN_HONDURAS |
39 |
Hong Kong |
CN_HONGKONG |
40 |
Hungary |
CN_HUNGARU |
41 |
Iceland |
CN_ICELAND |
42 |
India |
CN_INDIA |
43 |
Indonesia |
CN_INDONESIA |
44 |
Iran |
CN_IRAN |
45 |
Iraq |
CN_IRAQ |
46 |
Ireland |
CN_IRELAND |
47 |
Israel |
CN_ISRAEL |
48 |
Italy |
CN_ITALY |
49 |
Jamaica |
CN_JAMAICA |
50 |
Japan |
CN_JAPAN |
51 |
Jordan |
CN_JORDAN |
52 |
Kazakhstan |
CN_KAZAKHSTAN |
53 |
Kenya |
CN_KENYA |
54 |
Korea |
CN_KOREA |
56 |
Kuwait |
CN_KUWAIT |
57 |
Kyrgyzstan |
CN_KYRGYZSTAN |
58 |
Laos |
CN_LAOS |
121 |
Latvia |
CN_LATVIA |
59 |
Lebanon |
CN_LEBANON |
60 |
Libyan |
CN_LIBYAN |
122 |
Liechtenstein |
CN_LIECHTENSTEIN |
62 |
Lithuania |
CN_LITHUANIA |
63 |
Luxembourg |
CN_LUXEMBOURG |
64 |
Macao |
CN_MACAO |
65 |
Macedonia |
CN_MACEDONIA |
66 |
Malaysia |
CN_MALAYSIA |
67 |
Maldives |
CN_MALDIVES |
123 |
Malta |
CN_MALTA |
124 |
Mexico |
CN_MEXOCI |
68 |
Monaco |
CN_MONACO |
70 |
Mongolia |
CN_MONGOLIA |
71 |
Montenegro |
CN_MONTENEGRO |
125 |
Morocco |
CN_MOROCCO |
72 |
Nepal |
CN_NEPAL |
126 |
Netherlands |
CN_NETHERLANDS |
73 |
New Zealand |
CN_NEWZEALAND |
74 |
Nicaragua |
CN_NICARAGUA |
75 |
Nigeria |
CN_NIGERIA |
127 |
Norway |
CN_NORWAY |
76 |
Oman |
CN_OMAN |
77 |
Pakistan |
CN_PAKISTAN |
78 |
Panama |
CN_PANAMA |
79 |
Paraguay |
CN_PARAGUAY |
80 |
Peru |
CN_PERY |
81 |
Philippines |
CN_PHILIPPINES |
82 |
Poland |
CN_POLAND |
83 |
Portugal |
CN_PORTUGAL |
84 |
Puerto Rico |
CN_PUERTORICO |
85 |
Qatar |
CN_QATAR |
86 |
Romania |
CN_ROMANIA |
87 |
Russia |
CN_RUSSIA |
88 |
Rwanda |
CN_RWANDA |
128 |
Saudi Arabia |
CN_SAUDIARABIA |
89 |
Senegal |
CN_SENEGAL |
129 |
Serbia |
CN_SERBIA |
130 |
Serbia and Montenegro |
CN_SERBIAMONTENEGRO |
90 |
Singapore |
CN_SINGAROPE |
91 |
Slovakia |
CN_SLOVAKIA |
92 |
Slovenia |
CN_SLOVENIA |
93 |
South Africa |
CN_SOUTHAFRICA |
94 |
Spain |
CN_SPAIN |
95 |
Sri Lanka |
CN_SRILANKA |
131 |
Sweden |
CN_SWEDEN |
96 |
Switzerland |
CN_SWITZERLAND |
97 |
Syrian |
CN_SYRIAN |
132 |
Taiwan |
CN_TAIWAN |
98 |
Tajikistan |
CN_TAJIKISTAN |
99 |
Thailand |
CN_THAILAND |
100 |
Trinidad and Tobago |
CN_TRINIDADTOBAGO |
101 |
Tunisia |
CN_TUNISIA |
102 |
Turkey |
CN_TURKEY |
103 |
Turkmenistan |
CN_TURKMENISTAN |
133 |
Ukraine |
CN_UKRAINE |
104 |
United Arab Emirates |
CN_UAE |
105 |
United Kingdom |
CN_UNITEDKINGDOM |
106 |
United States |
CN_USA |
107 |
Uruguay |
CN_URUGUAY |
108 |
Uzbekistan |
CN_UZBEKISTAN |
109 |
Venezuela |
CN_VENEZUELA |
110 |
Viet Nam |
CN_VIETNAM |
111 |
Yemen |
CN_YEMEN |
112 |
Zimbabwe |
CN_ZIMBABWE |
113 |
Parameters
The function does not have parameters.
Return Value
If the function succeeds, the return value is the code of the user's country, otherwise it returns 0.
Remark
The function fails in the following cases:
- the application is not protected.
Definition
Show/Hide C++ function definition
extern "C" __declspec( dllexport ) __stdcall int EP_MiscCountryCode();
Show/Hide Delphi function definition
function EP_MiscCountryCode : integer;
Show/Hide Visual Basic function definition
Public Declare Function EP_MiscCountryCode Lib "enigma_ide.dll" () As Long
Show/Hide C# (.NET) function definition
public class Enigma_IDE
{
[DllImport("enigma_ide.dll", CallingConvention = CallingConvention.StdCall)]
public static extern int EP_MiscCountryCode();
}
See function examples in the installation folder, Examples subfolder.