Expand Minimize
This topic has not yet been rated - Rate this topic

InternetSetPerSiteCookieDecision function

Sets a decision on cookies for a given domain.

Syntax


BOOL WINAPI InternetSetPerSiteCookieDecision(
  _In_  LPCTSTR pchHostName,
  _In_  DWORD dwDecision
);

Parameters

pchHostName [in]

An LPCTSTR that points to a string containing a domain.

dwDecision [in]

A value of type DWORD that contains one of the InternetCookieState enumeration values.

Return value

Returns TRUE if the decision is set and FALSE otherwise.

Remarks

WinINet minimizes the domain specified in the pchHostName parameter and sets the cookie policy on the minimimum legal domain. For example, if the specified host name is widgets.microsoft.com, the policy is set on the minimized host name microsoft.com.

Like all other aspects of the WinINet API, this function cannot be safely called from within DllMain or the constructors and destructors of global objects.

Note  WinINet does not support server implementations. In addition, it should not be used from a service. For server implementations or services use Microsoft Windows HTTP Services (WinHTTP).

Requirements

Minimum supported client

Windows 2000 Professional [desktop apps only]

Minimum supported server

Windows 2000 Server [desktop apps only]

Header

Wininet.h

Library

Wininet.lib

DLL

Wininet.dll

Unicode and ANSI names

InternetSetPerSiteCookieDecisionW (Unicode) and InternetSetPerSiteCookieDecisionA (ANSI)

See also

InternetEnumPerSiteCookieDecision
InternetClearAllPerSiteCookieDecisions
InternetGetPerSiteCookieDecision
PrivacyGetZonePreferenceW
PrivacySetZonePreferenceW

 

 

Send comments about this topic to Microsoft

Build date: 10/26/2012

Did you find this helpful?
(1500 characters remaining)

Community Additions

ADD
© 2013 Microsoft. All rights reserved.