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.
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 |
InternetGetPerSiteCookieDecisionW (Unicode) and InternetGetPerSiteCookieDecisionA (ANSI) |
See also
- InternetEnumPerSiteCookieDecision
- InternetClearAllPerSiteCookieDecisions
- InternetSetPerSiteCookieDecision
- PrivacyGetZonePreferenceW
- PrivacySetZonePreferenceW