wintrust [1/2]: Move register related functions to a separate file

Paul Vriens Paul.Vriens at xs4all.nl
Mon Aug 28 09:52:38 CDT 2006


Hi,

I'm moving the register related functions to a separate file. It will contain
several DllRegister functions as well as the stuff that deals with registering
trust providers. I'm going to built on this, so at least our registry looks
OK.

Changelog:
  Move register related functions to a separate file

Cheers,

Paul.
---
 dlls/wintrust/Makefile.in     |    4 ++
 dlls/wintrust/register.c      |   72 +++++++++++++++++++++++++++++++++++++++++
 dlls/wintrust/wintrust_main.c |   39 ----------------------
 3 files changed, 75 insertions(+), 40 deletions(-)

diff --git a/dlls/wintrust/Makefile.in b/dlls/wintrust/Makefile.in
index de2b25e..b7f1e9a 100644
--- a/dlls/wintrust/Makefile.in
+++ b/dlls/wintrust/Makefile.in
@@ -6,7 +6,9 @@ MODULE    = wintrust.dll
 IMPORTLIB = libwintrust.$(IMPLIBEXT)
 IMPORTS   = crypt32 kernel32
 
-C_SRCS = wintrust_main.c
+C_SRCS = \
+        register.c \
+        wintrust_main.c
 
 RC_SRCS = \
         version.rc
diff --git a/dlls/wintrust/register.c b/dlls/wintrust/register.c
new file mode 100644
index 0000000..b2e883b
--- /dev/null
+++ b/dlls/wintrust/register.c
@@ -0,0 +1,72 @@
+/*
+ * Register related wintrust functions
+ *
+ * Copyright 2006 Paul Vriens
+ *
+ * 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
+ */
+
+#include <stdarg.h>
+
+#include "windef.h"
+#include "winbase.h"
+#include "winerror.h"
+
+#include "guiddef.h"
+#include "wintrust.h"
+#include "softpub.h"
+
+#include "wine/debug.h"
+
+WINE_DEFAULT_DEBUG_CHANNEL(wintrust);
+
+/***********************************************************************
+ *		WintrustAddActionID (WINTRUST.@)
+ */
+BOOL WINAPI WintrustAddActionID( GUID* pgActionID, DWORD fdwFlags,
+                                 CRYPT_REGISTER_ACTIONID* psProvInfo)
+{
+    FIXME("%p %lx %p\n", pgActionID, fdwFlags, psProvInfo);
+    SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
+    return FALSE;
+}
+
+/***********************************************************************
+ *              WintrustRemoveActionID (WINTRUST.@)
+ */
+BOOL WINAPI WintrustRemoveActionID( GUID* pgActionID )
+{
+    FIXME("(%s)\n", debugstr_guid(pgActionID));
+    SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
+    return FALSE;
+}
+
+/***********************************************************************
+  *             DllRegisterServer (WINTRUST.@)
+  */
+HRESULT WINAPI DllRegisterServer(void)
+{
+     FIXME("stub\n");
+     return S_OK;
+}
+
+/***********************************************************************
+  *             DllUnregisterServer (WINTRUST.@)
+  */
+HRESULT WINAPI DllUnregisterServer(void)
+{
+     FIXME("stub\n");
+     return S_OK;
+}
diff --git a/dlls/wintrust/wintrust_main.c b/dlls/wintrust/wintrust_main.c
index d3b4dab..8a9a2f5 100644
--- a/dlls/wintrust/wintrust_main.c
+++ b/dlls/wintrust/wintrust_main.c
@@ -188,27 +188,6 @@ CRYPT_PROVIDER_DATA * WINAPI WTHelperPro
 }
 
 /***********************************************************************
- *		WintrustAddActionID (WINTRUST.@)
- */
-BOOL WINAPI WintrustAddActionID( GUID* pgActionID, DWORD fdwFlags,
-                                 CRYPT_REGISTER_ACTIONID* psProvInfo)
-{
-    FIXME("%p %lx %p\n", pgActionID, fdwFlags, psProvInfo);
-    SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
-    return FALSE;
-}
-
-/***********************************************************************
- *              WintrustRemoveActionID (WINTRUST.@)
- */
-BOOL WINAPI WintrustRemoveActionID( GUID* pgActionID )
-{
-    FIXME("(%s)\n", debugstr_guid(pgActionID));
-    SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
-    return FALSE;
-}
-
-/***********************************************************************
  *              WintrustLoadFunctionPointers (WINTRUST.@)
  */
 BOOL WINAPI WintrustLoadFunctionPointers( GUID* pgActionID,
@@ -236,21 +215,3 @@ BOOL WINAPI WintrustSetRegPolicyFlags( D
     FIXME("stub: %lx\n", dwPolicyFlags);
     return TRUE;
 }
-
-/***********************************************************************
-  *             DllRegisterServer (WINTRUST.@)
-  */
-HRESULT WINAPI DllRegisterServer(void)
-{
-     FIXME("stub\n");
-     return S_OK;
-}
-
-/***********************************************************************
-  *             DllUnregisterServer (WINTRUST.@)
-  */
-HRESULT WINAPI DllUnregisterServer(void)
-{
-     FIXME("stub\n");
-     return S_OK;
-}
-- 
1.4.1.1




More information about the wine-patches mailing list