WinINetInternetGetCookie Method
Retrieves the cookie for the specified URL.
Namespace: DevCase.Win32.NativeMethodsAssembly: 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
)
<DllImportAttribute("WinINet.dll", CharSet := CharSet.Auto, BestFitMapping := false,
ThrowOnUnmappableChar := true, SetLastError := true>]
Public Shared Function InternetGetCookie (
urlName As String,
cookieName As String,
cookieData As StringBuilder,
ByRef refCookieSize As UInteger
) As Boolean
Dim urlName As String
Dim cookieName As String
Dim cookieData As StringBuilder
Dim refCookieSize As UInteger
Dim returnValue As Boolean
returnValue = WinINet.InternetGetCookie(urlName,
cookieName, cookieData, refCookieSize)
public:
[DllImportAttribute(L"WinINet.dll", CharSet = CharSet::Auto, BestFitMapping = false,
ThrowOnUnmappableChar = true, SetLastError = true)]
static bool InternetGetCookie(
[InAttribute] String^ urlName,
[InAttribute] String^ cookieName,
StringBuilder^ cookieData,
unsigned int% refCookieSize
)
[<DllImportAttribute("WinINet.dll", CharSet = CharSet.Auto, BestFitMapping = false,
ThrowOnUnmappableChar = true, SetLastError = true)>]
static member InternetGetCookie :
urlName : string *
cookieName : string *
cookieData : StringBuilder *
refCookieSize : uint32 byref -> bool
No code example is currently available or this language may not be supported.
- 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.
Boolean
Returns
if successful, or
otherwise.