winecoreaudio: Use mmdevapi's AudioClient's GetService.
[wine.git] / include / softpub.h
blobed10d8fd91350fe718e6ba06000073bf16fe9503
1 /*
2 * Copyright (C) 2006 Mike McCormack
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.
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.
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
19 #ifndef __WINE_SOFTPUB_H
20 #define __WINE_SOFTPUB_H
22 #include <wintrust.h>
24 #define WINTRUST_ACTION_GENERIC_CERT_VERIFY \
25 { 0x189a3842, 0x3041, 0x11d1, { 0x85,0xe1,0x00,0xc0,0x4f,0xc2,0x95,0xee }}
27 #if defined(_MSC_VER) || defined(__MINGW32__)
28 #define SP_GENERIC_CERT_INIT_FUNCTION L"SoftpubDefCertInit"
29 #else
30 static const WCHAR SP_GENERIC_CERT_INIT_FUNCTION[] =
31 {'S','o','f','t','p','u','b','D','e','f','C','e','r','t','I','n','i','t', 0};
32 #endif
34 #define WINTRUST_ACTION_GENERIC_CHAIN_VERIFY \
35 { 0xfc451c16, 0xac75, 0x11d1, { 0xb4,0xb8,0x00,0xc0,0x4f,0xb6,0x6e,0xa0 }}
37 #if defined(_MSC_VER) || defined(__MINGW32__)
38 #define GENERIC_CHAIN_FINALPOLICY_FUNCTION L"GenericChainFinalProv"
39 #define GENERIC_CHAIN_CERTTRUST_FUNCTION L"GenericChainCertificateTrust"
40 #else
41 static const WCHAR GENERIC_CHAIN_FINALPOLICY_FUNCTION[] =
42 {'G','e','n','e','r','i','c','C','h','a','i','n','F','i','n','a','l','P','r','o','v', 0};
43 static const WCHAR GENERIC_CHAIN_CERTTRUST_FUNCTION[] =
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 #endif
47 typedef struct _WTD_GENERIC_CHAIN_POLICY_SIGNER_INFO
49 union {
50 DWORD cbStruct;
51 DWORD cbSize;
52 } DUMMYUNIONNAME;
53 PCCERT_CHAIN_CONTEXT pChainContext;
54 DWORD dwSignerType;
55 PCMSG_SIGNER_INFO pMsgSignerInfo;
56 DWORD dwError;
57 DWORD cCounterSigner;
58 struct _WTD_GENERIC_CHAIN_POLICY_SIGNER_INFO *rgpCounterSigner;
59 } WTD_GENERIC_CHAIN_POLICY_SIGNER_INFO, *PWTD_GENERIC_CHAIN_POLICY_SIGNER_INFO;
61 typedef HRESULT (WINAPI *PFN_WTD_GENERIC_CHAIN_POLICY_CALLBACK)(
62 PCRYPT_PROVIDER_DATA pProvData, DWORD dwStepError, DWORD dwRegPolicySettings,
63 DWORD cSigner, PWTD_GENERIC_CHAIN_POLICY_SIGNER_INFO rgpSigner,
64 void *pvPolicyArg);
66 typedef struct _WTD_GENERIC_CHAIN_POLICY_CREATE_INFO
68 union {
69 DWORD cbStruct;
70 DWORD cbSize;
71 } DUMMYUNIONNAME;
72 HCERTCHAINENGINE hChainEngine;
73 PCERT_CHAIN_PARA pChainPara;
74 DWORD dwFlags;
75 void *pvReserved;
76 } WTD_GENERIC_CHAIN_POLICY_CREATE_INFO, *PWTD_GENERIC_CHAIN_POLICY_CREATE_INFO;
78 typedef struct _WTD_GENERIC_CHAIN_POLICY_DATA
80 union {
81 DWORD cbStruct;
82 DWORD cbSize;
83 } DUMMYUNIONNAME;
84 PWTD_GENERIC_CHAIN_POLICY_CREATE_INFO pSignerChainInfo;
85 PWTD_GENERIC_CHAIN_POLICY_CREATE_INFO pCounterSignerChainInfo;
86 PFN_WTD_GENERIC_CHAIN_POLICY_CALLBACK pfnPolicyCallback;
87 void *pvPolicyArg;
88 } WTD_GENERIC_CHAIN_POLICY_DATA, *PWTD_GENERIC_CHAIN_POLICY_DATA;
90 #if defined(_MSC_VER) || defined(__MINGW32__)
91 #define SP_POLICY_PROVIDER_DLL_NAME L"WINTRUST.DLL"
92 #else
93 static const WCHAR SP_POLICY_PROVIDER_DLL_NAME[] =
94 {'W','I','N','T','R','U','S','T','.','D','L','L', 0};
95 #endif
97 #define WINTRUST_ACTION_GENERIC_VERIFY_V2 \
98 { 0xaac56b, 0xcd44, 0x11d0, { 0x8c,0xc2,0x00,0xc0,0x4f,0xc2,0x95,0xee }}
100 #if defined(_MSC_VER) || defined(__MINGW32__)
101 #define SP_INIT_FUNCTION L"SoftpubInitialize"
102 #define SP_OBJTRUST_FUNCTION L"SoftpubLoadMessage"
103 #define SP_SIGTRUST_FUNCTION L"SoftpubLoadSignature"
104 #define SP_CHKCERT_FUNCTION L"SoftpubCheckCert"
105 #define SP_FINALPOLICY_FUNCTION L"SoftpubAuthenticode"
106 #define SP_CLEANUPPOLICY_FUNCTION L"SoftpubCleanup"
107 #else
108 static const WCHAR SP_INIT_FUNCTION[] =
109 {'S','o','f','t','p','u','b','I','n','i','t','i','a','l','i','z','e', 0};
110 static const WCHAR SP_OBJTRUST_FUNCTION[] =
111 {'S','o','f','t','p','u','b','L','o','a','d','M','e','s','s','a','g','e', 0};
112 static const WCHAR SP_SIGTRUST_FUNCTION[] =
113 {'S','o','f','t','p','u','b','L','o','a','d','S','i','g','n','a','t','u','r','e', 0};
114 static const WCHAR SP_CHKCERT_FUNCTION[] =
115 {'S','o','f','t','p','u','b','C','h','e','c','k','C','e','r','t', 0};
116 static const WCHAR SP_FINALPOLICY_FUNCTION[] =
117 {'S','o','f','t','p','u','b','A','u','t','h','e','n','t','i','c','o','d','e', 0};
118 static const WCHAR SP_CLEANUPPOLICY_FUNCTION[] =
119 {'S','o','f','t','p','u','b','C','l','e','a','n','u','p', 0};
120 #endif
122 #define WINTRUST_ACTION_TRUSTPROVIDER_TEST \
123 { 0x573e31f8, 0xddba, 0x11d0, { 0x8c,0xcb,0x00,0xc0,0x4f,0xc2,0x95,0xee }}
125 #if defined(_MSC_VER) || defined(__MINGW32__)
126 #define SP_TESTDUMPPOLICY_FUNCTION_TEST L"SoftpubDumpStructure"
127 #else
128 static const WCHAR SP_TESTDUMPPOLICY_FUNCTION_TEST[] =
129 {'S','o','f','t','p','u','b','D','u','m','p','S','t','r','u','c','t','u','r','e', 0};
130 #endif
132 #define HTTPSPROV_ACTION \
133 { 0x573e31f8, 0xaaba, 0x11d0, { 0x8c,0xcb,0x00,0xc0,0x4f,0xc2,0x95,0xee }}
135 #if defined(_MSC_VER) || defined(__MINGW32__)
136 #define HTTPS_FINALPOLICY_FUNCTION L"HTTPSFinalProv"
137 #define HTTPS_CERTTRUST_FUNCTION L"HTTPSCertificateTrust"
138 #else
139 static const WCHAR HTTPS_CERTTRUST_FUNCTION[] =
140 {'H','T','T','P','S','C','e','r','t','i','f','i','c','a','t','e','T','r','u','s','t', 0};
141 static const WCHAR HTTPS_FINALPOLICY_FUNCTION[] =
142 {'H','T','T','P','S','F','i','n','a','l','P','r','o','v', 0};
143 #endif
145 #define OFFICESIGN_ACTION_VERIFY \
146 { 0x5555c2cd, 0x17fb, 0x11d1, { 0x85,0xc4,0x00,0xc0,0x4f,0xc2,0x95,0xee }}
148 #if defined(_MSC_VER) || defined(__MINGW32__)
149 #define OFFICE_POLICY_PROVIDER_DLL_NAME SP_POLICY_PROVIDER_DLL_NAME
150 #define OFFICE_INITPROV_FUNCTION L"OfficeInitializePolicy"
151 #define OFFICE_CLEANUPPOLICY_FUNCTION L"OfficeCleanupPolicy"
152 #else
153 static const WCHAR OFFICE_POLICY_PROVIDER_DLL_NAME[] =
154 {'W','I','N','T','R','U','S','T','.','D','L','L', 0};
155 static const WCHAR OFFICE_INITPROV_FUNCTION[] =
156 {'O','f','f','i','c','e','I','n','i','t','i','a','l','i','z','e','P','o','l','i','c','y', 0};
157 static const WCHAR OFFICE_CLEANUPPOLICY_FUNCTION[] =
158 {'O','f','f','i','c','e','C','l','e','a','n','u','p','P','o','l','i','c','y', 0};
159 #endif
161 #define DRIVER_ACTION_VERIFY \
162 { 0xf750e6c3, 0x38ee, 0x11d1, { 0x85,0xe5,0x00,0xc0,0x4f,0xc2,0x95,0xee }}
164 #if defined(_MSC_VER) || defined(__MINGW32__)
165 #define DRIVER_INITPROV_FUNCTION L"DriverInitializePolicy"
166 #define DRIVER_FINALPOLPROV_FUNCTION L"DriverFinalPolicy"
167 #define DRIVER_CLEANUPPOLICY_FUNCTION L"DriverCleanupPolicy"
168 #else
169 static const WCHAR DRIVER_INITPROV_FUNCTION[] =
170 {'D','r','i','v','e','r','I','n','i','t','i','a','l','i','z','e','P','o','l','i','c','y', 0};
171 static const WCHAR DRIVER_FINALPOLPROV_FUNCTION[] =
172 {'D','r','i','v','e','r','F','i','n','a','l','P','o','l','i','c','y', 0};
173 static const WCHAR DRIVER_CLEANUPPOLICY_FUNCTION[] =
174 {'D','r','i','v','e','r','C','l','e','a','n','u','p','P','o','l','i','c','y', 0};
175 #endif
177 typedef struct DRIVER_VER_MAJORMINOR_
179 DWORD dwMajor;
180 DWORD dwMinor;
181 } DRIVER_VER_MAJORMINOR;
183 typedef struct DRIVER_VER_INFO_
185 DWORD cbStruct;
186 ULONG_PTR dwReserved1;
187 ULONG_PTR dwReserved2;
188 DWORD dwPlatform;
189 DWORD dwVersion;
190 WCHAR wszVersion[MAX_PATH];
191 WCHAR wszSignedBy[MAX_PATH];
192 PCCERT_CONTEXT pcSignerCertContext;
193 DRIVER_VER_MAJORMINOR sOSVersionLow;
194 DRIVER_VER_MAJORMINOR sOSVersionHigh;
195 DWORD dwBuildNumberLow;
196 DWORD dwBuildNumberHigh;
197 } DRIVER_VER_INFO, *PDRIVER_VER_INFO;
199 #endif /* __WINE_SOFTPUB_H */