IInternetSecurityManager::SetZoneMapping (Windows CE 5.0)
This method maps a pattern into the specified zone.
HRESULTSetZoneMapping(DWORDdwZone,LPCWSTRlpszPattern,DWORDdwFlags);
Parameters
- dwZone
[in] Unsigned long integer value that specifies the zone index. - lpszPattern
[in] Address of a string value that contains the URL pattern with a limited number of wildcards. - dwFlags
[in] Unsigned long integer value that indicates whether the mappings should be added or deleted. This can be one of the SZM_FLAGS values.
Return Values
Returns one of the following values
Value | Description |
---|---|
S_OK | Success. |
E_ACCESSDENIED | Attempted to enter a non–Secure Sockets Layer (SSL) site into a zone that requires server verification. |
URL_E_INVALID_SCHEME | Either an improper scheme or no scheme is specified in the URL. |
E_FAIL | The mapping already exists. |
Remarks
The method can also return the HRESULT, derived from the Win32 error code ERROR_FILE_EXISTS, to indicate that the URL already exists in another zone.
Requirements
OS Versions: Windows CE .NET 4.0 and later.
Header: Urlmon.h, Urlmon.idl.
Link Library: Urlmon.lib.
Send Feedback on this topic to the authors