VirtualBox

source: vbox/trunk/src/VBox/Additions/WINNT/Graphics/Wine/include/softpub.h@ 33281

Last change on this file since 33281 was 16477, checked in by vboxsync, 16 years ago

LGPL disclaimer by filemuncher

  • Property svn:eol-style set to native
File size: 11.0 KB
Line 
1/*
2 * Copyright (C) 2006 Mike McCormack
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., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
17 */
18
19/*
20 * Sun LGPL Disclaimer: For the avoidance of doubt, except that if any license choice
21 * other than GPL or LGPL is available it will apply instead, Sun elects to use only
22 * the Lesser General Public License version 2.1 (LGPLv2) at this time for any software where
23 * a choice of LGPL license versions is made available with the language indicating
24 * that LGPLv2 or any later version may be used, or where a choice of which version
25 * of the LGPL is applied is otherwise unspecified.
26 */
27
28#ifndef __WINE_SOFTPUB_H
29#define __WINE_SOFTPUB_H
30
31#include <wintrust.h>
32
33#define WINTRUST_ACTION_GENERIC_CERT_VERIFY \
34 { 0x189a3842, 0x3041, 0x11d1, { 0x85,0xe1,0x00,0xc0,0x4f,0xc2,0x95,0xee }}
35
36#if defined(__GNUC__)
37#define SP_GENERIC_CERT_INIT_FUNCTION (const WCHAR []) \
38 {'S','o','f','t','p','u','b','D','e','f','C','e','r','t','I','n','i','t', 0}
39#elif defined(_MSC_VER)
40#define SP_GENERIC_CERT_INIT_FUNCTION L"SoftpubDefCertInit"
41#else
42static const WCHAR SP_GENERIC_CERT_INIT_FUNCTION[] =
43 {'S','o','f','t','p','u','b','D','e','f','C','e','r','t','I','n','i','t', 0};
44#endif
45
46#define WINTRUST_ACTION_GENERIC_CHAIN_VERIFY \
47 { 0xfc451c16, 0xac75, 0x11d1, { 0xb4,0xb8,0x00,0xc0,0x4f,0xb6,0x6e,0xa0 }}
48
49#if defined(__GNUC__)
50#define GENERIC_CHAIN_FINALPOLICY_FUNCTION (const WCHAR []) \
51 {'G','e','n','e','r','i','c','C','h','a','i','n','F','i','n','a','l','P','r','o','v', 0}
52#define GENERIC_CHAIN_CERTTRUST_FUNCTION (const WCHAR []) \
53 {'G','e','n','e','r','i','c','C','h','a','i','n','C','e','r','t','i','f','i','c','a','t','e','T','r','u','s','t', 0}
54#elif defined(_MSC_VER)
55#define GENERIC_CHAIN_FINALPOLICY_FUNCTION L"GenericChainFinalProv"
56#define GENERIC_CHAIN_CERTTRUST_FUNCTION L"GenericChainCertificateTrust"
57#else
58static const WCHAR GENERIC_CHAIN_FINALPOLICY_FUNCTION[] =
59 {'G','e','n','e','r','i','c','C','h','a','i','n','F','i','n','a','l','P','r','o','v', 0};
60static const WCHAR GENERIC_CHAIN_CERTTRUST_FUNCTION[] =
61 {'G','e','n','e','r','i','c','C','h','a','i','n','C','e','r','t','i','f','i','c','a','t','e','T','r','u','s','t', 0};
62#endif
63
64typedef struct _WTD_GENERIC_CHAIN_POLICY_SIGNER_INFO
65{
66 union {
67 DWORD cbStruct;
68 DWORD cbSize;
69 } DUMMYUNIONNAME;
70 PCCERT_CHAIN_CONTEXT pChainContext;
71 DWORD dwSignerType;
72 PCMSG_SIGNER_INFO pMsgSignerInfo;
73 DWORD dwError;
74 DWORD cCounterSigner;
75 struct _WTD_GENERIC_CHAIN_POLICY_SIGNER_INFO *rgpCounterSigner;
76} WTD_GENERIC_CHAIN_POLICY_SIGNER_INFO, *PWTD_GENERIC_CHAIN_POLICY_SIGNER_INFO;
77
78typedef HRESULT (WINAPI *PFN_WTD_GENERIC_CHAIN_POLICY_CALLBACK)(
79 PCRYPT_PROVIDER_DATA pProvData, DWORD dwStepError, DWORD dwRegPolicySettings,
80 DWORD cSigner, PWTD_GENERIC_CHAIN_POLICY_SIGNER_INFO rgpSigner,
81 void *pvPolicyArg);
82
83typedef struct _WTD_GENERIC_CHAIN_POLICY_CREATE_INFO
84{
85 union {
86 DWORD cbStruct;
87 DWORD cbSize;
88 } DUMMYUNIONNAME;
89 HCERTCHAINENGINE hChainEngine;
90 PCERT_CHAIN_PARA pChainPara;
91 DWORD dwFlags;
92 void *pvReserved;
93} WTD_GENERIC_CHAIN_POLICY_CREATE_INFO, *PWTD_GENERIC_CHAIN_POLICY_CREATE_INFO;
94
95typedef struct _WTD_GENERIC_CHAIN_POLICY_DATA
96{
97 union {
98 DWORD cbStruct;
99 DWORD cbSize;
100 } DUMMYUNIONNAME;
101 PWTD_GENERIC_CHAIN_POLICY_CREATE_INFO pSignerChainInfo;
102 PWTD_GENERIC_CHAIN_POLICY_CREATE_INFO pCounterSignerChainInfo;
103 PFN_WTD_GENERIC_CHAIN_POLICY_CALLBACK pfnPolicyCallback;
104 void *pvPolicyArg;
105} WTD_GENERIC_CHAIN_POLICY_DATA, *PWTD_GENERIC_CHAIN_POLICY_DATA;
106
107#if defined(__GNUC__)
108#define SP_POLICY_PROVIDER_DLL_NAME (const WCHAR []) \
109 {'W','I','N','T','R','U','S','T','.','D','L','L' ,0}
110#elif defined(_MSC_VER)
111#define SP_POLICY_PROVIDER_DLL_NAME L"WINTRUST.DLL"
112#else
113static const WCHAR SP_POLICY_PROVIDER_DLL_NAME[] =
114 {'W','I','N','T','R','U','S','T','.','D','L','L', 0};
115#endif
116
117#define WINTRUST_ACTION_GENERIC_VERIFY_V2 \
118 { 0xaac56b, 0xcd44, 0x11d0, { 0x8c,0xc2,0x00,0xc0,0x4f,0xc2,0x95,0xee }}
119
120#if defined(__GNUC__)
121#define SP_INIT_FUNCTION (const WCHAR []) \
122 {'S','o','f','t','p','u','b','I','n','i','t','i','a','l','i','z','e', 0}
123#define SP_OBJTRUST_FUNCTION (const WCHAR []) \
124 {'S','o','f','t','p','u','b','L','o','a','d','M','e','s','s','a','g','e', 0}
125#define SP_SIGTRUST_FUNCTION (const WCHAR []) \
126 {'S','o','f','t','p','u','b','L','o','a','d','S','i','g','n','a','t','u','r','e', 0}
127#define SP_CHKCERT_FUNCTION (const WCHAR []) \
128 {'S','o','f','t','p','u','b','C','h','e','c','k','C','e','r','t', 0}
129#define SP_FINALPOLICY_FUNCTION (const WCHAR []) \
130 {'S','o','f','t','p','u','b','A','u','t','h','e','n','t','i','c','o','d','e', 0}
131#define SP_CLEANUPPOLICY_FUNCTION (const WCHAR []) \
132 {'S','o','f','t','p','u','b','C','l','e','a','n','u','p', 0}
133#elif defined(_MSC_VER)
134#define SP_INIT_FUNCTION L"SoftpubInitialize"
135#define SP_OBJTRUST_FUNCTION L"SoftpubLoadMessage"
136#define SP_SIGTRUST_FUNCTION L"SoftpubLoadSignature"
137#define SP_CHKCERT_FUNCTION L"SoftpubCheckCert"
138#define SP_FINALPOLICY_FUNCTION L"SoftpubAuthenticode"
139#define SP_CLEANUPPOLICY_FUNCTION L"SoftpubCleanup"
140#else
141static const WCHAR SP_INIT_FUNCTION[] =
142 {'S','o','f','t','p','u','b','I','n','i','t','i','a','l','i','z','e', 0};
143static const WCHAR SP_OBJTRUST_FUNCTION[] =
144 {'S','o','f','t','p','u','b','L','o','a','d','M','e','s','s','a','g','e', 0};
145static const WCHAR SP_SIGTRUST_FUNCTION[] =
146 {'S','o','f','t','p','u','b','L','o','a','d','S','i','g','n','a','t','u','r','e', 0};
147static const WCHAR SP_CHKCERT_FUNCTION[] =
148 {'S','o','f','t','p','u','b','C','h','e','c','k','C','e','r','t', 0};
149static const WCHAR SP_FINALPOLICY_FUNCTION[] =
150 {'S','o','f','t','p','u','b','A','u','t','h','e','n','t','i','c','o','d','e', 0};
151static const WCHAR SP_CLEANUPPOLICY_FUNCTION[] =
152 {'S','o','f','t','p','u','b','C','l','e','a','n','u','p', 0};
153#endif
154
155#define WINTRUST_ACTION_TRUSTPROVIDER_TEST \
156 { 0x573e31f8, 0xddba, 0x11d0, { 0x8c,0xcb,0x00,0xc0,0x4f,0xc2,0x95,0xee }}
157
158#if defined(__GNUC__)
159#define SP_TESTDUMPPOLICY_FUNCTION_TEST (const WCHAR []) \
160 {'S','o','f','t','p','u','b','D','u','m','p','S','t','r','u','c','t','u','r','e', 0}
161#elif defined(_MSC_VER)
162#define SP_TESTDUMPPOLICY_FUNCTION_TEST L"SoftpubDumpStructure"
163#else
164static const WCHAR SP_TESTDUMPPOLICY_FUNCTION_TEST[] =
165 {'S','o','f','t','p','u','b','D','u','m','p','S','t','r','u','c','t','u','r','e', 0};
166#endif
167
168#define HTTPSPROV_ACTION \
169 { 0x573e31f8, 0xaaba, 0x11d0, { 0x8c,0xcb,0x00,0xc0,0x4f,0xc2,0x95,0xee }}
170
171#if defined(__GNUC__)
172#define HTTPS_CERTTRUST_FUNCTION (const WCHAR []) \
173 {'H','T','T','P','S','C','e','r','t','i','f','i','c','a','t','e','T','r','u','s','t', 0}
174#define HTTPS_FINALPOLICY_FUNCTION (const WCHAR []) \
175 {'H','T','T','P','S','F','i','n','a','l','P','r','o','v', 0}
176#elif defined(_MSC_VER)
177#define HTTPS_FINALPOLICY_FUNCTION L"HTTPSFinalProv"
178#define HTTPS_CERTTRUST_FUNCTION L"HTTPSCertificateTrust"
179#else
180static const WCHAR HTTPS_CERTTRUST_FUNCTION[] =
181 {'H','T','T','P','S','C','e','r','t','i','f','i','c','a','t','e','T','r','u','s','t', 0};
182static const WCHAR HTTPS_FINALPOLICY_FUNCTION[] =
183 {'H','T','T','P','S','F','i','n','a','l','P','r','o','v', 0};
184#endif
185
186#define OFFICESIGN_ACTION_VERIFY \
187 { 0x5555c2cd, 0x17fb, 0x11d1, { 0x85,0xc4,0x00,0xc0,0x4f,0xc2,0x95,0xee }}
188
189#if defined(__GNUC__)
190#define OFFICE_POLICY_PROVIDER_DLL_NAME (const WCHAR []) \
191 {'W','I','N','T','R','U','S','T','.','D','L','L' ,0}
192#define OFFICE_INITPROV_FUNCTION (const WCHAR []) \
193 {'O','f','f','i','c','e','I','n','i','t','i','a','l','i','z','e','P','o','l','i','c','y', 0}
194#define OFFICE_CLEANUPPOLICY_FUNCTION (const WCHAR []) \
195 {'O','f','f','i','c','e','C','l','e','a','n','u','p','P','o','l','i','c','y', 0}
196#elif defined(_MSC_VER)
197#define OFFICE_POLICY_PROVIDER_DLL_NAME SP_POLICY_PROVIDER_DLL_NAME
198#define OFFICE_INITPROV_FUNCTION L"OfficeInitializePolicy"
199#define OFFICE_CLEANUPPOLICY_FUNCTION L"OfficeCleanupPolicy"
200#else
201static const WCHAR OFFICE_POLICY_PROVIDER_DLL_NAME[] =
202 {'W','I','N','T','R','U','S','T','.','D','L','L', 0};
203static const WCHAR OFFICE_INITPROV_FUNCTION[] =
204 {'O','f','f','i','c','e','I','n','i','t','i','a','l','i','z','e','P','o','l','i','c','y', 0};
205static const WCHAR OFFICE_CLEANUPPOLICY_FUNCTION[] =
206 {'O','f','f','i','c','e','C','l','e','a','n','u','p','P','o','l','i','c','y', 0};
207#endif
208
209#define DRIVER_ACTION_VERIFY \
210 { 0xf750e6c3, 0x38ee, 0x11d1, { 0x85,0xe5,0x00,0xc0,0x4f,0xc2,0x95,0xee }}
211
212#if defined(__GNUC__)
213#define DRIVER_INITPROV_FUNCTION (const WCHAR []) \
214 {'D','r','i','v','e','r','I','n','i','t','i','a','l','i','z','e','P','o','l','i','c','y', 0}
215#define DRIVER_FINALPOLPROV_FUNCTION (const WCHAR []) \
216 {'D','r','i','v','e','r','F','i','n','a','l','P','o','l','i','c','y', 0}
217#define DRIVER_CLEANUPPOLICY_FUNCTION (const WCHAR []) \
218 {'D','r','i','v','e','r','C','l','e','a','n','u','p','P','o','l','i','c','y', 0}
219#elif defined(_MSC_VER)
220#define DRIVER_INITPROV_FUNCTION L"DriverInitializePolicy"
221#define DRIVER_FINALPOLPROV_FUNCTION L"DriverFinalPolicy"
222#define DRIVER_CLEANUPPOLICY_FUNCTION L"DriverCleanupPolicy"
223#else
224static const WCHAR DRIVER_INITPROV_FUNCTION[] =
225 {'D','r','i','v','e','r','I','n','i','t','i','a','l','i','z','e','P','o','l','i','c','y', 0};
226static const WCHAR DRIVER_FINALPOLPROV_FUNCTION[] =
227 {'D','r','i','v','e','r','F','i','n','a','l','P','o','l','i','c','y', 0};
228static const WCHAR DRIVER_CLEANUPPOLICY_FUNCTION[] =
229 {'D','r','i','v','e','r','C','l','e','a','n','u','p','P','o','l','i','c','y', 0};
230#endif
231
232typedef struct DRIVER_VER_MAJORMINOR_
233{
234 DWORD dwMajor;
235 DWORD dwMinor;
236} DRIVER_VER_MAJORMINOR;
237
238typedef struct DRIVER_VER_INFO_
239{
240 DWORD cbStruct;
241 ULONG_PTR dwReserved1;
242 ULONG_PTR dwReserved2;
243 DWORD dwPlatform;
244 DWORD dwVersion;
245 WCHAR wszVersion[MAX_PATH];
246 WCHAR wszSignedBy[MAX_PATH];
247 PCCERT_CONTEXT pcSignerCertContext;
248 DRIVER_VER_MAJORMINOR sOSVersionLow;
249 DRIVER_VER_MAJORMINOR sOSVersionHigh;
250 DWORD dwBuildNumberLow;
251 DWORD dwBuildNumberHigh;
252} DRIVER_VER_INFO, *PDRIVER_VER_INFO;
253
254#endif /* __WINE_SOFTPUB_H */
Note: See TracBrowser for help on using the repository browser.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette