Bagikan melalui


IInternetZoneManager::SetZoneCustomPolicy method

Sets a named custom policy associated with a zone.

Syntax

HRESULT SetZoneCustomPolicy(
  [in]      DWORD      dwZone,
  [in]      REFGUID    guidKey,
  [in, out] BYTE       *pPolicy,
  [in]      DWORD      cbPolicy,
  [in]      URLZONEREG urlZoneReg
);

Parameters

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

  • guidKey [in]
    A globally unique identifier that specifies the key.

  • pPolicy [in, out]
    The address of the buffer that contains the policy to be set.

  • cbPolicy [in]
    An unsigned long integer value that specifies the size of the buffer.

  • urlZoneReg [in]
    A URLZONEREG value that specifies where the information will be set in the registry.

Return value

Returns S_OK if successful.

Requirements

Minimum supported client

Windows XP

Minimum supported server

Windows 2000 Server

Product

Internet Explorer 4.0

DLL

Urlmon.dll

See also

IInternetZoneManager