Commit a3ea34c5 authored by Hans Leidekker's avatar Hans Leidekker Committed by Alexandre Julliard

wininet: Partial implementation of InternetGet/SetCookieEx.

parent 3f795c62
...@@ -544,10 +544,12 @@ BOOL WINAPI InternetSetCookieA(LPCSTR lpszUrl, LPCSTR lpszCookieName, ...@@ -544,10 +544,12 @@ BOOL WINAPI InternetSetCookieA(LPCSTR lpszUrl, LPCSTR lpszCookieName,
DWORD WINAPI InternetSetCookieExA( LPCSTR lpszURL, LPCSTR lpszCookieName, LPCSTR lpszCookieData, DWORD WINAPI InternetSetCookieExA( LPCSTR lpszURL, LPCSTR lpszCookieName, LPCSTR lpszCookieData,
DWORD dwFlags, DWORD_PTR dwReserved) DWORD dwFlags, DWORD_PTR dwReserved)
{ {
FIXME("(%s, %s, %s, 0x%08x, 0x%08lx) stub\n", TRACE("(%s, %s, %s, 0x%08x, 0x%08lx)\n",
debugstr_a(lpszURL), debugstr_a(lpszCookieName), debugstr_a(lpszCookieData), debugstr_a(lpszURL), debugstr_a(lpszCookieName), debugstr_a(lpszCookieData),
dwFlags, dwReserved); dwFlags, dwReserved);
return TRUE;
if (dwFlags) FIXME("flags 0x%08x not supported\n", dwFlags);
return InternetSetCookieA(lpszURL, lpszCookieName, lpszCookieData);
} }
/*********************************************************************** /***********************************************************************
...@@ -563,10 +565,12 @@ DWORD WINAPI InternetSetCookieExA( LPCSTR lpszURL, LPCSTR lpszCookieName, LPCSTR ...@@ -563,10 +565,12 @@ DWORD WINAPI InternetSetCookieExA( LPCSTR lpszURL, LPCSTR lpszCookieName, LPCSTR
DWORD WINAPI InternetSetCookieExW( LPCWSTR lpszURL, LPCWSTR lpszCookieName, LPCWSTR lpszCookieData, DWORD WINAPI InternetSetCookieExW( LPCWSTR lpszURL, LPCWSTR lpszCookieName, LPCWSTR lpszCookieData,
DWORD dwFlags, DWORD_PTR dwReserved) DWORD dwFlags, DWORD_PTR dwReserved)
{ {
FIXME("(%s, %s, %s, 0x%08x, 0x%08lx) stub\n", TRACE("(%s, %s, %s, 0x%08x, 0x%08lx)\n",
debugstr_w(lpszURL), debugstr_w(lpszCookieName), debugstr_w(lpszCookieData), debugstr_w(lpszURL), debugstr_w(lpszCookieName), debugstr_w(lpszCookieData),
dwFlags, dwReserved); dwFlags, dwReserved);
return TRUE;
if (dwFlags) FIXME("flags 0x%08x not supported\n", dwFlags);
return InternetSetCookieW(lpszURL, lpszCookieName, lpszCookieData);
} }
/*********************************************************************** /***********************************************************************
...@@ -577,10 +581,12 @@ DWORD WINAPI InternetSetCookieExW( LPCWSTR lpszURL, LPCWSTR lpszCookieName, LPCW ...@@ -577,10 +581,12 @@ DWORD WINAPI InternetSetCookieExW( LPCWSTR lpszURL, LPCWSTR lpszCookieName, LPCW
BOOL WINAPI InternetGetCookieExA( LPCSTR pchURL, LPCSTR pchCookieName, LPSTR pchCookieData, BOOL WINAPI InternetGetCookieExA( LPCSTR pchURL, LPCSTR pchCookieName, LPSTR pchCookieData,
LPDWORD pcchCookieData, DWORD dwFlags, LPVOID lpReserved) LPDWORD pcchCookieData, DWORD dwFlags, LPVOID lpReserved)
{ {
FIXME("(%s, %s, %s, %p, 0x%08x, %p) stub\n", TRACE("(%s, %s, %s, %p, 0x%08x, %p)\n",
debugstr_a(pchURL), debugstr_a(pchCookieName), debugstr_a(pchCookieData), debugstr_a(pchURL), debugstr_a(pchCookieName), debugstr_a(pchCookieData),
pcchCookieData, dwFlags, lpReserved); pcchCookieData, dwFlags, lpReserved);
return FALSE;
if (dwFlags) FIXME("flags 0x%08x not supported\n", dwFlags);
return InternetGetCookieA(pchURL, pchCookieName, pchCookieData, pcchCookieData);
} }
/*********************************************************************** /***********************************************************************
...@@ -596,10 +602,12 @@ BOOL WINAPI InternetGetCookieExA( LPCSTR pchURL, LPCSTR pchCookieName, LPSTR pch ...@@ -596,10 +602,12 @@ BOOL WINAPI InternetGetCookieExA( LPCSTR pchURL, LPCSTR pchCookieName, LPSTR pch
BOOL WINAPI InternetGetCookieExW( LPCWSTR pchURL, LPCWSTR pchCookieName, LPWSTR pchCookieData, BOOL WINAPI InternetGetCookieExW( LPCWSTR pchURL, LPCWSTR pchCookieName, LPWSTR pchCookieData,
LPDWORD pcchCookieData, DWORD dwFlags, LPVOID lpReserved) LPDWORD pcchCookieData, DWORD dwFlags, LPVOID lpReserved)
{ {
FIXME("(%s, %s, %s, %p, 0x%08x, %p) stub\n", TRACE("(%s, %s, %s, %p, 0x%08x, %p)\n",
debugstr_w(pchURL), debugstr_w(pchCookieName), debugstr_w(pchCookieData), debugstr_w(pchURL), debugstr_w(pchCookieName), debugstr_w(pchCookieData),
pcchCookieData, dwFlags, lpReserved); pcchCookieData, dwFlags, lpReserved);
return FALSE;
if (dwFlags) FIXME("flags 0x%08x not supported\n", dwFlags);
return InternetGetCookieW(pchURL, pchCookieName, pchCookieData, pcchCookieData);
} }
/*********************************************************************** /***********************************************************************
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment