ReactOS 0.4.16-dev-91-g764881a
softpub.h
Go to the documentation of this file.
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#ifndef __WINE_SOFTPUB_H
20#define __WINE_SOFTPUB_H
21
22#include <wintrust.h>
23
24#define WINTRUST_ACTION_GENERIC_CERT_VERIFY \
25 { 0x189a3842, 0x3041, 0x11d1, { 0x85,0xe1,0x00,0xc0,0x4f,0xc2,0x95,0xee }}
26
27#if defined(__GNUC__)
28#define SP_GENERIC_CERT_INIT_FUNCTION (const WCHAR []) \
29 {'S','o','f','t','p','u','b','D','e','f','C','e','r','t','I','n','i','t', 0}
30#elif defined(_MSC_VER)
31#define SP_GENERIC_CERT_INIT_FUNCTION L"SoftpubDefCertInit"
32#else
34 {'S','o','f','t','p','u','b','D','e','f','C','e','r','t','I','n','i','t', 0};
35#endif
36
37#define WINTRUST_ACTION_GENERIC_CHAIN_VERIFY \
38 { 0xfc451c16, 0xac75, 0x11d1, { 0xb4,0xb8,0x00,0xc0,0x4f,0xb6,0x6e,0xa0 }}
39
40#if defined(__GNUC__)
41#define GENERIC_CHAIN_FINALPOLICY_FUNCTION (const WCHAR []) \
42 {'G','e','n','e','r','i','c','C','h','a','i','n','F','i','n','a','l','P','r','o','v', 0}
43#define GENERIC_CHAIN_CERTTRUST_FUNCTION (const WCHAR []) \
44 {'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}
45#elif defined(_MSC_VER)
46#define GENERIC_CHAIN_FINALPOLICY_FUNCTION L"GenericChainFinalProv"
47#define GENERIC_CHAIN_CERTTRUST_FUNCTION L"GenericChainCertificateTrust"
48#else
50 {'G','e','n','e','r','i','c','C','h','a','i','n','F','i','n','a','l','P','r','o','v', 0};
52 {'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};
53#endif
54
56{
57 union {
68
70 PCRYPT_PROVIDER_DATA pProvData, DWORD dwStepError, DWORD dwRegPolicySettings,
72 void *pvPolicyArg);
73
75{
76 union {
85
87{
88 union {
97
98#if defined(__GNUC__)
99#define SP_POLICY_PROVIDER_DLL_NAME (const WCHAR []) \
100 {'W','I','N','T','R','U','S','T','.','D','L','L' ,0}
101#elif defined(_MSC_VER)
102#define SP_POLICY_PROVIDER_DLL_NAME L"WINTRUST.DLL"
103#else
105 {'W','I','N','T','R','U','S','T','.','D','L','L', 0};
106#endif
107
108#define WINTRUST_ACTION_GENERIC_VERIFY_V2 \
109 { 0xaac56b, 0xcd44, 0x11d0, { 0x8c,0xc2,0x00,0xc0,0x4f,0xc2,0x95,0xee }}
110
111#if defined(__GNUC__)
112#define SP_INIT_FUNCTION (const WCHAR []) \
113 {'S','o','f','t','p','u','b','I','n','i','t','i','a','l','i','z','e', 0}
114#define SP_OBJTRUST_FUNCTION (const WCHAR []) \
115 {'S','o','f','t','p','u','b','L','o','a','d','M','e','s','s','a','g','e', 0}
116#define SP_SIGTRUST_FUNCTION (const WCHAR []) \
117 {'S','o','f','t','p','u','b','L','o','a','d','S','i','g','n','a','t','u','r','e', 0}
118#define SP_CHKCERT_FUNCTION (const WCHAR []) \
119 {'S','o','f','t','p','u','b','C','h','e','c','k','C','e','r','t', 0}
120#define SP_FINALPOLICY_FUNCTION (const WCHAR []) \
121 {'S','o','f','t','p','u','b','A','u','t','h','e','n','t','i','c','o','d','e', 0}
122#define SP_CLEANUPPOLICY_FUNCTION (const WCHAR []) \
123 {'S','o','f','t','p','u','b','C','l','e','a','n','u','p', 0}
124#elif defined(_MSC_VER)
125#define SP_INIT_FUNCTION L"SoftpubInitialize"
126#define SP_OBJTRUST_FUNCTION L"SoftpubLoadMessage"
127#define SP_SIGTRUST_FUNCTION L"SoftpubLoadSignature"
128#define SP_CHKCERT_FUNCTION L"SoftpubCheckCert"
129#define SP_FINALPOLICY_FUNCTION L"SoftpubAuthenticode"
130#define SP_CLEANUPPOLICY_FUNCTION L"SoftpubCleanup"
131#else
132static const WCHAR SP_INIT_FUNCTION[] =
133 {'S','o','f','t','p','u','b','I','n','i','t','i','a','l','i','z','e', 0};
135 {'S','o','f','t','p','u','b','L','o','a','d','M','e','s','s','a','g','e', 0};
137 {'S','o','f','t','p','u','b','L','o','a','d','S','i','g','n','a','t','u','r','e', 0};
139 {'S','o','f','t','p','u','b','C','h','e','c','k','C','e','r','t', 0};
141 {'S','o','f','t','p','u','b','A','u','t','h','e','n','t','i','c','o','d','e', 0};
143 {'S','o','f','t','p','u','b','C','l','e','a','n','u','p', 0};
144#endif
145
146#define WINTRUST_ACTION_TRUSTPROVIDER_TEST \
147 { 0x573e31f8, 0xddba, 0x11d0, { 0x8c,0xcb,0x00,0xc0,0x4f,0xc2,0x95,0xee }}
148
149#if defined(__GNUC__)
150#define SP_TESTDUMPPOLICY_FUNCTION_TEST (const WCHAR []) \
151 {'S','o','f','t','p','u','b','D','u','m','p','S','t','r','u','c','t','u','r','e', 0}
152#elif defined(_MSC_VER)
153#define SP_TESTDUMPPOLICY_FUNCTION_TEST L"SoftpubDumpStructure"
154#else
156 {'S','o','f','t','p','u','b','D','u','m','p','S','t','r','u','c','t','u','r','e', 0};
157#endif
158
159#define HTTPSPROV_ACTION \
160 { 0x573e31f8, 0xaaba, 0x11d0, { 0x8c,0xcb,0x00,0xc0,0x4f,0xc2,0x95,0xee }}
161
162#if defined(__GNUC__)
163#define HTTPS_CERTTRUST_FUNCTION (const WCHAR []) \
164 {'H','T','T','P','S','C','e','r','t','i','f','i','c','a','t','e','T','r','u','s','t', 0}
165#define HTTPS_FINALPOLICY_FUNCTION (const WCHAR []) \
166 {'H','T','T','P','S','F','i','n','a','l','P','r','o','v', 0}
167#elif defined(_MSC_VER)
168#define HTTPS_FINALPOLICY_FUNCTION L"HTTPSFinalProv"
169#define HTTPS_CERTTRUST_FUNCTION L"HTTPSCertificateTrust"
170#else
172 {'H','T','T','P','S','C','e','r','t','i','f','i','c','a','t','e','T','r','u','s','t', 0};
174 {'H','T','T','P','S','F','i','n','a','l','P','r','o','v', 0};
175#endif
176
177#define OFFICESIGN_ACTION_VERIFY \
178 { 0x5555c2cd, 0x17fb, 0x11d1, { 0x85,0xc4,0x00,0xc0,0x4f,0xc2,0x95,0xee }}
179
180#if defined(__GNUC__)
181#define OFFICE_POLICY_PROVIDER_DLL_NAME (const WCHAR []) \
182 {'W','I','N','T','R','U','S','T','.','D','L','L' ,0}
183#define OFFICE_INITPROV_FUNCTION (const WCHAR []) \
184 {'O','f','f','i','c','e','I','n','i','t','i','a','l','i','z','e','P','o','l','i','c','y', 0}
185#define OFFICE_CLEANUPPOLICY_FUNCTION (const WCHAR []) \
186 {'O','f','f','i','c','e','C','l','e','a','n','u','p','P','o','l','i','c','y', 0}
187#elif defined(_MSC_VER)
188#define OFFICE_POLICY_PROVIDER_DLL_NAME SP_POLICY_PROVIDER_DLL_NAME
189#define OFFICE_INITPROV_FUNCTION L"OfficeInitializePolicy"
190#define OFFICE_CLEANUPPOLICY_FUNCTION L"OfficeCleanupPolicy"
191#else
193 {'W','I','N','T','R','U','S','T','.','D','L','L', 0};
195 {'O','f','f','i','c','e','I','n','i','t','i','a','l','i','z','e','P','o','l','i','c','y', 0};
197 {'O','f','f','i','c','e','C','l','e','a','n','u','p','P','o','l','i','c','y', 0};
198#endif
199
200#define DRIVER_ACTION_VERIFY \
201 { 0xf750e6c3, 0x38ee, 0x11d1, { 0x85,0xe5,0x00,0xc0,0x4f,0xc2,0x95,0xee }}
202
203#if defined(__GNUC__)
204#define DRIVER_INITPROV_FUNCTION (const WCHAR []) \
205 {'D','r','i','v','e','r','I','n','i','t','i','a','l','i','z','e','P','o','l','i','c','y', 0}
206#define DRIVER_FINALPOLPROV_FUNCTION (const WCHAR []) \
207 {'D','r','i','v','e','r','F','i','n','a','l','P','o','l','i','c','y', 0}
208#define DRIVER_CLEANUPPOLICY_FUNCTION (const WCHAR []) \
209 {'D','r','i','v','e','r','C','l','e','a','n','u','p','P','o','l','i','c','y', 0}
210#elif defined(_MSC_VER)
211#define DRIVER_INITPROV_FUNCTION L"DriverInitializePolicy"
212#define DRIVER_FINALPOLPROV_FUNCTION L"DriverFinalPolicy"
213#define DRIVER_CLEANUPPOLICY_FUNCTION L"DriverCleanupPolicy"
214#else
216 {'D','r','i','v','e','r','I','n','i','t','i','a','l','i','z','e','P','o','l','i','c','y', 0};
218 {'D','r','i','v','e','r','F','i','n','a','l','P','o','l','i','c','y', 0};
220 {'D','r','i','v','e','r','C','l','e','a','n','u','p','P','o','l','i','c','y', 0};
221#endif
222
224{
228
229typedef struct DRIVER_VER_INFO_
230{
244
245#endif /* __WINE_SOFTPUB_H */
#define MAX_PATH
Definition: compat.h:34
unsigned long DWORD
Definition: ntddk_ex.h:95
static const WCHAR SP_INIT_FUNCTION[]
Definition: softpub.h:132
HRESULT(WINAPI * PFN_WTD_GENERIC_CHAIN_POLICY_CALLBACK)(PCRYPT_PROVIDER_DATA pProvData, DWORD dwStepError, DWORD dwRegPolicySettings, DWORD cSigner, PWTD_GENERIC_CHAIN_POLICY_SIGNER_INFO rgpSigner, void *pvPolicyArg)
Definition: softpub.h:69
struct DRIVER_VER_INFO_ * PDRIVER_VER_INFO
struct _WTD_GENERIC_CHAIN_POLICY_SIGNER_INFO WTD_GENERIC_CHAIN_POLICY_SIGNER_INFO
static const WCHAR GENERIC_CHAIN_CERTTRUST_FUNCTION[]
Definition: softpub.h:51
struct DRIVER_VER_MAJORMINOR_ DRIVER_VER_MAJORMINOR
static const WCHAR OFFICE_CLEANUPPOLICY_FUNCTION[]
Definition: softpub.h:196
static const WCHAR SP_POLICY_PROVIDER_DLL_NAME[]
Definition: softpub.h:104
static const WCHAR GENERIC_CHAIN_FINALPOLICY_FUNCTION[]
Definition: softpub.h:49
static const WCHAR HTTPS_CERTTRUST_FUNCTION[]
Definition: softpub.h:171
struct _WTD_GENERIC_CHAIN_POLICY_DATA WTD_GENERIC_CHAIN_POLICY_DATA
static const WCHAR SP_FINALPOLICY_FUNCTION[]
Definition: softpub.h:140
static const WCHAR DRIVER_INITPROV_FUNCTION[]
Definition: softpub.h:215
static const WCHAR SP_CLEANUPPOLICY_FUNCTION[]
Definition: softpub.h:142
struct _WTD_GENERIC_CHAIN_POLICY_CREATE_INFO WTD_GENERIC_CHAIN_POLICY_CREATE_INFO
struct DRIVER_VER_INFO_ DRIVER_VER_INFO
static const WCHAR HTTPS_FINALPOLICY_FUNCTION[]
Definition: softpub.h:173
static const WCHAR SP_GENERIC_CERT_INIT_FUNCTION[]
Definition: softpub.h:33
static const WCHAR SP_TESTDUMPPOLICY_FUNCTION_TEST[]
Definition: softpub.h:155
static const WCHAR SP_CHKCERT_FUNCTION[]
Definition: softpub.h:138
struct _WTD_GENERIC_CHAIN_POLICY_CREATE_INFO * PWTD_GENERIC_CHAIN_POLICY_CREATE_INFO
static const WCHAR OFFICE_INITPROV_FUNCTION[]
Definition: softpub.h:194
static const WCHAR DRIVER_CLEANUPPOLICY_FUNCTION[]
Definition: softpub.h:219
static const WCHAR SP_OBJTRUST_FUNCTION[]
Definition: softpub.h:134
static const WCHAR SP_SIGTRUST_FUNCTION[]
Definition: softpub.h:136
struct _WTD_GENERIC_CHAIN_POLICY_DATA * PWTD_GENERIC_CHAIN_POLICY_DATA
struct _WTD_GENERIC_CHAIN_POLICY_SIGNER_INFO * PWTD_GENERIC_CHAIN_POLICY_SIGNER_INFO
static const WCHAR OFFICE_POLICY_PROVIDER_DLL_NAME[]
Definition: softpub.h:192
static const WCHAR DRIVER_FINALPOLPROV_FUNCTION[]
Definition: softpub.h:217
WCHAR wszSignedBy[MAX_PATH]
Definition: softpub.h:237
DWORD dwPlatform
Definition: softpub.h:234
PCCERT_CONTEXT pcSignerCertContext
Definition: softpub.h:238
DWORD dwBuildNumberHigh
Definition: softpub.h:242
WCHAR wszVersion[MAX_PATH]
Definition: softpub.h:236
DWORD dwVersion
Definition: softpub.h:235
DRIVER_VER_MAJORMINOR sOSVersionHigh
Definition: softpub.h:240
DWORD cbStruct
Definition: softpub.h:231
DWORD dwBuildNumberLow
Definition: softpub.h:241
DRIVER_VER_MAJORMINOR sOSVersionLow
Definition: softpub.h:239
ULONG_PTR dwReserved2
Definition: softpub.h:233
ULONG_PTR dwReserved1
Definition: softpub.h:232
union _WTD_GENERIC_CHAIN_POLICY_CREATE_INFO::@3230 DUMMYUNIONNAME
PFN_WTD_GENERIC_CHAIN_POLICY_CALLBACK pfnPolicyCallback
Definition: softpub.h:94
PWTD_GENERIC_CHAIN_POLICY_CREATE_INFO pCounterSignerChainInfo
Definition: softpub.h:93
PWTD_GENERIC_CHAIN_POLICY_CREATE_INFO pSignerChainInfo
Definition: softpub.h:92
union _WTD_GENERIC_CHAIN_POLICY_DATA::@3231 DUMMYUNIONNAME
PCMSG_SIGNER_INFO pMsgSignerInfo
Definition: softpub.h:63
PCCERT_CHAIN_CONTEXT pChainContext
Definition: softpub.h:61
struct _WTD_GENERIC_CHAIN_POLICY_SIGNER_INFO * rgpCounterSigner
Definition: softpub.h:66
union _WTD_GENERIC_CHAIN_POLICY_SIGNER_INFO::@3229 DUMMYUNIONNAME
uint32_t ULONG_PTR
Definition: typedefs.h:65
#define HRESULT
Definition: msvc.h:7
#define WINAPI
Definition: msvc.h:6
__wchar_t WCHAR
Definition: xmlstorage.h:180