Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Retrieves the custom policy associated with the specified key in the given context.
Syntax
HRESULT QueryCustomPolicy(
REFGUID guidKey,
BYTE ** ppPolicy,
DWORD * pcbPolicy,
BYTE * pContext,
DWORD cbContext,
DWORD dwReserved
);
Parameters
- guidKey
[in] Globally unique identifier associated with the custom policy. - ppPolicy
[out] Address of a pointer to the buffer that stores 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's not enough memory to complete the operation.
Remarks
This method can also return the HRESULT derived from the Microsoft® Win32® error code ERROR_NOT_FOUND to indicate that the action could not be read from the registry.
Requirements
Pocket PC: Pocket PC 2000 and later
Smartphone: Smartphone 2002 and later
OS Versions: Windows CE 3.0 and later
Header: urlmon.h
Library: urlmon.lib
See Also
Send Feedback on this topic to the authors