Partager via


Privacy Flags

A version of this page is also available for

Windows Embedded CE 6.0 R3

4/8/2010

Privacy functions such as PrivacyGetZonePreferenceW and PrivacySetZonePreferenceW use privacy flags.

Privacy Types

PrivacyType flags specify that privacy settings are for either first-party or third-party cookies. The following table shows the possible flags that are passed in the dwType parameter.

Constant Description

PRIVACY_TYPE_FIRST_PARTY (0)

Refers to privacy settings for first party cookies.

PRIVACY_TYPE_THIRD_PARTY (1)

Refers to privacy settings for third party cookies

For more information about first party and third party cookies, see Platform for Privacy Preferences (P3P).

PrivacyTemplates

PrivacyTemplates specify the privacy levels that equate to rules for accepting, conditionally accepting, or not accepting cookies. These levels correspond to the privacy preference levels set on the Privacy tab in Internet Options. The following table shows the possible flags that are passed in the pdwTemplate parameter.

Constant Description

PRIVACY_TEMPLATE_NO_COOKIES (0)

This is the same as Block All Cookies on the Privacy Preferences slider bar in Internet Options.

PRIVACY_TEMPLATE_HIGH (1)

This is the same as High on the Privacy Preferences slider bar in Internet Options.

PRIVACY_TEMPLATE__MEDIUM_HIGH (2)

This is the same as Medium_High on the Privacy Preferences slider bar in Internet Options.

PRIVACY_TEMPLATE_MEDIUM (3)

This is the same as Medium on the Privacy Preferences slider bar in Internet Options.

PRIVACY_TEMPLATE_MEDIUM_LOW (4)

This is the same as Low on the Privacy Preferences slider bar in Internet Options.

PRIVACY_TEMPLATE_LOW (5)

This is the same as Accept All Cookies on the Privacy Preferences slider bar in Internet Options.

PRIVACY_TEMPLATE_CUSTOM (100)

User-defined. See How to Create a Customized Privacy Import File to understand how to set custom privacy settings.

PRIVACY_TEMPLATE_ADVANCED (101)

User-defined. Advanced options are set in the Advanced Privacy Settings dialog reachable from the Privacy tab in Internet Options.

PRIVACY_TEMPLATE_MAX 

Same as PRIVACY_TEMPLATE_LOW.

Requirements

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

See Also

Reference

WinInet Constants