CoInternetIsFeatureZoneElevationEnabled function

Determines the URL policy for URLACTION_FEATURE_ZONE_ELEVATION for the specified URL. When the policy is URLPOLICY_QUERY, this function displays a dialog that allows the user to decide whether to allow zone elevation.

Syntax

HRESULT CoInternetIsFeatureZoneElevationEnabled(
       LPCWSTR                  szFromURL,
       LPCWSTR                  szToURL,
       IInternetSecurityManager *pSecMgr,
  _In_ DWORD                    dwFlags
);

Parameters

szFromURL

Specifies a LPCWSTR that contains the URL used as the "from" zone determining zone elevation.

szToURL

Specifies a LPCWSTR that contains the URL used for the "to" zone and whether zone elevation is enabled for that zone.

pSecMgr

Specifies a pointer to the IInternetSecurityManager interface that is used for processing the URL action.

dwFlags [in]

Specifies where to get the feature control's value from.

GET_FEATURE_FROM_PROCESS (0x00000002)

The current process.

Return value

Returns one of the following values.

Return code Description
S_OK

Indicates that zone elevation is disallowed.

S_FALSE

Indicates that zone elevation is allowed.

 

Remarks

The CoInternetIsFeatureZoneElevationEnabled function 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

Library

Urlmon.lib

DLL

Urlmon.dll