From 153aac019459745c8c5663d7c5e24beab31854f3 Mon Sep 17 00:00:00 2001 From: Robert Shearman Date: Tue, 14 Mar 2006 14:35:52 +0000 Subject: [PATCH] wininet: Move cookie-related stubs to cookie.c --- dlls/wininet/cookie.c | 149 ++++++++++++++++++++++++++++++++++++++++ dlls/wininet/internet.c | 82 ---------------------- 2 files changed, 149 insertions(+), 82 deletions(-) diff --git a/dlls/wininet/cookie.c b/dlls/wininet/cookie.c index 043de1bca79..231facabf01 100644 --- a/dlls/wininet/cookie.c +++ b/dlls/wininet/cookie.c @@ -504,3 +504,152 @@ BOOL WINAPI InternetSetCookieA(LPCSTR lpszUrl, LPCSTR lpszCookieName, return r; } + +/*********************************************************************** + * InternetSetCookieExA (WININET.@) + * + * See InternetSetCookieExW. + */ +DWORD WINAPI InternetSetCookieExA( LPCSTR lpszURL, LPCSTR lpszCookieName, LPCSTR lpszCookieData, + DWORD dwFlags, DWORD_PTR dwReserved) +{ + FIXME("(%s, %s, %s, 0x%08lx, 0x%08lx) stub\n", + debugstr_a(lpszURL), debugstr_a(lpszCookieName), debugstr_a(lpszCookieData), + dwFlags, dwReserved); + return TRUE; +} + +/*********************************************************************** + * InternetSetCookieExW (WININET.@) + * + * Sets a cookie for the specified URL. + * + * RETURNS + * TRUE on success + * FALSE on failure + * + */ +DWORD WINAPI InternetSetCookieExW( LPCWSTR lpszURL, LPCWSTR lpszCookieName, LPCWSTR lpszCookieData, + DWORD dwFlags, DWORD_PTR dwReserved) +{ + FIXME("(%s, %s, %s, 0x%08lx, 0x%08lx) stub\n", + debugstr_w(lpszURL), debugstr_w(lpszCookieName), debugstr_w(lpszCookieData), + dwFlags, dwReserved); + return TRUE; +} + +/*********************************************************************** + * InternetGetCookieExA (WININET.@) + * + * See InternetGetCookieExW. + */ +BOOL WINAPI InternetGetCookieExA( LPCSTR pchURL, LPCSTR pchCookieName, LPSTR pchCookieData, + LPDWORD pcchCookieData, DWORD dwFlags, LPVOID lpReserved) +{ + FIXME("(%s, %s, %s, %p, 0x%08lx, %p) stub\n", + debugstr_a(pchURL), debugstr_a(pchCookieName), debugstr_a(pchCookieData), + pcchCookieData, dwFlags, lpReserved); + return FALSE; +} + +/*********************************************************************** + * InternetGetCookieExW (WININET.@) + * + * Retrieve cookie for the specified URL. + * + * RETURNS + * TRUE on success + * FALSE on failure + * + */ +BOOL WINAPI InternetGetCookieExW( LPCWSTR pchURL, LPCWSTR pchCookieName, LPWSTR pchCookieData, + LPDWORD pcchCookieData, DWORD dwFlags, LPVOID lpReserved) +{ + FIXME("(%s, %s, %s, %p, 0x%08lx, %p) stub\n", + debugstr_w(pchURL), debugstr_w(pchCookieName), debugstr_w(pchCookieData), + pcchCookieData, dwFlags, lpReserved); + return FALSE; +} + +/*********************************************************************** + * InternetClearAllPerSiteCookieDecisions (WININET.@) + * + * Clears all per-site decisions about cookies. + * + * RETURNS + * TRUE on success + * FALSE on failure + * + */ +BOOL WINAPI InternetClearAllPerSiteCookieDecisions( VOID ) +{ + FIXME("stub\n"); + return TRUE; +} + +/*********************************************************************** + * InternetEnumPerSiteCookieDecisionA (WININET.@) + * + * See InternetEnumPerSiteCookieDecisionW. + */ +BOOL WINAPI InternetEnumPerSiteCookieDecisionA( LPSTR pszSiteName, unsigned long *pcSiteNameSize, + unsigned long *pdwDecision, unsigned long dwIndex ) +{ + FIXME("(%s, %p, %p, 0x%08lx) stub\n", + debugstr_a(pszSiteName), pcSiteNameSize, pdwDecision, dwIndex); + return FALSE; +} + +/*********************************************************************** + * InternetEnumPerSiteCookieDecisionW (WININET.@) + * + * Enumerates all per-site decisions about cookies. + * + * RETURNS + * TRUE on success + * FALSE on failure + * + */ +BOOL WINAPI InternetEnumPerSiteCookieDecisionW( LPWSTR pszSiteName, unsigned long *pcSiteNameSize, + unsigned long *pdwDecision, unsigned long dwIndex ) +{ + FIXME("(%s, %p, %p, 0x%08lx) stub\n", + debugstr_w(pszSiteName), pcSiteNameSize, pdwDecision, dwIndex); + return FALSE; +} + +/*********************************************************************** + * InternetGetPerSiteCookieDecisionA (WININET.@) + */ +BOOL WINAPI InternetGetPerSiteCookieDecisionA( LPCSTR pwchHostName, unsigned long *pResult ) +{ + FIXME("(%s, %p) stub\n", debugstr_a(pwchHostName), pResult); + return FALSE; +} + +/*********************************************************************** + * InternetGetPerSiteCookieDecisionW (WININET.@) + */ +BOOL WINAPI InternetGetPerSiteCookieDecisionW( LPCWSTR pwchHostName, unsigned long *pResult ) +{ + FIXME("(%s, %p) stub\n", debugstr_w(pwchHostName), pResult); + return FALSE; +} + +/*********************************************************************** + * InternetSetPerSiteCookieDecisionA (WININET.@) + */ +BOOL WINAPI InternetSetPerSiteCookieDecisionA( LPCSTR pchHostName, DWORD dwDecision ) +{ + FIXME("(%s, 0x%08lx) stub\n", debugstr_a(pchHostName), dwDecision); + return FALSE; +} + +/*********************************************************************** + * InternetSetPerSiteCookieDecisionW (WININET.@) + */ +BOOL WINAPI InternetSetPerSiteCookieDecisionW( LPCWSTR pchHostName, DWORD dwDecision ) +{ + FIXME("(%s, 0x%08lx) stub\n", debugstr_w(pchHostName), dwDecision); + return FALSE; +} diff --git a/dlls/wininet/internet.c b/dlls/wininet/internet.c index f2d4ad3771f..73c3a15c498 100644 --- a/dlls/wininet/internet.c +++ b/dlls/wininet/internet.c @@ -4139,88 +4139,6 @@ BOOL WINAPI CreateMD5SSOHash( PWSTR pszChallengeInfo, PWSTR pwszRealm, PWSTR pws return FALSE; } -BOOL WINAPI InternetClearAllPerSiteCookieDecisions( VOID ) -{ - FIXME("stub\n"); - return TRUE; -} - -BOOL WINAPI InternetEnumPerSiteCookieDecisionA( LPSTR pszSiteName, unsigned long *pcSiteNameSize, - unsigned long *pdwDecision, unsigned long dwIndex ) -{ - FIXME("(%s, %p, %p, 0x%08lx) stub\n", - debugstr_a(pszSiteName), pcSiteNameSize, pdwDecision, dwIndex); - return FALSE; -} - -BOOL WINAPI InternetEnumPerSiteCookieDecisionW( LPWSTR pszSiteName, unsigned long *pcSiteNameSize, - unsigned long *pdwDecision, unsigned long dwIndex ) -{ - FIXME("(%s, %p, %p, 0x%08lx) stub\n", - debugstr_w(pszSiteName), pcSiteNameSize, pdwDecision, dwIndex); - return FALSE; -} - -BOOL WINAPI InternetGetCookieExA( LPCSTR pchURL, LPCSTR pchCookieName, LPSTR pchCookieData, - LPDWORD pcchCookieData, DWORD dwFlags, LPVOID lpReserved) -{ - FIXME("(%s, %s, %s, %p, 0x%08lx, %p) stub\n", - debugstr_a(pchURL), debugstr_a(pchCookieName), debugstr_a(pchCookieData), - pcchCookieData, dwFlags, lpReserved); - return FALSE; -} - -BOOL WINAPI InternetGetCookieExW( LPCWSTR pchURL, LPCWSTR pchCookieName, LPWSTR pchCookieData, - LPDWORD pcchCookieData, DWORD dwFlags, LPVOID lpReserved) -{ - FIXME("(%s, %s, %s, %p, 0x%08lx, %p) stub\n", - debugstr_w(pchURL), debugstr_w(pchCookieName), debugstr_w(pchCookieData), - pcchCookieData, dwFlags, lpReserved); - return FALSE; -} - -BOOL WINAPI InternetGetPerSiteCookieDecisionA( LPCSTR pwchHostName, unsigned long *pResult ) -{ - FIXME("(%s, %p) stub\n", debugstr_a(pwchHostName), pResult); - return FALSE; -} - -BOOL WINAPI InternetGetPerSiteCookieDecisionW( LPCWSTR pwchHostName, unsigned long *pResult ) -{ - FIXME("(%s, %p) stub\n", debugstr_w(pwchHostName), pResult); - return FALSE; -} - -BOOL WINAPI InternetSetPerSiteCookieDecisionA( LPCSTR pchHostName, DWORD dwDecision ) -{ - FIXME("(%s, 0x%08lx) stub\n", debugstr_a(pchHostName), dwDecision); - return FALSE; -} - -BOOL WINAPI InternetSetPerSiteCookieDecisionW( LPCWSTR pchHostName, DWORD dwDecision ) -{ - FIXME("(%s, 0x%08lx) stub\n", debugstr_w(pchHostName), dwDecision); - return FALSE; -} - -DWORD WINAPI InternetSetCookieExA( LPCSTR lpszURL, LPCSTR lpszCookieName, LPCSTR lpszCookieData, - DWORD dwFlags, DWORD_PTR dwReserved) -{ - FIXME("(%s, %s, %s, 0x%08lx, 0x%08lx) stub\n", - debugstr_a(lpszURL), debugstr_a(lpszCookieName), debugstr_a(lpszCookieData), - dwFlags, dwReserved); - return TRUE; -} - -DWORD WINAPI InternetSetCookieExW( LPCWSTR lpszURL, LPCWSTR lpszCookieName, LPCWSTR lpszCookieData, - DWORD dwFlags, DWORD_PTR dwReserved) -{ - FIXME("(%s, %s, %s, 0x%08lx, 0x%08lx) stub\n", - debugstr_w(lpszURL), debugstr_w(lpszCookieName), debugstr_w(lpszCookieData), - dwFlags, dwReserved); - return TRUE; -} - BOOL WINAPI ResumeSuspendedDownload( HINTERNET hInternet, DWORD dwError ) { FIXME("(%p, 0x%08lx) stub\n", hInternet, dwError);