lineGetCountry

The lineGetCountry function fetches the stored dialing rules and other information related to a specified country, the first country in the country list, or all countries.

LONG lineGetCountry(

DWORD dwCountryID,

DWORD dwAPIVersion,

LPLINECOUNTRYLIST lpLineCountryList

);

Parameters

dwCountryID

The country ID (not the country code) of the country for which information is to be obtained. If the value 1 is specified, information on the first country in the country list is obtained. If the value 0 is specified, information on all countries is obtained (which may require a great deal of memorypics/TAPI00090000.gif20Kbytes or more).

dwAPIVersion

The highest version of TAPI supported by the application (not necessarily the value negotiated by lineNegotiateAPIVersion on some particular line device).

lpLineCountryList

A pointer to a location to which a LINECOUNTRYLIST structure will be loaded. Prior to calling lineGetCountry, the application should set the dwTotalSize field of this structure to indicate the amount of memory available to TAPI for returning information.

Return Values

Returns zero if the request is successful or a negative error number if an error has occurred. Possible return values are:

LINEERR_INCOMPATIBLEAPIVERSION, LINEERR_NOMEM, LINEERR_INIFILECORRUPT, LINEERR_OPERATIONFAILED, LINEERR_INVALCOUNTRYCODE, LINEERR_STRUCTURETOOSMALL, LINEERR_INVALPOINTER.

Remarks

Although this is a new function which older applications would not be expected to call, for backward compatibility, they should not be prevented from doing so. The function will work the same way for all applications.

See Also

LINECOUNTRYLIST
, lineNegotiateAPIVersion

Software for developers
Delphi Components
.Net Components
Software for Android Developers
More information resources
MegaDetailed.Net
Unix Manual Pages
Delphi Examples
Databases for Amazon shops developers
Amazon Categories Database
Browse Nodes Database