wintrust: Move register related functions to a separate file.
diff --git a/dlls/wintrust/Makefile.in b/dlls/wintrust/Makefile.in index de2b25e..153c7c1 100644 --- a/dlls/wintrust/Makefile.in +++ b/dlls/wintrust/Makefile.in
@@ -6,7 +6,9 @@ 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 @@ } /*********************************************************************** - * 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 @@ 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; -}