共用方式為


IDvdControl::ParentalCountrySelect

 
Microsoft DirectShow 9.0

IDvdControl::ParentalCountrySelect

  • Note   The IDvdControl interface is deprecated. Use IDvdControl2 instread.

Sets the current country/region for controlling parental access levels.

Syntax

  HRESULT ParentalCountrySelect(
    WORD wCountry
);

Parameters

wCountry

[in] Value that specifies the current country/region according to the Alpha-2 Code defined in ISO3166. See Remarks.

Return Value

Returns an HRESULT value.

Remarks

This method returns an error unless the domain is DVD_DOMAIN_Stop. For more information, see DVD_DOMAIN.

The ISO3166 2-letter country/region codes in the wCountry parameter must be supplied to this method as a WORD. The conversion is demonstrated for the United States (US) in the following line of code.

WORD wCountry  =  ( WORD( 'U' ) << 8 ) | 'S';

Requirements

Reference: Dshow.h.

Library: Quartz.dll.

See Also