WinINetInternetGetCookie Method

Retrieves the cookie for the specified URL.

Definition

Namespace: DevCase.Win32.NativeMethods
Assembly: DevCase.net48 (in DevCase.net48.dll) Version: 6.0.0.0 (6.0)
XMLNS for XAML: Not mapped to an xmlns.
[DllImportAttribute("WinINet.dll", CharSet = CharSet.Auto, BestFitMapping = false, 
	ThrowOnUnmappableChar = true, SetLastError = true)]
public static bool InternetGetCookie(
	string urlName,
	string cookieName,
	StringBuilder cookieData,
	ref uint refCookieSize
)

Parameters

urlName  String
The URL for which cookies are to be retrieved.
cookieName  String
Not implemented.
cookieData  StringBuilder
A buffer that receives the cookie data. This parameter can be NULL.
refCookieSize  UInt32
A variable that specifies the size of the cookieData parameter buffer, in characters.

If the function succeeds, the buffer receives the amount of data copied to the cookieData buffer.

If cookieData is , this parameter receives a value that specifies the size of the buffer necessary to copy all the cookie data, expressed as a byte count.

Return Value

Boolean
Returns if successful, or otherwise.

Remarks

See Also