Detlef Riekenberg : inetcpl: Implement LaunchSiteCertDialog on top of cryptui.CryptUIDlgCertMgr.

Alexandre Julliard julliard at winehq.org
Mon Sep 20 12:12:23 CDT 2010


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

Author: Detlef Riekenberg <wine.dev at web.de>
Date:   Fri Sep 17 19:19:35 2010 +0200

inetcpl: Implement LaunchSiteCertDialog on top of cryptui.CryptUIDlgCertMgr.

---

 dlls/inetcpl.cpl/Makefile.in      |    2 +
 dlls/inetcpl.cpl/content.c        |   73 +++++++++++++++++++++++++++++++++++++
 dlls/inetcpl.cpl/inetcpl.cpl.spec |    2 +-
 3 files changed, 76 insertions(+), 1 deletions(-)

diff --git a/dlls/inetcpl.cpl/Makefile.in b/dlls/inetcpl.cpl/Makefile.in
index 972f103..f2259c3 100644
--- a/dlls/inetcpl.cpl/Makefile.in
+++ b/dlls/inetcpl.cpl/Makefile.in
@@ -1,6 +1,8 @@
 MODULE    = inetcpl.cpl
+DELAYIMPORTS = cryptui
 
 C_SRCS = \
+	content.c \
 	inetcpl.c
 
 RC_SRCS = \
diff --git a/dlls/inetcpl.cpl/content.c b/dlls/inetcpl.cpl/content.c
new file mode 100644
index 0000000..4cc0d75
--- /dev/null
+++ b/dlls/inetcpl.cpl/content.c
@@ -0,0 +1,73 @@
+/*
+ * Internet control panel applet: content propsheet
+ *
+ * Copyright 2010 Detlef Riekenberg
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License as published by the Free Software Foundation; either
+ * version 2.1 of the License, or (at your option) any later version.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
+ *
+ */
+
+#define NONAMELESSUNION
+
+#include <stdarg.h>
+#include <windef.h>
+#include <winbase.h>
+#include <winuser.h>
+#include <cryptuiapi.h>
+
+#include "wine/debug.h"
+
+WINE_DEFAULT_DEBUG_CHANNEL(inetcpl);
+
+/*********************************************************************
+ * display_cert_manager (internal)
+ *
+ * call cryptui to display a specific certificate manager dialog
+ *
+ */
+static BOOL display_cert_manager(HWND parent, DWORD flags)
+{
+    CRYPTUI_CERT_MGR_STRUCT dlg;
+
+    TRACE("(%p, 0x%x)\n", parent, flags);
+
+    ZeroMemory(&dlg, sizeof(CRYPTUI_CERT_MGR_STRUCT));
+    dlg.dwSize = sizeof(CRYPTUI_CERT_MGR_STRUCT);
+    dlg.hwndParent = parent;
+    dlg.dwFlags = flags;
+
+    return CryptUIDlgCertMgr(&dlg);
+}
+
+/*********************************************************************
+ * LaunchSiteCertDialog (inetcpl.@)
+ *
+ * Launch a dialog to manage personal certificates
+ *
+ * PARAMS
+ *  hWnd    [I] Handle for the parrent window
+ *
+ * RETURNS
+ *  Failure: FALSE
+ *  Success: TRUE
+ *
+ * NOTES
+ *  rundll32 callable function: rundll32 inetcpl.cpl,LaunchSiteCertDialog
+ *
+ */
+BOOL WINAPI LaunchSiteCertDialog(HWND parent)
+{
+    return display_cert_manager(parent, 0);
+}
diff --git a/dlls/inetcpl.cpl/inetcpl.cpl.spec b/dlls/inetcpl.cpl/inetcpl.cpl.spec
index 4394145..21cb34b 100644
--- a/dlls/inetcpl.cpl/inetcpl.cpl.spec
+++ b/dlls/inetcpl.cpl/inetcpl.cpl.spec
@@ -14,7 +14,7 @@
 @ stub LaunchPrivacyDialog
 @ stub LaunchSecurityDialog
 @ stub LaunchSecurityDialogEx
-@ stub LaunchSiteCertDialog
+@ stdcall LaunchSiteCertDialog(long)
 @ stub OpenFontsDialog
 @ stub OpenFontsDialogEx
 @ stub OpenLanguageDialog




More information about the wine-cvs mailing list