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

InternetGetPerSiteCookieDecision function

Retrieves a decision on cookies for a given domain.

Syntax


BOOL WINAPI InternetGetPerSiteCookieDecision(
  _In_  LPCTSTR       pchHostName,
  _Out_ unsigned long *pResult
);

Parameters

pchHostName [in]

An LPCTSTR that points to a string containing a domain.

pResult [out]

A pointer to an unsigned long that contains one of the InternetCookieState enumeration values.

Return value

Returns TRUE if the decision was retrieved and FALSE otherwise.

Remarks

A return value of FALSE may indicate that the domain pchHostName does not have any site-specific cookie regulations.

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

InternetGetPerSiteCookieDecisionW (Unicode) and InternetGetPerSiteCookieDecisionA (ANSI)

See also

InternetEnumPerSiteCookieDecision
InternetClearAllPerSiteCookieDecisions
InternetSetPerSiteCookieDecision
PrivacyGetZonePreferenceW
PrivacySetZonePreferenceW

 

 

Show:
© 2015 Microsoft