The InternetSetCookieEx function creates a cookie with a specified name that is associated with a specified URL. This function differs from the InternetSetCookie function by being able to create third-party cookies.
void InternetSetCookieExA( LPCSTR lpszUrl, LPCSTR lpszCookieName, LPCSTR lpszCookieData, DWORD dwFlags, DWORD_PTR dwReserved );
Pointer to a null-terminated string that contains the name to associate with this cookie. If this pointer is NULL, then no name is associated with the cookie.
Pointer to a null-terminated string that contains the data to be associated with the new cookie.
If this pointer is NULL, InternetSetCookieEx fails with an ERROR_INVALID_PARAMETER error.
Flags that control how the function retrieves cookie data:
NULL, or contains a pointer to a Platform-for-Privacy-Protection (P3P) header to be associated with the cookie.
Returns a member of the InternetCookieState enumeration if successful, or FALSE if the function fails. On failure, if a call to GetLastError returns ERROR_NOT_ENOUGH_MEMORY, insufficient system memory was available.
|Windows version||Windows XP [desktop apps only] Windows Server 2003 [desktop apps only]|