Forward some IXMLDOMDocument methods to the implemenation's contained
[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 %s %p\n", hwnd, debugstr_guid(ActionID), ActionData);
72
73     /* Trust providers can be found at:
74      * HKLM\SOFTWARE\Microsoft\Cryptography\Providers\Trust\CertCheck\
75      *
76      * As we do not have any trust providers yet (or cater for it),
77      * return just that.
78      */
79
80     return TRUST_E_PROVIDER_UNKNOWN;
81 }
82
83 /***********************************************************************
84  *              WintrustAddActionID (WINTRUST.@)
85  */
86 BOOL WINAPI WintrustAddActionID( GUID* pgActionID, DWORD fdwFlags,
87                                  CRYPT_REGISTER_ACTIONID* psProvInfo)
88 {
89     FIXME("%p %lx %p\n", pgActionID, fdwFlags, psProvInfo);
90     SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
91     return FALSE;
92 }
93
94 /***********************************************************************
95  *              WintrustAddActionID (WINTRUST.@)
96  */
97 void WINAPI WintrustGetRegPolicyFlags( DWORD* pdwPolicyFlags )
98 {
99     FIXME("%p\n", pdwPolicyFlags);
100     *pdwPolicyFlags = 0;
101 }