Freigeben über


IInternetZoneManagerEx::SetZoneActionPolicyEx method

Sets the policy associated with the specified URL action in the specified zone.

Syntax

HRESULT SetZoneActionPolicyEx(
  [in] DWORD      dwZone,
  [in] DWORD      dwAction,
  [in] BYTE       *pPolicy,
  [in] DWORD      cbPolicy,
  [in] URLZONEREG urlZoneReg,
  [in] DWORD      dwFlags
);

Parameters

  • dwZone [in]
    A DWORD that contains the value of the security zone.

  • dwAction [in]
    A DWORD that contains the value of the URL action.

  • pPolicy [in]
    A pointer to a buffer that contains the URL policy.

  • cbPolicy [in]
    A DWORD that contains the size of the buffer for pPolicy.

  • urlZoneReg [in]
    A URLZONEREG value that indicates the section in the registry to search.

  • dwFlags [in]
    A ZAFLAGS value that indicates whether to look under the normal security zones or the lockdown zones. The value can be ZAFLAGS_USE_LOCKED_ZONES or NULL.

Return value

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

Remarks

The IInternetZoneManagerEx::SetZoneActionPolicyEx method was introduced in Microsoft Internet Explorer 6 for Windows XP Service Pack 2 (SP2).

Requirements

Minimum supported client

Windows XP with SP2

Minimum supported server

Windows Server 2003

Product

Internet Explorer 6.0

Header

Urlmon.h

IDL

Urlmon.idl

See also

IInternetZoneManagerEx