共用方式為


IInternetSecurityManager::ProcessUrlAction

Send Feedback

Determines the policy for the specified action and displays a user interface if the policy indicates that the user should be queried.

Syntax

HRESULT ProcessUrlAction(
  LPCWSTR pwszUrl,
  DWORD dwAction,
  BYTE * pPolicy,
  DWORD cbPolicy,
  BYTE * pContext,
  DWORD cbContext,
  DWORD dwFlags,
  DWORD dwReserved
);

Parameters

  • pwszUrl
    [in] Constant pointer to a wide character string that specifies the URL.
  • dwAction
    [in] DWORD that specifies the action to be performed. This can be one of the URL Action Flags values.
  • pPolicy
    [out] Pointer to a buffer that receives the policy and action for the specified URL. This can be one of the URL Policy Flags values.
  • cbPolicy
    [in] DWORD that specifies the size of the buffer pPolicy.
  • pContext
    [in] Pointer to a buffer that contains the context information (a CLSID) used by the delegation routines. May be set to NULL.
  • cbContext
    [in] DWORD that specifies the size of the buffer cbContext.
  • dwFlags
    [in] DWORD that specifies a PUAF enumeration value or values.
  • dwReserved
    [in] Reserved. Must be set to NULL.

Return Values

Returns one of the following values:

  • S_OK
    Success. The URL policy is URLPOLICY_ALLOW.
  • S_FALSE
    Found a valid URL policy that is not URLPOLICY_ALLOW.
  • E_OUTOFMEMORY
    There is not enough memory to complete the operation.

Remarks

This method can also return an HRESULT derived from the Microsoft® Win32® error code ERROR_NOT_FOUND to indicate that the URL action could not be read from the registry.

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

IInternetSecurityManager

Send Feedback on this topic to the authors

Feedback FAQs

© 2006 Microsoft Corporation. All rights reserved.