Share via


IInternetSecurityManager::QueryCustomPolicy (Windows CE 5.0)

Send Feedback

This method retrieves the custom policy associated with the URL and specified key in the given context.

HRESULT QueryCustomPolicy(LPCWSTRpwszUrl,REFGUIDguidKey,BYTE** ppPolicy,DWORD* pcbPolicy,BYTE* pContext,DWORDcbContext,DWORDdwReserved);

Parameters

  • pwszUrl
    [in] Address of a string value that contains the URL.
  • guidKey
    [in] Globally unique identifier associated with the custom policy.
  • ppPolicy
    [out] Address of a pointer to the buffer to store the policy information.
  • pcbPolicy
    [out] Address of an unsigned long integer value that specifies the policy buffer size.
  • pContext
    [in] Address of a buffer that contains the context information.
  • cbContext
    [in] Unsigned long integer value that specifies the size of the context buffer.
  • dwReserved
    [in] Reserved. Must be set to zero.

Return Values

Returns S_OK if successful or E_OUTOFMEMORY if there is not enough memory to complete the operation.

Remarks

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

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

Feedback FAQs

© 2006 Microsoft Corporation. All rights reserved.