Gets the custom policy associated with the URL and specified key in the given context.
HRESULT QueryCustomPolicy( [in] LPCWSTR pwszUrl, [in] REFGUID guidKey, [out] BYTE **ppPolicy, [out] DWORD *pcbPolicy, [in] BYTE *pContext, [in] DWORD cbContext, [in] DWORD dwReserved );
A pointer to a string value that specifies the URL.
A globally unique identifier associated with the custom policy.
A pointer to the buffer to store the policy information.
A pointer to an unsigned long integer value that specifies the policy buffer size.
A pointer to a buffer that specifies the context information.
An unsigned long integer value that specifies the size of the context buffer.
Reserved. Must be set to 0.
Returns S_OK if successful, or E_OUTOFMEMORY if there is not enough memory to complete the operation.
This method can also return the HRESULT derived from the Win32 error code ERROR_NOT_FOUND to indicate that the action cannot be read from the registry.
Minimum supported client
Minimum supported server
Windows 2000 Server