ICivicAddressReport::GetCountryRegion method
Retrieves the two-letter country or region code.
Syntax
HRESULT GetCountryRegion( [out] BSTR *pbstrCountryRegion );
Parameters
- pbstrCountryRegion [out]
-
Address of a BSTR that receives the country or region code.
Return value
If this method succeeds, it returns S_OK. Otherwise, it returns an HRESULT error code.
Remarks
The two-letter country or region code is in ISO 3166 format.
Examples
The following example demonstrates how to call GetCountryRegion.
hr = pCivicAddressReport->GetCountryRegion(&bstrCountryRegion);
if (SUCCEEDED(hr))
{
// Country/Region is an ISO-3166-1 two-letter code.
wprintf(L"\tCountry/Region:\t%s\n\n", bstrCountryRegion);
}
Requirements
|
Minimum supported client | Windows 7 [desktop apps only] |
|---|---|
|
Minimum supported server | None supported [desktop apps only] |
|
Client | Windows 7 |
|
Header |
|
|
DLL |
|
See also
Send comments about this topic to Microsoft
Build date: 10/27/2012