Paul Vriens : wintrust: Implement SoftpubDllRegisterServer.

Alexandre Julliard julliard at wine.codeweavers.com
Tue Sep 26 05:30:01 CDT 2006


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

Author: Paul Vriens <Paul.Vriens at xs4all.nl>
Date:   Sat Sep 23 14:09:49 2006 +0200

wintrust: Implement SoftpubDllRegisterServer.

---

 dlls/wintrust/register.c |   45 +++++++++++++++++++++++++++++++++++++++++++--
 1 files changed, 43 insertions(+), 2 deletions(-)

diff --git a/dlls/wintrust/register.c b/dlls/wintrust/register.c
index 6fb1f58..cc9b9b7 100644
--- a/dlls/wintrust/register.c
+++ b/dlls/wintrust/register.c
@@ -991,11 +991,52 @@ HRESULT WINAPI DllUnregisterServer(void)
 
 /***********************************************************************
  *              SoftpubDllRegisterServer (WINTRUST.@)
+ *
+ * Registers softpub.dll
+ *
+ * PARAMS
+ *
+ * RETURNS
+ *  Success: S_OK.
+ *  Failure: S_FALSE. (See also GetLastError()).
+ *
+ * NOTES
+ *  DllRegisterServer in softpub.dll will call this function.
+ *  See comments in DllRegisterServer.
  */
 HRESULT WINAPI SoftpubDllRegisterServer(void)
 {
-     FIXME("stub\n");
-     return S_OK;
+    HRESULT TrustProviderRes = S_OK;
+
+    TRACE("\n");
+
+    /* Create the necessary action registry structures */
+    WINTRUST_InitRegStructs();
+
+    /* Register several Trust Provider actions */
+    if (!WINTRUST_RegisterGenVerifyV2())
+        TrustProviderRes = S_FALSE;
+    if (!WINTRUST_RegisterPublishedSoftware())
+        TrustProviderRes = S_FALSE;
+    if (!WINTRUST_RegisterPublishedSoftwareNoBadUi())
+        TrustProviderRes = S_FALSE;
+    if (!WINTRUST_RegisterGenCertVerify())
+        TrustProviderRes = S_FALSE;
+    if (!WINTRUST_RegisterTrustProviderTest())
+        TrustProviderRes = S_FALSE;
+    if (!WINTRUST_RegisterHttpsProv())
+        TrustProviderRes = S_FALSE;
+    if (!WINTRUST_RegisterOfficeSignVerify())
+        TrustProviderRes = S_FALSE;
+    if (!WINTRUST_RegisterDriverVerify())
+        TrustProviderRes = S_FALSE;
+    if (!WINTRUST_RegisterGenChainVerify())
+        TrustProviderRes = S_FALSE;
+
+    /* Free the registry structures */
+    WINTRUST_FreeRegStructs();
+
+    return TrustProviderRes;
 }
 
 /***********************************************************************




More information about the wine-cvs mailing list