Compartilhar via


PrivacyGetZonePreferenceW

A version of this page is also available for

Windows Embedded CE 6.0 R3

4/8/2010

This function retrieves the privacy settings for a given URLZONE and PrivacyType.

Syntax

DWORD PrivacyGetZonePreferenceW (
  DWORD dwZone,
  DWORD dwType,
  LPDWORD pdwTemplate,
  LPWSTR pszBuffer,
  LPDWORD pdwBufferLength
);

Parameters

  • dwZone
    [in] Value of type DWORD that specifies the URLZONE for which privacy settings are being retrieved.
  • dwType
    [in] Value of type DWORD that specifies the PrivacyType for which privacy settings are being retrieved. For more information about PrivacyTYpe flags to specify, see Privacy Flags.
  • pdwTemplate
    [out] LPDWORD that returns a pointer to a DWORD containing which of the PrivacyTemplates is in use for this dwZone and dwType. For more information about PrivacyTemplates flags to specify, see Privacy Flags.
  • pszBuffer
    [in, out] LPWSTR that points to a buffer containing a LPCWSTR representing a string version of the pdwTemplate or a customized string if the pdwTemplate is set to PRIVACY_TEMPLATE_CUSTOM. For a description of a customized privacy preferences string, see PrivacySetZonePreferenceW.
  • pdwBufferLength
    [in, out] LPDWORD that contains the buffer length in characters. If the buffer length is not sufficient, PrivacyGetZonePreferenceW returns with this parameter set to the number of characters required and with a return value of ERROR_MORE_DATA.

Return Value

Returns zero if successful. Otherwise, one of the Error Messages defined in winerr.h is returned.

Remarks

These privacy settings for the Internet zone are found on the Privacy tab of the Internet Options dialog box.

Requirements

Header wininet.h
Library wininet.lib
Windows Embedded CE Windows CE 5.0 and later
Windows Mobile Windows Mobile Version 5.0 and later

See Also

Reference

WinInet Functions

Concepts

Platform for Privacy Preferences (P3P)