IInternetSecurityManager::SetZoneMapping
Maps a pattern into the specified zone.
Syntax
HRESULT SetZoneMapping(
DWORD dwZone,
LPCWSTR lpszPattern,
DWORD dwFlags
);
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:
- S_OK
Success. - E_ACCESSDENIED
Attempted to enter a non-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 Microsoft® Win32® error code ERROR_FILE_EXISTS to indicate that the URL already exists in another zone.
Requirements
Pocket PC: Pocket PC 2000 and later
Smartphone: Smartphone 2002 and later
OS Versions: Windows CE 3.0 and later
Header: urlmon.h
Library: urlmon.lib
See Also
Send Feedback on this topic to the authors