Microsoft KB Archive/281726

{|
 * width="100%"|

PRB: TAPI Country IDs Can Change With Operating System Upgrade or Service Pack

 * }

Q281726

-

The information in this article applies to:


 * Microsoft Platform Software Development Kit (SDK)

-

SYMPTOMS
A country ID either no longer appears in the TAPI country database or represents a different country or region after you either upgrade Windows or install a service pack.

CAUSE
For most countries, the country ID is the same as the E.164 country code. The country ID is different only in cases in which the country code is shared by multiple countries. For example, all countries in North America and the Caribbean share country code &quot;1&quot;. In such cases, the country IDs for the countries that share the country code usually consist of the country code followed by a numeric suffix. The exception is that the largest country among those that share the country code has a country ID equivalent to the country code.

Since most countries do not want to change country codes, the country list tends to be stable, with few changes from year to year. Although the intention is that country IDs are permanent and will not arbitrarily change across versions of Windows, changes do occur. Significant changes have occurred over the past few years with the division of Czechoslovakia, Yugoslavia, and the Soviet Union, and the merger of East Germany and West Germany. Some countries that previously shared codes have implemented, or are planning to implement, separate codes, such as Monaco, Liechtenstein, Andorra, San Marino, and the Vatican. When such changes occur, the country list is updated to track them, and this can result in country IDs being added, deleted, or changed.

MORE INFORMATION
The Telephony API database of country and region information can be obtained by calling the lineGetCountry API with &quot;0&quot; as the first parameter. The database is a list of LINECOUNTRYENTRY data. Along with dialing information, each LINECOUNTRYENTRY contains a dwCountryID field, which uniquely identifies that country or region. This ID can then be passed as the first parameter to lineGetCountry to get just that country's dialing information.

Country codes are assigned by the International Telecommunication Union (http://www.itu.int).

Additional query words:

Keywords : kbAPI kbKernBase kbSDKWin32 kbTAPI kbDSupport kbGrpDSKernBase

Issue type : kbprb

Technology : kbWin32SDKSearch kbAudDeveloper kbSDKSearch