Microsoft DirectX 9.0


The get_CountryCode method retrieves the country/region code that establishes the current channel-to-frequency mapping.


HRESULT get_CountryCode(
  long *plCountryCode



[out] Pointer to a variable that receives the country/region code currently in use by the TV Tuner filter.

Return Values

Returns an HRESULT value that depends on the implementation of the interface.


The IAMTuner::put_CountryCode method determines which channel-to-frequency mapping table to use. This establishes the base frequencies for the given country/region. Use the IAMTVTuner::AutoTune method to determine the exact frequencies for specific regions.

Override the country/region code when a country/region wants to receive broadcast video from a different national source. For a list of country/region codes, see International Analog TV Tuning.

See Also