Share via


InternetSetPerSiteCookieDecision function

Sets a decision on cookies for a given domain.

Syntax

BOOL InternetSetPerSiteCookieDecision(
  _In_ LPCSTR pchHostName,
  _In_ DWORD  dwDecision
);

Parameters

  • pchHostName [in]
    A LPCSTR 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.

Requirements

Minimum supported client

Windows XP

Minimum supported server

Windows 2000 Server

Product

Internet Explorer 6

Header

Wininet.h

Library

Wininet.lib

DLL

Wininet.dll

Unicode and ANSI names

InternetSetPerSiteCookieDecisionW (Unicode) and InternetSetPerSiteCookieDecisionA (ANSI)

See also

InternetGetPerSiteCookieDecision