Skip to content

Latest commit

 

History

History
164 lines (122 loc) · 5.61 KB

nf-ras-rasgetcountryinfow.md

File metadata and controls

164 lines (122 loc) · 5.61 KB
UID title description helpviewer_keywords old-location tech.root ms.assetid ms.date ms.keywords req.header req.include-header req.target-type req.target-min-winverclnt req.target-min-winversvr req.kmdf-ver req.umdf-ver req.ddi-compliance req.unicode-ansi req.idl req.max-support req.namespace req.assembly req.type-library req.lib req.dll req.irql targetos req.typenames req.redist ms.custom f1_keywords dev_langs topic_type api_type api_location api_name
NF:ras.RasGetCountryInfoW
RasGetCountryInfoW function (ras.h)
The RasGetCountryInfo function retrieves country/region-specific dialing information from the Windows Telephony list of countries/regions. (Unicode)
RasGetCountryInfo
RasGetCountryInfo function [RAS]
RasGetCountryInfoW
_ras_rasgetcountryinfo
ras/RasGetCountryInfo
ras/RasGetCountryInfoW
rras.rasgetcountryinfo
rras\rasgetcountryinfo.htm
RRAS
87a4ae40-6750-46cf-89c2-c229de5a585d
12/05/2018
RasGetCountryInfo, RasGetCountryInfo function [RAS], RasGetCountryInfoA, RasGetCountryInfoW, _ras_rasgetcountryinfo, ras/RasGetCountryInfo, ras/RasGetCountryInfoA, ras/RasGetCountryInfoW, rras.rasgetcountryinfo
ras.h
Windows
Windows 2000 Professional [desktop apps only]
Windows 2000 Server [desktop apps only]
RasGetCountryInfoW (Unicode) and RasGetCountryInfoA (ANSI)
Rasapi32.lib
Rasapi32.dll
Windows
19H1
RasGetCountryInfoW
ras/RasGetCountryInfoW
c++
APIRef
kbSyntax
DllExport
Rasapi32.dll
RasGetCountryInfo
RasGetCountryInfoA
RasGetCountryInfoW

RasGetCountryInfoW function

-description

The RasGetCountryInfo function retrieves country/region-specific dialing information from the Windows Telephony list of countries/regions.

For more information about country/region-specific dialing information and Telephony Application Programming Interface (TAPI) country/region identifiers, see the TAPI portion of the Platform Software Development Kit (SDK).

-parameters

-param unnamedParam1 [in, out]

Pointer to a RASCTRYINFO structure that, on output, receives the country/region-specific dialing information followed by additional bytes for a country/region description string.

On input, set the dwSize member of the structure to sizeof(RASCTRYINFO) to identify the version of the structure. Also, set the dwCountryId member to the TAPI country/region identifier of the country/region for which to get information.

Allocate at least 256 bytes for the buffer.

-param unnamedParam2 [in, out]

Pointer to a variable that, on input, specifies the size, in bytes, of the buffer pointed to by the lpRasCtryInfo parameter.

On output, this variable receives the number of bytes required.

-returns

If the function succeeds, the return value is ERROR_SUCCESS.

If the function fails, the return value is one of the following error codes or a value from Routing and Remote Access Error Codes or Winerror.h.

Value Meaning
ERROR_INVALID_USER_BUFFER
The address or buffer specified by lpRasCtryInfo is invalid.
ERROR_INVALID_PARAMETER
The dwCountryId member of the structure pointed to by lpRasCtryInfo was not a valid value.
ERROR_BUFFER_TOO_SMALL
The size of the lpRasCtryInfo buffer specified by the lpdwSize parameter was not large enough to store the information for the country/region identified by the dwCountryId member. The function returns the required buffer size in the variable pointed to by lpdwSize.
ERROR_TAPI_CONFIGURATION
TAPI subsystem information was corrupted.

-remarks

To enumerate information for all countries/regions in the Windows Telephony list, set the dwCountryId member of the RASCTRYINFO structure to 1 in the initial RasGetCountryInfo call. This causes the function to return information for the first country/region in the list. The value returned in the dwNextCountryID member is the country/region identifier of the next country/region in the list. Use this value in repeated calls to RasGetCountryInfo until dwNextCountryID returns zero, indicating the last country/region in the list.

Note

The ras.h header defines RasGetCountryInfo as an alias which automatically selects the ANSI or Unicode version of this function based on the definition of the UNICODE preprocessor constant. Mixing usage of the encoding-neutral alias with code that not encoding-neutral can lead to mismatches that result in compilation or runtime errors. For more information, see Conventions for Function Prototypes.

-see-also

RASCTRYINFO

Remote Access Service (RAS) Overview

Remote Access Service Functions