Name
hw_GetSystemCountry -- retrieve current user's country (V7.1)
Synopsis
int ctry = hw_GetSystemCountry(struct hwTagList *tags);
Function
This function returns a constant reflecting the country setting of the current system. The following countries are currently supported:

 
HWCOUNTRY_UK (0)
HWCOUNTRY_USA (1)
HWCOUNTRY_AUSTRALIA (2)
HWCOUNTRY_BELGIUM (3)
HWCOUNTRY_BULGARIA (4)
HWCOUNTRY_BRAZIL (5)
HWCOUNTRY_CANADA (6)
HWCOUNTRY_CZECHREPUBLIC (7)
HWCOUNTRY_DENMARK (8)
HWCOUNTRY_GERMANY (9)
HWCOUNTRY_SPAIN (10)
HWCOUNTRY_FRANCE (11)
HWCOUNTRY_GREECE (12)
HWCOUNTRY_ITALY (13)
HWCOUNTRY_LIECHTENSTEIN (14)
HWCOUNTRY_LITHUANIA (15)
HWCOUNTRY_LUXEMBOURG (16)
HWCOUNTRY_HUNGARY (17)
HWCOUNTRY_MALTA (18)
HWCOUNTRY_MONACO (19)
HWCOUNTRY_NETHERLANDS (20)
HWCOUNTRY_NORWAY (21)
HWCOUNTRY_POLAND (22)
HWCOUNTRY_PORTUGAL (23)
HWCOUNTRY_ROMANIA (24)
HWCOUNTRY_RUSSIA (25)
HWCOUNTRY_SANMARINO (26)
HWCOUNTRY_SLOVAKIA (27)
HWCOUNTRY_SLOVENIA (28)
HWCOUNTRY_SWITZERLAND (29)
HWCOUNTRY_FINLAND (30)
HWCOUNTRY_SWEDEN (31)
HWCOUNTRY_TURKEY (32)
HWCOUNTRY_IRELAND (33)
HWCOUNTRY_AUSTRIA (34)
HWCOUNTRY_ICELAND (35)
HWCOUNTRY_ANDORRA (36)
HWCOUNTRY_UKRAINE (37)
HWCOUNTRY_UNKNOWN (38)
HWCOUNTRY_AFGHANISTAN (39)
HWCOUNTRY_ALANDISLANDS (40)
HWCOUNTRY_ALBANIA (41)
HWCOUNTRY_ALGERIA (42)
HWCOUNTRY_AMERICANSAMOA (43)
HWCOUNTRY_ANGOLA (44)
HWCOUNTRY_ANGUILLA (45)
HWCOUNTRY_ANTARCTICA (46)
HWCOUNTRY_ANTIGUAANDBARBUDA (47)
HWCOUNTRY_ARGENTINA (48)
HWCOUNTRY_ARMENIA (49)
HWCOUNTRY_ARUBA (50)
HWCOUNTRY_AZERBAIJAN (51)
HWCOUNTRY_BAHAMAS (52)
HWCOUNTRY_BAHRAIN (53)
HWCOUNTRY_BANGLADESH (54)
HWCOUNTRY_BARBADOS (55)
HWCOUNTRY_BELARUS (56)
HWCOUNTRY_BELIZE (57)
HWCOUNTRY_BENIN (58)
HWCOUNTRY_BERMUDA (59)
HWCOUNTRY_BHUTAN (60)
HWCOUNTRY_BOLIVIA (61)
HWCOUNTRY_BESISLANDS (62)
HWCOUNTRY_BOSNIAANDHERZEGOVINA (63)
HWCOUNTRY_BOTSWANA (64)
HWCOUNTRY_BOUVETISLAND (65)
HWCOUNTRY_BRUNEI (66)
HWCOUNTRY_BURKINAFASO (67)
HWCOUNTRY_BURUNDI (68)
HWCOUNTRY_CAMBODIA (69)
HWCOUNTRY_CAMEROON (70)
HWCOUNTRY_CAPEVERDE (71)
HWCOUNTRY_CAYMANISLANDS (72)
HWCOUNTRY_CENTRALAFRICANREPUBLIC (73)
HWCOUNTRY_CHAD (74)
HWCOUNTRY_CHILE (75)
HWCOUNTRY_CHINA (76)
HWCOUNTRY_CHRISTMASISLAND (77)
HWCOUNTRY_COCOSISLANDS (78)
HWCOUNTRY_COLOMBIA (79)
HWCOUNTRY_COMOROS (80)
HWCOUNTRY_CONGO (81)
HWCOUNTRY_COOKISLANDS (82)
HWCOUNTRY_COSTARICA (83)
HWCOUNTRY_IVORYCOAST (84)
HWCOUNTRY_CROATIA (85)
HWCOUNTRY_CUBA (86)
HWCOUNTRY_CURACAO (87)
HWCOUNTRY_CYPRUS (88)
HWCOUNTRY_DJIBOUTI (89)
HWCOUNTRY_DOMINICA (90)
HWCOUNTRY_DOMINICANREPUBLIC (91)
HWCOUNTRY_DRCONGO (92)
HWCOUNTRY_ECUADOR (93)
HWCOUNTRY_EGYPT (94)
HWCOUNTRY_ELSALVADOR (95)
HWCOUNTRY_EQUATORIALGUINEA (96)
HWCOUNTRY_ERITREA (97)
HWCOUNTRY_ESTONIA (98)
HWCOUNTRY_ETHIOPIA (99)
HWCOUNTRY_FALKLANDISLANDS (100)
HWCOUNTRY_FAROEISLANDS (101)
HWCOUNTRY_FIJI (102)
HWCOUNTRY_FRENCHGUIANA (103)
HWCOUNTRY_FRENCHPOLYNESIA (104)
HWCOUNTRY_GABON (105)
HWCOUNTRY_GAMBIA (106)
HWCOUNTRY_GEORGIA (107)
HWCOUNTRY_GHANA (108)
HWCOUNTRY_GIBRALTAR (109)
HWCOUNTRY_GREENLAND (110)
HWCOUNTRY_GRENADA (111)
HWCOUNTRY_GUADELOUPE (112)
HWCOUNTRY_GUAM (113)
HWCOUNTRY_GUATEMALA (114)
HWCOUNTRY_GUERNSEY (115)
HWCOUNTRY_GUINEA (116)
HWCOUNTRY_GUINEABISSAU (117)
HWCOUNTRY_GUYANA (118)
HWCOUNTRY_HAITI (119)
HWCOUNTRY_HOLYSEE (120)
HWCOUNTRY_HONDURAS (121)
HWCOUNTRY_HONGKONG (122)
HWCOUNTRY_INDIA (123)
HWCOUNTRY_INDONESIA (124)
HWCOUNTRY_IRAN (125)
HWCOUNTRY_IRAQ (126)
HWCOUNTRY_ISLEOFMAN (127)
HWCOUNTRY_ISRAEL (128)
HWCOUNTRY_JAMAICA (129)
HWCOUNTRY_JAPAN (130)
HWCOUNTRY_JERSEY (131)
HWCOUNTRY_JORDAN (132)
HWCOUNTRY_KAZAKHSTAN (133)
HWCOUNTRY_KENYA (134)
HWCOUNTRY_KIRIBATI (135)
HWCOUNTRY_NORTHKOREA (136)
HWCOUNTRY_SOUTHKOREA (137)
HWCOUNTRY_KUWAIT (138)
HWCOUNTRY_KYRGYZSTAN (139)
HWCOUNTRY_LAOS (140)
HWCOUNTRY_LATVIA (141)
HWCOUNTRY_LEBANON (142)
HWCOUNTRY_LESOTHO (143)
HWCOUNTRY_LIBERIA (144)
HWCOUNTRY_LIBYA (145)
HWCOUNTRY_MACAO (146)
HWCOUNTRY_MACEDONIA (147)
HWCOUNTRY_MADAGASCAR (148)
HWCOUNTRY_MALAWI (149)
HWCOUNTRY_MALAYSIA (150)
HWCOUNTRY_MALDIVES (151)
HWCOUNTRY_MALI (152)
HWCOUNTRY_MARSHALLISLANDS (153)
HWCOUNTRY_MARTINIQUE (154)
HWCOUNTRY_MAURITANIA (155)
HWCOUNTRY_MAURITIUS (156)
HWCOUNTRY_MAYOTTE (157)
HWCOUNTRY_MEXICO (158)
HWCOUNTRY_MICRONESIA (159)
HWCOUNTRY_MOLDOVA (160)
HWCOUNTRY_MONGOLIA (161)
HWCOUNTRY_MONTENEGRO (162)
HWCOUNTRY_MONTSERRAT (163)
HWCOUNTRY_MOROCCO (164)
HWCOUNTRY_MOZAMBIQUE (165)
HWCOUNTRY_MYANMAR (166)
HWCOUNTRY_NAMIBIA (167)
HWCOUNTRY_NAURU (168)
HWCOUNTRY_NEPAL (169)
HWCOUNTRY_NEWCALEDONIA (170)
HWCOUNTRY_NEWZEALAND (171)
HWCOUNTRY_NICARAGUA (172)
HWCOUNTRY_NIGER (173)
HWCOUNTRY_NIGERIA (174)
HWCOUNTRY_NIUE (175)
HWCOUNTRY_NORFOLKISLAND (176)
HWCOUNTRY_OMAN (177)
HWCOUNTRY_PAKISTAN (178)
HWCOUNTRY_PALAU (179)
HWCOUNTRY_PALESTINE (180)
HWCOUNTRY_PANAMA (181)
HWCOUNTRY_PAPUANEWGUINEA (182)
HWCOUNTRY_PARAGUAY (183)
HWCOUNTRY_PERU (184)
HWCOUNTRY_PHILIPPINES (185)
HWCOUNTRY_PITCAIRN (186)
HWCOUNTRY_PUERTORICO (187)
HWCOUNTRY_QATAR (188)
HWCOUNTRY_REUNION (189)
HWCOUNTRY_RWANDA (190)
HWCOUNTRY_SAINTBARTHELEMY (191)
HWCOUNTRY_SAINTHELENA (192)
HWCOUNTRY_SAINTKITTSANDNEVIS (193)
HWCOUNTRY_SAINTLUCIA (194)
HWCOUNTRY_SAINTVINCENT (195)
HWCOUNTRY_SAMOA (196)
HWCOUNTRY_SAOTOMEANDPRINCIPE (197)
HWCOUNTRY_SAUDIARABIA (198)
HWCOUNTRY_SENEGAL (199)
HWCOUNTRY_SERBIA (200)
HWCOUNTRY_SEYCHELLES (201)
HWCOUNTRY_SIERRALEONE (202)
HWCOUNTRY_SINGAPORE (203)
HWCOUNTRY_SOLOMONISLANDS (204)
HWCOUNTRY_SOMALIA (205)
HWCOUNTRY_SOUTHAFRICA (206)
HWCOUNTRY_SOUTHSUDAN (207)
HWCOUNTRY_SRILANKA (208)
HWCOUNTRY_SUDAN (209)
HWCOUNTRY_SURINAME (210)
HWCOUNTRY_SWAZILAND (211)
HWCOUNTRY_SYRIA (212)
HWCOUNTRY_TAIWAN (213)
HWCOUNTRY_TAJIKISTAN (214)
HWCOUNTRY_TANZANIA (215)
HWCOUNTRY_THAILAND (216)
HWCOUNTRY_TIMOR (217)
HWCOUNTRY_TOGO (218)
HWCOUNTRY_TONGA (219)
HWCOUNTRY_TRINIDADANDTOBAGO (220)
HWCOUNTRY_TUNISIA (221)
HWCOUNTRY_TURKMENISTAN (222)
HWCOUNTRY_TUVALU (223)
HWCOUNTRY_UGANDA (224)
HWCOUNTRY_UAE (225)
HWCOUNTRY_URUGUAY (226)
HWCOUNTRY_UZBEKISTAN (227)
HWCOUNTRY_VANUATU (228)
HWCOUNTRY_VENEZUELA (229)
HWCOUNTRY_VIETNAM (230)
HWCOUNTRY_YEMEN (231)
HWCOUNTRY_ZAMBIA (232)

This function is thread-safe.

Designer compatibility
Supported since Designer 5.0

Inputs
tags
reserved for future use; pass NULL
Results
ctry
system's country setting (see above for possible values)

Show TOC