Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
InternetSetPerSiteCookieDecision
Collapse the table of content
Expand the table of content

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

Minimum supported server

Windows 2000 Server

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

 

 

Show:
© 2015 Microsoft