Gets the policy associated with the URL action in the specified context.
HRESULT ProcessUrlAction( [in] DWORD dwAction, [out] BYTE *pPolicy, [in] DWORD cbPolicy, [in] BYTE *pContext, [in] DWORD cbContext, [in] DWORD dwFlags, [in] DWORD dwReserved );
An unsigned long integer value that specifies the action to process. This can be one of the URL Action Flags values.
A pointer to the output buffer to store the policy. Because all URLPOLICY_* values are DWORD values, the buffer should be greater than or equal to the size of a DWORD. This can contain one of the URL Policy Flags values.
A unsigned long integer value that specifies the size of the output buffer.
A pointer to a buffer that contains the context information used by the delegation routines.
An unsigned long integer value that specifies the size of the context information buffer.
Unsigned long integer value that contains the flags controlling this method. This can be one of the PUAF values.
Reserved. Must be set to 0.
Returns one of the following values.
Success. The URL policy is URLPOLICY_ALLOW.
Found a valid URL policy that is not URLPOLICY_ALLOW.
There is not enough memory to complete the operation.
The method can also return an HRESULT derived from the Microsoft Win32 error code ERROR_NOT_FOUND to indicate that the URL action cannot be read from the registry.
Security Warning: Incorrect use of this method can compromise the security of your application. When your component receives a return value indicating S_FALSE or any error, assume that the URL action is not allowed under the current policy. If your component performs an action after receiving an error, users might be at risk of an elevation of privilege attack. Review Security Considerations: URL Security Zones API before you continue.
Minimum supported client
Minimum supported server
Windows 2000 Server