Intercept functions for 16-bit relay debugging by patching the
[wine] / dlls / wintrust / wintrust_main.c
1 /*
2  * Copyright 2001 Rein Klazes
3  *
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.
8  *
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.
13  *
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
17  */
18
19 #include "config.h"
20
21 #include <stdarg.h>
22
23 #include "windef.h"
24 #include "winbase.h"
25 #include "winerror.h"
26 #include "guiddef.h"
27 #include "wintrust.h"
28 #include "mscat.h"
29
30 #include "wine/debug.h"
31
32 WINE_DEFAULT_DEBUG_CHANNEL(wintrust);
33
34 /***********************************************************************
35  *              CryptCATAdminAcquireContext (WINTRUST.@)
36  */
37 BOOL WINAPI CryptCATAdminAcquireContext(HCATADMIN* catAdmin,
38                                         const GUID *sysSystem, DWORD dwFlags )
39 {
40     FIXME("%p %s %lx\n", catAdmin, debugstr_guid(sysSystem), dwFlags);
41     SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
42     return FALSE;
43 }
44
45 /***********************************************************************
46  *             CryptCATAdminCalcHashFromFileHandle (WINTRUST.@)
47  */
48 BOOL WINAPI CryptCATAdminCalcHashFromFileHandle(HANDLE hFile, DWORD* pcbHash,
49                                                 BYTE* pbHash, DWORD dwFlags )
50 {
51     FIXME("%p %p %p %lx\n", hFile, pcbHash, pbHash, dwFlags);
52     SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
53     return FALSE;
54 }
55
56 /***********************************************************************
57  *              CryptCATAdminReleaseContext (WINTRUST.@)
58  */
59 BOOL WINAPI CryptCATAdminReleaseContext(HCATADMIN hCatAdmin, DWORD dwFlags )
60 {
61     FIXME("%p %lx\n", hCatAdmin, dwFlags);
62     SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
63     return FALSE;
64 }
65
66 /***********************************************************************
67  *              WinVerifyTrust (WINTRUST.@)
68  */
69 LONG WINAPI WinVerifyTrust( HWND hwnd, GUID *ActionID,  WINTRUST_DATA* ActionData )
70 {
71     FIXME("%p %p %p\n", hwnd, ActionID,  ActionData);
72     return ERROR_SUCCESS;
73 }
74
75 /***********************************************************************
76  *              WintrustAddActionID (WINTRUST.@)
77  */
78 BOOL WINAPI WintrustAddActionID( GUID* pgActionID, DWORD fdwFlags,
79                                  CRYPT_REGISTER_ACTIONID* psProvInfo)
80 {
81     FIXME("%p %lx %p\n", pgActionID, fdwFlags, psProvInfo);
82     SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
83     return FALSE;
84 }
85
86 /***********************************************************************
87  *              WintrustAddActionID (WINTRUST.@)
88  */
89 void WINAPI WintrustGetRegPolicyFlags( DWORD* pdwPolicyFlags )
90 {
91     FIXME("%p\n", pdwPolicyFlags);
92     *pdwPolicyFlags = 0;
93 }