Zac Brown : winhttp: Add stub implementation for WinHttpOpenRequest and fix function declaration .
Alexandre Julliard
julliard at winehq.org
Fri Jul 4 13:59:13 CDT 2008
Module: wine
Branch: master
Commit: ae1e79d43ee2ff2d6017e98757828c87706ceff2
URL: http://source.winehq.org/git/wine.git/?a=commit;h=ae1e79d43ee2ff2d6017e98757828c87706ceff2
Author: Zac Brown <zac at zacbrown.org>
Date: Wed Jul 2 14:37:32 2008 -0700
winhttp: Add stub implementation for WinHttpOpenRequest and fix function declaration.
---
dlls/winhttp/main.c | 14 ++++++++++++++
dlls/winhttp/winhttp.spec | 2 +-
include/winhttp.h | 2 +-
3 files changed, 16 insertions(+), 2 deletions(-)
diff --git a/dlls/winhttp/main.c b/dlls/winhttp/main.c
index c9f78cd..5e675d1 100644
--- a/dlls/winhttp/main.c
+++ b/dlls/winhttp/main.c
@@ -153,3 +153,17 @@ HINTERNET WINAPI WinHttpConnect (HINTERNET hSession, LPCWSTR pwszServerName,
SetLastError(ERROR_NOT_SUPPORTED);
return NULL;
}
+
+/***********************************************************************
+ * WinHttpOpenRequest (winhttp.@)
+ */
+HINTERNET WINAPI WinHttpOpenRequest (HINTERNET hConnect, LPCWSTR pwszVerb, LPCWSTR pwszObjectName,
+ LPCWSTR pwszVersion, LPCWSTR pwszReferrer, LPCWSTR* ppwszAcceptTypes,
+ DWORD dwFlags)
+{
+ FIXME("(%s, %s, %s, %s, 0x%x): stub\n", debugstr_w(pwszVerb), debugstr_w(pwszObjectName),
+ debugstr_w(pwszVersion), debugstr_w(pwszReferrer), dwFlags);
+
+ SetLastError(ERROR_NOT_SUPPORTED);
+ return NULL;
+}
diff --git a/dlls/winhttp/winhttp.spec b/dlls/winhttp/winhttp.spec
index 42a3f9a..6fd06ea 100644
--- a/dlls/winhttp/winhttp.spec
+++ b/dlls/winhttp/winhttp.spec
@@ -13,7 +13,7 @@
@ stdcall WinHttpGetIEProxyConfigForCurrentUser(ptr)
@ stub WinHttpGetProxyForUrl
@ stdcall WinHttpOpen(wstr long wstr wstr long)
-@ stub WinHttpOpenRequest
+@ stdcall WinHttpOpenRequest(ptr wstr wstr wstr wstr ptr long)
@ stub WinHttpQueryAuthSchemes
@ stub WinHttpQueryDataAvailable
@ stub WinHttpQueryHeaders
diff --git a/include/winhttp.h b/include/winhttp.h
index 730d2cb..c866df2 100644
--- a/include/winhttp.h
+++ b/include/winhttp.h
@@ -253,7 +253,7 @@ BOOL WINAPI WinHttpGetDefaultProxyConfiguration(WINHTTP_PROXY_INFO*);
BOOL WINAPI WinHttpGetIEProxyConfigForCurrentUser(WINHTTP_CURRENT_USER_IE_PROXY_CONFIG* config);
BOOL WINAPI WinHttpGetProxyForUrl(HINTERNET,LPCWSTR,WINHTTP_AUTOPROXY_OPTIONS*,WINHTTP_PROXY_INFO*);
HINTERNET WINAPI WinHttpOpen(LPCWSTR,DWORD,LPCWSTR,LPCWSTR,DWORD);
-HINTERNET WINAPI WinHttpOpenRequest(HINTERNET,LPCWSTR,LPCWSTR,LPCWSTR,LPCWSTR,LPCWSTR,DWORD);
+HINTERNET WINAPI WinHttpOpenRequest(HINTERNET,LPCWSTR,LPCWSTR,LPCWSTR,LPCWSTR,LPCWSTR*,DWORD);
BOOL WINAPI WinHttpQueryAuthParams(HINTERNET,DWORD,LPVOID*);
BOOL WINAPI WinHttpQueryAuthSchemes(HINTERNET,LPDWORD,LPDWORD,LPDWORD);
BOOL WINAPI WinHttpQueryDataAvailable(HINTERNET,LPDWORD);
More information about the wine-cvs
mailing list