Partager via


IInternetZoneManagerEx2::GetZoneAttributesEx method

Gets the zone attributes.

Syntax

HRESULT GetZoneAttributesEx(
  [in]      DWORD          dwZone,
  [in, out] ZONEATTRIBUTES *pZoneAttributes,
  [in]      DWORD          dwFlags
);

Parameters

  • dwZone [in]
    An unsigned long integer value from URLZONE enumeration that specifies the zone index.

  • pZoneAttributes [in, out]
    The address of a ZONEATTRIBUTES structure that stores the zone's attributes.

  • dwFlags [in]
    An unsigned long integer value that specifies flags to control the operation. Currently, only the ZAFLAGS_VERIFY_TEMPLATE_SETTINGS flag is allowed.

Return value

If this method succeeds, it returns S_OK. Otherwise, it returns an HRESULT error code.

Remarks

GetZoneAttributesEx was introduced in Windows Internet Explorer 7.

When ZAFLAGS_VERIFY_TEMPLATE_SETTINGS are passed in the dwFlags parameter, GetZoneAttributesEx compares the current security zone settings against the zone template defaults stored in the registry. If the current settings do not match the template, the dwTemplateCurrentLevel member of the ZONEATTRIBUTES structure is set to URLTEMPLATE_CUSTOM.

Requirements

Minimum supported client

Windows XP with SP2

Minimum supported server

Windows Server 2003

Product

Internet Explorer 7

Header

Urlmon.h

IDL

Urlmon.idl

DLL

Urlmon.dll

See also

IInternetZoneManagerEx2