Add trailing '\n's to ok() and TRACE() calls.
[wine/testsucceed.git] / dlls / wintrust / wintrust_main.c
blob76912b3902d169256f7b78d4a129a27f0febc228
1 /*
2 * Copyright 2001 Rein Klazes
4 * This library is free software; you can redistribute it and/or
5 * modify it under the terms of the GNU Lesser General Public
6 * License as published by the Free Software Foundation; either
7 * version 2.1 of the License, or (at your option) any later version.
9 * This library is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 * Lesser General Public License for more details.
14 * You should have received a copy of the GNU Lesser General Public
15 * License along with this library; if not, write to the Free Software
16 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
19 #include "config.h"
21 #include <stdarg.h>
23 #include "windef.h"
24 #include "winbase.h"
25 #include "winerror.h"
26 #include "guiddef.h"
27 #include "wintrust.h"
28 #include "mscat.h"
30 #include "wine/debug.h"
32 WINE_DEFAULT_DEBUG_CHANNEL(wintrust);
34 /***********************************************************************
35 * CryptCATAdminAcquireContext (WINTRUST.@)
37 BOOL WINAPI CryptCATAdminAcquireContext(HCATADMIN* catAdmin,
38 const GUID *sysSystem, DWORD dwFlags )
40 FIXME("%p %s %lx\n", catAdmin, debugstr_guid(sysSystem), dwFlags);
41 SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
42 return FALSE;
45 /***********************************************************************
46 * CryptCATAdminCalcHashFromFileHandle (WINTRUST.@)
48 BOOL WINAPI CryptCATAdminCalcHashFromFileHandle(HANDLE hFile, DWORD* pcbHash,
49 BYTE* pbHash, DWORD dwFlags )
51 FIXME("%p %p %p %lx\n", hFile, pcbHash, pbHash, dwFlags);
52 SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
53 return FALSE;
56 /***********************************************************************
57 * CryptCATAdminReleaseContext (WINTRUST.@)
59 BOOL WINAPI CryptCATAdminReleaseContext(HCATADMIN hCatAdmin, DWORD dwFlags )
61 FIXME("%p %lx\n", hCatAdmin, dwFlags);
62 SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
63 return FALSE;
66 /***********************************************************************
67 * WinVerifyTrust (WINTRUST.@)
69 LONG WINAPI WinVerifyTrust( HWND hwnd, GUID *ActionID, WINTRUST_DATA* ActionData )
71 static const GUID WINTRUST_ACTION_GENERIC_VERIFY_V2 = { 0xaac56b, 0xcd44, 0x11d0,
72 { 0x8c,0xc2,0x00,0xc0,0x4f,0xc2,0x95,0xee }};
74 FIXME("%p %s %p\n", hwnd, debugstr_guid(ActionID), ActionData);
76 /* Trust providers can be found at:
77 * HKLM\SOFTWARE\Microsoft\Cryptography\Providers\Trust\CertCheck\
79 * Process Explorer expects a correct implementation, so we
80 * return TRUST_E_PROVIDER_UNKNOWN.
82 * Girotel needs ERROR_SUCCESS.
84 * For now return TRUST_E_PROVIDER_UNKNOWN only when
85 * ActionID = WINTRUST_ACTION_GENERIC_VERIFY_V2.
89 if (IsEqualCLSID(ActionID, &WINTRUST_ACTION_GENERIC_VERIFY_V2))
90 return TRUST_E_PROVIDER_UNKNOWN;
92 return ERROR_SUCCESS;
95 /***********************************************************************
96 * WintrustAddActionID (WINTRUST.@)
98 BOOL WINAPI WintrustAddActionID( GUID* pgActionID, DWORD fdwFlags,
99 CRYPT_REGISTER_ACTIONID* psProvInfo)
101 FIXME("%p %lx %p\n", pgActionID, fdwFlags, psProvInfo);
102 SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
103 return FALSE;
106 /***********************************************************************
107 * WintrustGetRegPolicyFlags (WINTRUST.@)
109 void WINAPI WintrustGetRegPolicyFlags( DWORD* pdwPolicyFlags )
111 FIXME("%p\n", pdwPolicyFlags);
112 *pdwPolicyFlags = 0;
115 /***********************************************************************
116 * WintrustSetRegPolicyFlags (WINTRUST.@)
118 BOOL WINAPI WintrustSetRegPolicyFlags( DWORD dwPolicyFlags)
120 FIXME("stub: %lx\n", dwPolicyFlags);
121 return TRUE;
124 /***********************************************************************
125 * DllRegisterServer (WINTRUST.@)
127 HRESULT WINAPI DllRegisterServer(void)
129 FIXME("stub\n");
130 return S_OK;
133 /***********************************************************************
134 * DllUnregisterServer (WINTRUST.@)
136 HRESULT WINAPI DllUnregisterServer(void)
138 FIXME("stub\n");
139 return S_OK;