Correct the test for the ODS_SELECTED bit in the WM_DRAWITEM message
[wine] / dlls / crypt32 / main.c
1 /*
2  * Copyright 2002 Mike McCormack for CodeWeavers
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 #include <stdarg.h>
21
22 #include "windef.h"
23 #include "winbase.h"
24 #include "wincrypt.h"
25 #include "mssip.h"
26 #include "wine/debug.h"
27
28 WINE_DEFAULT_DEBUG_CHANNEL(crypt);
29
30 /* this function is called by Internet Explorer when it is about to verify a downloaded component */
31 BOOL WINAPI I_CryptCreateLruCache(DWORD x, DWORD y)
32 {
33     FIXME("stub!\n");
34     return FALSE;
35 }
36
37 /* these functions all have an unknown number of args */
38 BOOL WINAPI I_CryptFindLruEntryData(DWORD x)
39 {
40     FIXME("stub!\n");
41     return FALSE;
42 }
43
44 BOOL WINAPI I_CryptFlushLruCache(DWORD x)
45 {
46     FIXME("stub!\n");
47     return FALSE;
48 }
49
50 BOOL WINAPI I_CryptFreeLruCache(DWORD x)
51 {
52     FIXME("stub!\n");
53     return FALSE;
54 }
55
56 BOOL WINAPI CryptProtectData(DATA_BLOB* pDataIn, LPCWSTR szDataDescr, DATA_BLOB* pOptionalEntropy,
57                              PVOID pvReserved, CRYPTPROTECT_PROMPTSTRUCT* pPromptStruct,
58                              DWORD dwFlags, DATA_BLOB* pDataOut)
59 {
60     FIXME("stub!\n");
61     return FALSE;
62 }
63
64 /*
65  * (0x1001350, %eax, 0, 0, 9);
66  *
67  */
68 BOOL WINAPI CertOpenStore(LPSTR dw1, DWORD dw2, DWORD dw3, DWORD dw4, DWORD dw5)
69 {
70   FIXME("(%s, %ld, %ld, %ld, %ld), stub.\n", debugstr_a(dw1), dw2, dw3, dw4, dw5);
71   return TRUE;
72 }
73
74 BOOL WINAPI CryptSIPRemoveProvider(GUID *pgProv)
75 {
76     FIXME("stub!\n");
77     return FALSE;
78 }
79
80 BOOL WINAPI CryptSIPAddProvider(SIP_ADD_NEWPROVIDER *psNewProv)
81 {
82     FIXME("stub!\n");
83     return FALSE;
84 }
85
86 BOOL WINAPI CryptSIPRetrieveSubjectGuid
87       (LPCWSTR FileName, HANDLE hFileIn, GUID *pgSubject)
88 {
89     FIXME("stub!\n");
90     return FALSE;
91 }
92
93 BOOL WINAPI CryptSIPLoad
94        (const GUID *pgSubject, DWORD dwFlags, SIP_DISPATCH_INFO *pSipDispatch)
95 {
96     FIXME("stub!\n");
97     return FALSE;
98 }
99
100 BOOL WINAPI CryptGetOIDFunctionValue(DWORD dwEncodingType, LPCSTR pszFuncName,
101                                      LPCSTR pszOID, LPCWSTR pwszValueName,
102                                      DWORD *pdwValueType, BYTE *pbValueData,
103                                      DWORD *pcbValueData)
104 {
105     FIXME("(%lx,%s,%s,%s,%p,%p,%p) stub!\n", dwEncodingType, pszFuncName, pszOID,
106           debugstr_w(pwszValueName), pdwValueType, pbValueData, pcbValueData);
107     return FALSE;
108 }
109
110 BOOL WINAPI CryptRegisterDefaultOIDFunction(DWORD dwEncodingType,
111                                      LPCSTR pszFuncName, DWORD dwIndex,
112                                      LPCWSTR pwszDll)
113 {
114     FIXME("(%lx,%s,%lx,%s) stub!\n", dwEncodingType, pszFuncName, dwIndex,
115           debugstr_w(pwszDll));
116     return FALSE;
117 }
118
119 BOOL WINAPI CryptRegisterOIDFunction(DWORD dwEncodingType, LPCSTR pszFuncName,
120                                      LPCSTR pszOID, LPCWSTR pwszDll, LPCSTR pszOverrideFuncName)
121 {
122     FIXME("(%lx,%s,%s,%s,%s) stub!\n", dwEncodingType, pszFuncName, pszOID,
123           debugstr_w(pwszDll), pszOverrideFuncName);
124     return FALSE;
125 }
126
127 PCCERT_CONTEXT WINAPI CertEnumCertificatesInStore(HCERTSTORE hCertStore, PCCERT_CONTEXT pPrev)
128 {
129     FIXME("(%p,%p)\n", hCertStore, pPrev);
130     return NULL;
131 }
132
133 BOOL WINAPI CertSaveStore(HCERTSTORE hCertStore, DWORD dwMsgAndCertEncodingType,
134              DWORD dwSaveAs, DWORD dwSaveTo, void* pvSaveToPara, DWORD dwFlags)
135 {
136     FIXME("(%p,%ld,%ld,%ld,%p,%08lx) stub!\n", hCertStore, 
137           dwMsgAndCertEncodingType, dwSaveAs, dwSaveTo, pvSaveToPara, dwFlags);
138     return TRUE;
139 }