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.
Requirements
|
Minimum supported client |
Windows 2000 Professional [desktop apps only] |
|---|---|
|
Minimum supported server |
Windows 2000 Server [desktop apps only] |
|
Header |
|
|
Library |
|
|
DLL |
|
|
Unicode and ANSI names |
InternetSetPerSiteCookieDecisionW (Unicode) and InternetSetPerSiteCookieDecisionA (ANSI) |
See also
- InternetEnumPerSiteCookieDecision
- InternetClearAllPerSiteCookieDecisions
- InternetGetPerSiteCookieDecision
- PrivacyGetZonePreferenceW
- PrivacySetZonePreferenceW