Alexandre Julliard : wininet: Add stubs for PrivacyGet/SetZonePreferenceW.

Alexandre Julliard julliard at winehq.org
Tue Apr 28 07:52:59 CDT 2009


Module: wine
Branch: master
Commit: e12ade9fb39fd0d9b78c052496f301b8bfe446a0
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=e12ade9fb39fd0d9b78c052496f301b8bfe446a0

Author: Alexandre Julliard <julliard at winehq.org>
Date:   Mon Apr 27 20:04:34 2009 +0200

wininet: Add stubs for PrivacyGet/SetZonePreferenceW.

---

 dlls/wininet/internet.c   |   19 +++++++++++++++++++
 dlls/wininet/wininet.spec |    4 ++--
 include/wininet.h         |   17 +++++++++++++++++
 3 files changed, 38 insertions(+), 2 deletions(-)

diff --git a/dlls/wininet/internet.c b/dlls/wininet/internet.c
index 785a1ef..4bb25e7 100644
--- a/dlls/wininet/internet.c
+++ b/dlls/wininet/internet.c
@@ -3815,6 +3815,25 @@ DWORD WINAPI InternetConfirmZoneCrossingW( HWND hWnd, LPWSTR szUrlPrev, LPWSTR s
     return ERROR_SUCCESS;
 }
 
+/***********************************************************************
+ *      PrivacySetZonePreferenceW (WININET.@)
+ */
+DWORD WINAPI PrivacySetZonePreferenceW( DWORD zone, DWORD type, DWORD template, LPCWSTR preference )
+{
+    FIXME( "%x %x %x %s: stub\n", zone, type, template, debugstr_w(preference) );
+    return 0;
+}
+
+/***********************************************************************
+ *      PrivacyGetZonePreferenceW (WININET.@)
+ */
+DWORD WINAPI PrivacyGetZonePreferenceW( DWORD zone, DWORD type, LPDWORD template,
+                                        LPWSTR preference, LPDWORD length )
+{
+    FIXME( "%x %x: stub\n", zone, type );
+    return 0;
+}
+
 DWORD WINAPI InternetDialA( HWND hwndParent, LPSTR lpszConnectoid, DWORD dwFlags,
                             DWORD_PTR* lpdwConnection, DWORD dwReserved )
 {
diff --git a/dlls/wininet/wininet.spec b/dlls/wininet/wininet.spec
index 78b98cc..61beaf4 100644
--- a/dlls/wininet/wininet.spec
+++ b/dlls/wininet/wininet.spec
@@ -213,8 +213,8 @@
 @ stdcall IsUrlCacheEntryExpiredW(wstr long ptr)
 @ stub LoadUrlCacheContent
 @ stub ParseX509EncodedCertificateForListBoxEntry
-@ stub PrivacyGetZonePreferenceW # (long long ptr ptr ptr)
-@ stub PrivacySetZonePreferenceW # (long long long wstr)
+@ stdcall PrivacyGetZonePreferenceW(long long ptr ptr ptr)
+@ stdcall PrivacySetZonePreferenceW(long long long wstr)
 @ stdcall ReadUrlCacheEntryStream(ptr long ptr ptr long)
 @ stdcall RegisterUrlCacheNotification(ptr long long long long long)
 @ stdcall ResumeSuspendedDownload(long long)
diff --git a/include/wininet.h b/include/wininet.h
index d3263fe..6ce8ae0 100644
--- a/include/wininet.h
+++ b/include/wininet.h
@@ -1356,6 +1356,23 @@ INTERNETAPI DWORD WINAPI InternetConfirmZoneCrossingA(HWND ,LPSTR ,LPSTR ,BOOL);
 INTERNETAPI DWORD WINAPI InternetConfirmZoneCrossingW(HWND ,LPWSTR ,LPWSTR ,BOOL);
 #define InternetConfirmZoneCrossing WINELIB_NAME_AW(InternetConfirmZoneCrossing)
 
+#define PRIVACY_TEMPLATE_NO_COOKIES  0
+#define PRIVACY_TEMPLATE_HIGH        1
+#define PRIVACY_TEMPLATE_MEDIUM_HIGH 2
+#define PRIVACY_TEMPLATE_MEDIUM      3
+#define PRIVACY_TEMPLATE_MEDIUM_LOW  4
+#define PRIVACY_TEMPLATE_LOW         5
+#define PRIVACY_TEMPLATE_CUSTOM      100
+#define PRIVACY_TEMPLATE_ADVANCED    101
+
+#define PRIVACY_TEMPLATE_MAX         PRIVACY_TEMPLATE_LOW
+
+#define PRIVACY_TYPE_FIRST_PARTY 0
+#define PRIVACY_TYPE_THIRD_PARTY 1
+
+INTERNETAPI DWORD WINAPI PrivacySetZonePreferenceW(DWORD,DWORD,DWORD,LPCWSTR);
+INTERNETAPI DWORD WINAPI PrivacyGetZonePreferenceW(DWORD,DWORD,LPDWORD,LPWSTR,LPDWORD);
+
 #define INTERNET_ERROR_BASE                     12000
 
 #define ERROR_INTERNET_OUT_OF_HANDLES           (INTERNET_ERROR_BASE + 1)




More information about the wine-cvs mailing list