Поделиться через


CInternetSession::GetCookieLength

Call this member function to get the length of the cookie stored in the buffer.

static DWORD GetCookieLength(
   LPCTSTR pstrUrl,
   LPCTSTR pstrCookieName 
);

Параметры

  • pstrUrl
    A pointer to a string containing the URL

  • pstrCookieName
    A pointer to a string containing the name of the cookie.

Возвращаемое значение

A DWORD value indicating the length of the cookie, stored in the buffer. Zero if no cookie with the name indicated by pstrCookieName exists.

Заметки

This value is used by GetCookie.

Требования

Header: afxinet.h

См. также

Основные понятия

CInternetSession Class

CInternetSession Members

Hierarchy Chart

CInternetSession::SetCookie