InternetFreeCookies function (wininet.h)

Frees an array of INTERNET_COOKIE2 structures returned by InternetGetCookieEx2.

Syntax

void InternetFreeCookies(
  INTERNET_COOKIE2 *pCookies,
  DWORD            dwCookieCount
);

Parameters

pCookies

Pointer to an array of INTERNET_COOKIE2 structures.

dwCookieCount

The number of structures in the array.

Return value

None

Remarks

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

Requirements

Requirement Value
Minimum supported client Windows 8.1 [desktop apps only]
Minimum supported server Windows Server 2012 R2 [desktop apps only]
Header wininet.h
Library Wininet.lib
DLL Wininet.dll

See also

HTTP Cookies

Managing Cookies

InternetGetCookieEx2

InternetSetCookieEx2

WinINet Functions