Click to return to the Security     
IInternetSecurityManager:...     IInternetSecurityManager:...     IInternetSecurityManager ...    
Web Workshop  |  Security & Cryptography

IInternetSecurityManager::ProcessUrlAction Method


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,
    DWORD dwReserved
);

Parameters

pwszUrl
[in] Address of a string value that contains the URL.
dwAction
[in] Unsigned long integer value that specifies the action to be performed. This can be one of the URL Action Flags values.
pPolicy
[out] Address of the buffer where the policy for the specified URL and action will be stored. This can be one of the URL Policy Flags values.
cbPolicy
[in] Unsigned long integer value that specifies the size of the buffer.
dwReserved
[in] Reserved. Must be set to zero.

Return Value

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 Win32® error code ERROR_NOT_FOUND to indicate that the URL action could not be read from the registry.



Back to topBack to top

Did you find this topic useful? Suggestions for other topics? Write us!

© 1999 Microsoft Corporation. All rights reserved. Terms of use.