This function retrieves the domains and cookie settings of Web sites for which site-specific cookie regulations are set.
BOOL InternetEnumPerSiteCookieDecisionA( LPSTR pszSiteName, unsigned long *pcSiteNameSize, unsigned long *pdwDecision, unsigned long dwIndex);
Parameters
- pszSiteName
[out] LPSTR that receives a string that specifies a Web site ___domain. - pcSiteNameSize
[in, out] Pointer to an unsigned long that specifies the size of the pcSiteNameSize parameter provided to InternetEnumPerSiteCookieDecisionA when it is called. When InternetEnumPerSiteCookieDecisionA returns, pcSiteNameSize receives the actual length of the ___domain string returned in pszSiteName. - pdwDecision
[out] Pointer to an unsigned long that receives the InternetCookieState enumeration value corresponding to pszSiteName. - dwIndex
[in] unsigned long that specifies the index of the Web site and corresponding cookie setting to retrieve.
Return Value
Returns TRUE if the function retrieved the cookie setting for the given ___domain and FALSE otherwise.
Remarks
InternetEnumPerSiteCookieDecisionA should be initially called with dwIndex equal to 0. To step through the list of Web sites and cookie settings, increment the dwIndex parameter . The end of the list is reached when this function returns FALSE and returns the WinInet error, ERROR_NO_MORE_ITEMS.
Use this function for the ANSI implementation. If you call the Unicode implementation, use the InternetEnumPerSiteCookieDecisionW.
Requirements
OS Versions: Windows CE 5.0 and later.
Header: Wininet.h.
Link Library: Wininet.lib.
See Also
WinInet Functions | Platform for Privacy Preferences (P3P)
Send Feedback on this topic to the authors