|This is retired content. This content is outdated and is no longer being maintained. It is provided as a courtesy for individuals who are still using these technologies. This content may contain URLs that were valid when originally published, but now link to sites or pages that no longer exist.|
This method retrieves the custom policy associated with the URL and specified key in the given context.
HRESULT QueryCustomPolicy( LPCWSTR pwszUrl, REFGUID guidKey, BYTE** ppPolicy, DWORD* pcbPolicy, BYTE* pContext, DWORD cbContext, DWORD dwReserved );
[in] Address of a string value that contains the URL.
[in] Globally unique identifier associated with the custom policy.
[out] Address of a pointer to the buffer to store the policy information.
[out] Address of an unsigned long integer value that specifies the policy buffer size.
[in] Address of a buffer that contains the context information.
[in] Unsigned long integer value that specifies the size of the context buffer.
[in] Reserved. Must be set to zero.
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 could not be read from the registry.
|Windows Embedded CE||Windows CE .NET 4.0 and later|
|Windows Mobile||Windows Mobile Version 5.0 and later|