Skip to content

Latest commit

 

History

History
108 lines (72 loc) · 4.05 KB

nf-wininet-internetgetpersitecookiedecisiona.md

File metadata and controls

108 lines (72 loc) · 4.05 KB
UID title description helpviewer_keywords old-location tech.root ms.assetid ms.date ms.keywords req.header req.include-header req.target-type req.target-min-winverclnt req.target-min-winversvr req.kmdf-ver req.umdf-ver req.ddi-compliance req.unicode-ansi req.idl req.max-support req.namespace req.assembly req.type-library req.lib req.dll req.irql targetos req.typenames req.redist ms.custom f1_keywords dev_langs topic_type api_type api_location api_name
NF:wininet.InternetGetPerSiteCookieDecisionA
InternetGetPerSiteCookieDecisionA function (wininet.h)
Retrieves a decision on cookies for a given domain. (ANSI)
InternetGetPerSiteCookieDecisionA
wininet/InternetGetPerSiteCookieDecisionA
wininet\internetgetpersitecookiedecision.htm
wininet
04fa4c33-077c-4b16-8170-c3770783c98a
12/05/2018
InternetGetPerSiteCookieDecision, InternetGetPerSiteCookieDecision function [WinINet], InternetGetPerSiteCookieDecisionA, InternetGetPerSiteCookieDecisionW, wininet.internetgetpersitecookiedecision, wininet/InternetGetPerSiteCookieDecision, wininet/InternetGetPerSiteCookieDecisionA, wininet/InternetGetPerSiteCookieDecisionW
wininet.h
Windows
Windows 2000 Professional [desktop apps only]
Windows 2000 Server [desktop apps only]
InternetGetPerSiteCookieDecisionW (Unicode) and InternetGetPerSiteCookieDecisionA (ANSI)
Wininet.lib
Wininet.dll
Windows
19H1
InternetGetPerSiteCookieDecisionA
wininet/InternetGetPerSiteCookieDecisionA
c++
APIRef
kbSyntax
DllExport
Wininet.dll
InternetGetPerSiteCookieDecision
InternetGetPerSiteCookieDecisionA
InternetGetPerSiteCookieDecisionW

InternetGetPerSiteCookieDecisionA function

-description

Retrieves a decision on cookies for a given domain.

-parameters

-param pchHostName [in]

An LPCTSTR that points to a string containing a domain.

-param pResult [out]

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

-returns

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 minimum 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).
 

Note

The wininet.h header defines InternetGetPerSiteCookieDecision as an alias which automatically selects the ANSI or Unicode version of this function based on the definition of the UNICODE preprocessor constant. Mixing usage of the encoding-neutral alias with code that not encoding-neutral can lead to mismatches that result in compilation or runtime errors. For more information, see Conventions for Function Prototypes.

-see-also

InternetClearAllPerSiteCookieDecisions

InternetEnumPerSiteCookieDecision

InternetSetPerSiteCookieDecision

PrivacyGetZonePreferenceW

PrivacySetZonePreferenceW