1 #![allow(non_snake_case, non_camel_case_types, non_upper_case_globals, clashing_extern_declarations, clippy::all)]
2 #[link(name = "windows")]
4 #[doc = "*Required features: `\"Win32_Security_WinTrust\"`, `\"Win32_Foundation\"`*"]
5 #[cfg(feature = "Win32_Foundation")]
6 pub fn OpenPersonalTrustDBDialog(hwndparent
: super::super::Foundation
::HWND
) -> super::super::Foundation
::BOOL
;
7 #[doc = "*Required features: `\"Win32_Security_WinTrust\"`, `\"Win32_Foundation\"`*"]
8 #[cfg(feature = "Win32_Foundation")]
9 pub fn OpenPersonalTrustDBDialogEx(hwndparent
: super::super::Foundation
::HWND
, dwflags
: u32, pvreserved
: *mut *mut ::core
::ffi
::c_void
) -> super::super::Foundation
::BOOL
;
10 #[doc = "*Required features: `\"Win32_Security_WinTrust\"`, `\"Win32_Foundation\"`, `\"Win32_Security_Cryptography_Catalog\"`, `\"Win32_Security_Cryptography_Sip\"`*"]
11 #[cfg(all(feature = "Win32_Foundation", feature = "Win32_Security_Cryptography_Catalog", feature = "Win32_Security_Cryptography_Sip"))]
12 pub fn WTHelperCertCheckValidSignature(pprovdata
: *mut CRYPT_PROVIDER_DATA
) -> ::windows_sys
::core
::HRESULT
;
13 #[doc = "*Required features: `\"Win32_Security_WinTrust\"`, `\"Win32_Foundation\"`, `\"Win32_Security_Cryptography\"`*"]
14 #[cfg(all(feature = "Win32_Foundation", feature = "Win32_Security_Cryptography"))]
15 pub fn WTHelperCertIsSelfSigned(dwencoding
: u32, pcert
: *mut super::Cryptography
::CERT_INFO
) -> super::super::Foundation
::BOOL
;
16 #[doc = "*Required features: `\"Win32_Security_WinTrust\"`, `\"Win32_Foundation\"`, `\"Win32_Security_Cryptography\"`*"]
17 #[cfg(all(feature = "Win32_Foundation", feature = "Win32_Security_Cryptography"))]
18 pub fn WTHelperGetProvCertFromChain(psgnr
: *mut CRYPT_PROVIDER_SGNR
, idxcert
: u32) -> *mut CRYPT_PROVIDER_CERT
;
19 #[doc = "*Required features: `\"Win32_Security_WinTrust\"`, `\"Win32_Foundation\"`, `\"Win32_Security_Cryptography_Catalog\"`, `\"Win32_Security_Cryptography_Sip\"`*"]
20 #[cfg(all(feature = "Win32_Foundation", feature = "Win32_Security_Cryptography_Catalog", feature = "Win32_Security_Cryptography_Sip"))]
21 pub fn WTHelperGetProvPrivateDataFromChain(pprovdata
: *mut CRYPT_PROVIDER_DATA
, pgproviderid
: *mut ::windows_sys
::core
::GUID
) -> *mut CRYPT_PROVIDER_PRIVDATA
;
22 #[doc = "*Required features: `\"Win32_Security_WinTrust\"`, `\"Win32_Foundation\"`, `\"Win32_Security_Cryptography_Catalog\"`, `\"Win32_Security_Cryptography_Sip\"`*"]
23 #[cfg(all(feature = "Win32_Foundation", feature = "Win32_Security_Cryptography_Catalog", feature = "Win32_Security_Cryptography_Sip"))]
24 pub fn WTHelperGetProvSignerFromChain(pprovdata
: *mut CRYPT_PROVIDER_DATA
, idxsigner
: u32, fcountersigner
: super::super::Foundation
::BOOL
, idxcountersigner
: u32) -> *mut CRYPT_PROVIDER_SGNR
;
25 #[doc = "*Required features: `\"Win32_Security_WinTrust\"`, `\"Win32_Foundation\"`, `\"Win32_Security_Cryptography_Catalog\"`, `\"Win32_Security_Cryptography_Sip\"`*"]
26 #[cfg(all(feature = "Win32_Foundation", feature = "Win32_Security_Cryptography_Catalog", feature = "Win32_Security_Cryptography_Sip"))]
27 pub fn WTHelperProvDataFromStateData(hstatedata
: super::super::Foundation
::HANDLE
) -> *mut CRYPT_PROVIDER_DATA
;
28 #[doc = "*Required features: `\"Win32_Security_WinTrust\"`, `\"Win32_Foundation\"`*"]
29 #[cfg(feature = "Win32_Foundation")]
30 pub fn WinVerifyTrust(hwnd
: super::super::Foundation
::HWND
, pgactionid
: *mut ::windows_sys
::core
::GUID
, pwvtdata
: *mut ::core
::ffi
::c_void
) -> i32;
31 #[doc = "*Required features: `\"Win32_Security_WinTrust\"`, `\"Win32_Foundation\"`, `\"Win32_Security_Cryptography\"`*"]
32 #[cfg(all(feature = "Win32_Foundation", feature = "Win32_Security_Cryptography"))]
33 pub fn WinVerifyTrustEx(hwnd
: super::super::Foundation
::HWND
, pgactionid
: *mut ::windows_sys
::core
::GUID
, pwintrustdata
: *mut WINTRUST_DATA
) -> i32;
34 #[doc = "*Required features: `\"Win32_Security_WinTrust\"`, `\"Win32_Foundation\"`*"]
35 #[cfg(feature = "Win32_Foundation")]
36 pub fn WintrustAddActionID(pgactionid
: *const ::windows_sys
::core
::GUID
, fdwflags
: u32, psprovinfo
: *const CRYPT_REGISTER_ACTIONID
) -> super::super::Foundation
::BOOL
;
37 #[doc = "*Required features: `\"Win32_Security_WinTrust\"`, `\"Win32_Foundation\"`*"]
38 #[cfg(feature = "Win32_Foundation")]
39 pub fn WintrustAddDefaultForUsage(pszusageoid
: ::windows_sys
::core
::PCSTR
, psdefusage
: *const CRYPT_PROVIDER_REGDEFUSAGE
) -> super::super::Foundation
::BOOL
;
40 #[doc = "*Required features: `\"Win32_Security_WinTrust\"`, `\"Win32_Foundation\"`*"]
41 #[cfg(feature = "Win32_Foundation")]
42 pub fn WintrustGetDefaultForUsage(dwaction
: WINTRUST_GET_DEFAULT_FOR_USAGE_ACTION
, pszusageoid
: ::windows_sys
::core
::PCSTR
, psusage
: *mut CRYPT_PROVIDER_DEFUSAGE
) -> super::super::Foundation
::BOOL
;
43 #[doc = "*Required features: `\"Win32_Security_WinTrust\"`*"]
44 pub fn WintrustGetRegPolicyFlags(pdwpolicyflags
: *mut WINTRUST_POLICY_FLAGS
);
45 #[doc = "*Required features: `\"Win32_Security_WinTrust\"`, `\"Win32_Foundation\"`, `\"Win32_Security_Cryptography_Catalog\"`, `\"Win32_Security_Cryptography_Sip\"`*"]
46 #[cfg(all(feature = "Win32_Foundation", feature = "Win32_Security_Cryptography_Catalog", feature = "Win32_Security_Cryptography_Sip"))]
47 pub fn WintrustLoadFunctionPointers(pgactionid
: *mut ::windows_sys
::core
::GUID
, ppfns
: *mut CRYPT_PROVIDER_FUNCTIONS
) -> super::super::Foundation
::BOOL
;
48 #[doc = "*Required features: `\"Win32_Security_WinTrust\"`, `\"Win32_Foundation\"`*"]
49 #[cfg(feature = "Win32_Foundation")]
50 pub fn WintrustRemoveActionID(pgactionid
: *const ::windows_sys
::core
::GUID
) -> super::super::Foundation
::BOOL
;
51 #[doc = "*Required features: `\"Win32_Security_WinTrust\"`, `\"Win32_Foundation\"`*"]
52 #[cfg(feature = "Win32_Foundation")]
53 pub fn WintrustSetDefaultIncludePEPageHashes(fincludepepagehashes
: super::super::Foundation
::BOOL
);
54 #[doc = "*Required features: `\"Win32_Security_WinTrust\"`, `\"Win32_Foundation\"`*"]
55 #[cfg(feature = "Win32_Foundation")]
56 pub fn WintrustSetRegPolicyFlags(dwpolicyflags
: WINTRUST_POLICY_FLAGS
) -> super::super::Foundation
::BOOL
;
59 #[doc = "*Required features: `\"Win32_Security_WinTrust\"`*"]
60 pub struct CAT_MEMBERINFO
{
61 pub pwszSubjGuid
: ::windows_sys
::core
::PWSTR
,
62 pub dwCertVersion
: u32,
64 impl ::core
::marker
::Copy
for CAT_MEMBERINFO {}
65 impl ::core
::clone
::Clone
for CAT_MEMBERINFO
{
66 fn clone(&self) -> Self {
71 #[doc = "*Required features: `\"Win32_Security_WinTrust\"`*"]
72 pub struct CAT_MEMBERINFO2
{
73 pub SubjectGuid
: ::windows_sys
::core
::GUID
,
74 pub dwCertVersion
: u32,
76 impl ::core
::marker
::Copy
for CAT_MEMBERINFO2 {}
77 impl ::core
::clone
::Clone
for CAT_MEMBERINFO2
{
78 fn clone(&self) -> Self {
82 #[doc = "*Required features: `\"Win32_Security_WinTrust\"`*"]
83 pub const CAT_MEMBERINFO2_OBJID
: &'
static str = "1.3.6.1.4.1.311.12.2.3";
84 #[doc = "*Required features: `\"Win32_Security_WinTrust\"`*"]
85 pub const CAT_MEMBERINFO2_STRUCT
: ::windows_sys
::core
::PCSTR
= 2223i32 as _
;
86 #[doc = "*Required features: `\"Win32_Security_WinTrust\"`*"]
87 pub const CAT_MEMBERINFO_OBJID
: &'
static str = "1.3.6.1.4.1.311.12.2.2";
88 #[doc = "*Required features: `\"Win32_Security_WinTrust\"`*"]
89 pub const CAT_MEMBERINFO_STRUCT
: ::windows_sys
::core
::PCSTR
= 2222i32 as _
;
91 #[doc = "*Required features: `\"Win32_Security_WinTrust\"`, `\"Win32_Security_Cryptography\"`*"]
92 #[cfg(feature = "Win32_Security_Cryptography")]
93 pub struct CAT_NAMEVALUE
{
94 pub pwszTag
: ::windows_sys
::core
::PWSTR
,
96 pub Value
: super::Cryptography
::CRYPTOAPI_BLOB
,
98 #[cfg(feature = "Win32_Security_Cryptography")]
99 impl ::core
::marker
::Copy
for CAT_NAMEVALUE {}
100 #[cfg(feature = "Win32_Security_Cryptography")]
101 impl ::core
::clone
::Clone
for CAT_NAMEVALUE
{
102 fn clone(&self) -> Self {
106 #[doc = "*Required features: `\"Win32_Security_WinTrust\"`*"]
107 pub const CAT_NAMEVALUE_OBJID
: &'
static str = "1.3.6.1.4.1.311.12.2.1";
108 #[doc = "*Required features: `\"Win32_Security_WinTrust\"`*"]
109 pub const CAT_NAMEVALUE_STRUCT
: ::windows_sys
::core
::PCSTR
= 2221i32 as _
;
110 #[doc = "*Required features: `\"Win32_Security_WinTrust\"`*"]
111 pub const CCPI_RESULT_ALLOW
: u32 = 1u32;
112 #[doc = "*Required features: `\"Win32_Security_WinTrust\"`*"]
113 pub const CCPI_RESULT_AUDIT
: u32 = 3u32;
114 #[doc = "*Required features: `\"Win32_Security_WinTrust\"`*"]
115 pub const CCPI_RESULT_DENY
: u32 = 2u32;
116 #[doc = "*Required features: `\"Win32_Security_WinTrust\"`*"]
117 pub const CERT_CONFIDENCE_AUTHIDEXT
: u32 = 65536u32;
118 #[doc = "*Required features: `\"Win32_Security_WinTrust\"`*"]
119 pub const CERT_CONFIDENCE_HIGHEST
: u32 = 286330880u32;
120 #[doc = "*Required features: `\"Win32_Security_WinTrust\"`*"]
121 pub const CERT_CONFIDENCE_HYGIENE
: u32 = 4096u32;
122 #[doc = "*Required features: `\"Win32_Security_WinTrust\"`*"]
123 pub const CERT_CONFIDENCE_SIG
: u32 = 268435456u32;
124 #[doc = "*Required features: `\"Win32_Security_WinTrust\"`*"]
125 pub const CERT_CONFIDENCE_TIME
: u32 = 16777216u32;
126 #[doc = "*Required features: `\"Win32_Security_WinTrust\"`*"]
127 pub const CERT_CONFIDENCE_TIMENEST
: u32 = 1048576u32;
129 #[doc = "*Required features: `\"Win32_Security_WinTrust\"`, `\"Win32_Foundation\"`, `\"Win32_Security_Cryptography\"`*"]
130 #[cfg(all(feature = "Win32_Foundation", feature = "Win32_Security_Cryptography"))]
131 pub struct CONFIG_CI_PROV_INFO
{
134 pub pPolicies
: *mut super::Cryptography
::CRYPTOAPI_BLOB
,
135 pub result
: CONFIG_CI_PROV_INFO_RESULT
,
138 #[cfg(all(feature = "Win32_Foundation", feature = "Win32_Security_Cryptography"))]
139 impl ::core
::marker
::Copy
for CONFIG_CI_PROV_INFO {}
140 #[cfg(all(feature = "Win32_Foundation", feature = "Win32_Security_Cryptography"))]
141 impl ::core
::clone
::Clone
for CONFIG_CI_PROV_INFO
{
142 fn clone(&self) -> Self {
147 #[doc = "*Required features: `\"Win32_Security_WinTrust\"`, `\"Win32_Foundation\"`*"]
148 #[cfg(feature = "Win32_Foundation")]
149 pub struct CONFIG_CI_PROV_INFO_RESULT
{
150 pub hr
: ::windows_sys
::core
::HRESULT
,
152 pub dwPolicyIndex
: u32,
153 pub fIsExplicitDeny
: super::super::Foundation
::BOOLEAN
,
155 #[cfg(feature = "Win32_Foundation")]
156 impl ::core
::marker
::Copy
for CONFIG_CI_PROV_INFO_RESULT {}
157 #[cfg(feature = "Win32_Foundation")]
158 impl ::core
::clone
::Clone
for CONFIG_CI_PROV_INFO_RESULT
{
159 fn clone(&self) -> Self {
163 #[doc = "*Required features: `\"Win32_Security_WinTrust\"`*"]
164 pub const CPD_CHOICE_SIP
: u32 = 1u32;
165 #[doc = "*Required features: `\"Win32_Security_WinTrust\"`*"]
166 pub const CPD_RETURN_LOWER_QUALITY_CHAINS
: u32 = 1048576u32;
167 #[doc = "*Required features: `\"Win32_Security_WinTrust\"`*"]
168 pub const CPD_REVOCATION_CHECK_CHAIN
: u32 = 262144u32;
169 #[doc = "*Required features: `\"Win32_Security_WinTrust\"`*"]
170 pub const CPD_REVOCATION_CHECK_CHAIN_EXCLUDE_ROOT
: u32 = 524288u32;
171 #[doc = "*Required features: `\"Win32_Security_WinTrust\"`*"]
172 pub const CPD_REVOCATION_CHECK_END_CERT
: u32 = 131072u32;
173 #[doc = "*Required features: `\"Win32_Security_WinTrust\"`*"]
174 pub const CPD_REVOCATION_CHECK_NONE
: u32 = 65536u32;
175 #[doc = "*Required features: `\"Win32_Security_WinTrust\"`*"]
176 pub const CPD_UISTATE_MODE_ALLOW
: u32 = 2u32;
177 #[doc = "*Required features: `\"Win32_Security_WinTrust\"`*"]
178 pub const CPD_UISTATE_MODE_BLOCK
: u32 = 1u32;
179 #[doc = "*Required features: `\"Win32_Security_WinTrust\"`*"]
180 pub const CPD_UISTATE_MODE_MASK
: u32 = 3u32;
181 #[doc = "*Required features: `\"Win32_Security_WinTrust\"`*"]
182 pub const CPD_UISTATE_MODE_PROMPT
: u32 = 0u32;
183 #[doc = "*Required features: `\"Win32_Security_WinTrust\"`*"]
184 pub const CPD_USE_NT5_CHAIN_FLAG
: u32 = 2147483648u32;
186 #[doc = "*Required features: `\"Win32_Security_WinTrust\"`, `\"Win32_Foundation\"`, `\"Win32_Security_Cryptography\"`*"]
187 #[cfg(all(feature = "Win32_Foundation", feature = "Win32_Security_Cryptography"))]
188 pub struct CRYPT_PROVIDER_CERT
{
190 pub pCert
: *const super::Cryptography
::CERT_CONTEXT
,
191 pub fCommercial
: super::super::Foundation
::BOOL
,
192 pub fTrustedRoot
: super::super::Foundation
::BOOL
,
193 pub fSelfSigned
: super::super::Foundation
::BOOL
,
194 pub fTestCert
: super::super::Foundation
::BOOL
,
195 pub dwRevokedReason
: u32,
196 pub dwConfidence
: u32,
198 pub pTrustListContext
: *mut super::Cryptography
::CTL_CONTEXT
,
199 pub fTrustListSignerCert
: super::super::Foundation
::BOOL
,
200 pub pCtlContext
: *mut super::Cryptography
::CTL_CONTEXT
,
202 pub fIsCyclic
: super::super::Foundation
::BOOL
,
203 pub pChainElement
: *mut super::Cryptography
::CERT_CHAIN_ELEMENT
,
205 #[cfg(all(feature = "Win32_Foundation", feature = "Win32_Security_Cryptography"))]
206 impl ::core
::marker
::Copy
for CRYPT_PROVIDER_CERT {}
207 #[cfg(all(feature = "Win32_Foundation", feature = "Win32_Security_Cryptography"))]
208 impl ::core
::clone
::Clone
for CRYPT_PROVIDER_CERT
{
209 fn clone(&self) -> Self {
214 #[doc = "*Required features: `\"Win32_Security_WinTrust\"`, `\"Win32_Foundation\"`, `\"Win32_Security_Cryptography_Catalog\"`, `\"Win32_Security_Cryptography_Sip\"`*"]
215 #[cfg(all(feature = "Win32_Foundation", feature = "Win32_Security_Cryptography_Catalog", feature = "Win32_Security_Cryptography_Sip"))]
216 pub struct CRYPT_PROVIDER_DATA
{
218 pub pWintrustData
: *mut WINTRUST_DATA
,
219 pub fOpenedFile
: super::super::Foundation
::BOOL
,
220 pub hWndParent
: super::super::Foundation
::HWND
,
221 pub pgActionID
: *mut ::windows_sys
::core
::GUID
,
224 pub dwRegSecuritySettings
: u32,
225 pub dwRegPolicySettings
: u32,
226 pub psPfns
: *mut CRYPT_PROVIDER_FUNCTIONS
,
227 pub cdwTrustStepErrors
: u32,
228 pub padwTrustStepErrors
: *mut u32,
230 pub pahStores
: *mut super::Cryptography
::HCERTSTORE
,
232 pub hMsg
: *mut ::core
::ffi
::c_void
,
234 pub pasSigners
: *mut CRYPT_PROVIDER_SGNR
,
235 pub csProvPrivData
: u32,
236 pub pasProvPrivData
: *mut CRYPT_PROVIDER_PRIVDATA
,
237 pub dwSubjectChoice
: u32,
238 pub Anonymous
: CRYPT_PROVIDER_DATA_0
,
239 pub pszUsageOID
: ::windows_sys
::core
::PSTR
,
240 pub fRecallWithState
: super::super::Foundation
::BOOL
,
241 pub sftSystemTime
: super::super::Foundation
::FILETIME
,
242 pub pszCTLSignerUsageOID
: ::windows_sys
::core
::PSTR
,
243 pub dwProvFlags
: u32,
244 pub dwFinalError
: u32,
245 pub pRequestUsage
: *mut super::Cryptography
::CERT_USAGE_MATCH
,
246 pub dwTrustPubSettings
: u32,
247 pub dwUIStateFlags
: u32,
248 pub pSigState
: *mut CRYPT_PROVIDER_SIGSTATE
,
249 pub pSigSettings
: *mut WINTRUST_SIGNATURE_SETTINGS
,
251 #[cfg(all(feature = "Win32_Foundation", feature = "Win32_Security_Cryptography_Catalog", feature = "Win32_Security_Cryptography_Sip"))]
252 impl ::core
::marker
::Copy
for CRYPT_PROVIDER_DATA {}
253 #[cfg(all(feature = "Win32_Foundation", feature = "Win32_Security_Cryptography_Catalog", feature = "Win32_Security_Cryptography_Sip"))]
254 impl ::core
::clone
::Clone
for CRYPT_PROVIDER_DATA
{
255 fn clone(&self) -> Self {
260 #[doc = "*Required features: `\"Win32_Security_WinTrust\"`, `\"Win32_Foundation\"`, `\"Win32_Security_Cryptography_Catalog\"`, `\"Win32_Security_Cryptography_Sip\"`*"]
261 #[cfg(all(feature = "Win32_Foundation", feature = "Win32_Security_Cryptography_Catalog", feature = "Win32_Security_Cryptography_Sip"))]
262 pub union CRYPT_PROVIDER_DATA_0
{
263 pub pPDSip
: *mut PROVDATA_SIP
,
265 #[cfg(all(feature = "Win32_Foundation", feature = "Win32_Security_Cryptography_Catalog", feature = "Win32_Security_Cryptography_Sip"))]
266 impl ::core
::marker
::Copy
for CRYPT_PROVIDER_DATA_0 {}
267 #[cfg(all(feature = "Win32_Foundation", feature = "Win32_Security_Cryptography_Catalog", feature = "Win32_Security_Cryptography_Sip"))]
268 impl ::core
::clone
::Clone
for CRYPT_PROVIDER_DATA_0
{
269 fn clone(&self) -> Self {
274 #[doc = "*Required features: `\"Win32_Security_WinTrust\"`*"]
275 pub struct CRYPT_PROVIDER_DEFUSAGE
{
277 pub gActionID
: ::windows_sys
::core
::GUID
,
278 pub pDefPolicyCallbackData
: *mut ::core
::ffi
::c_void
,
279 pub pDefSIPClientData
: *mut ::core
::ffi
::c_void
,
281 impl ::core
::marker
::Copy
for CRYPT_PROVIDER_DEFUSAGE {}
282 impl ::core
::clone
::Clone
for CRYPT_PROVIDER_DEFUSAGE
{
283 fn clone(&self) -> Self {
288 #[doc = "*Required features: `\"Win32_Security_WinTrust\"`, `\"Win32_Foundation\"`, `\"Win32_Security_Cryptography_Catalog\"`, `\"Win32_Security_Cryptography_Sip\"`*"]
289 #[cfg(all(feature = "Win32_Foundation", feature = "Win32_Security_Cryptography_Catalog", feature = "Win32_Security_Cryptography_Sip"))]
290 pub struct CRYPT_PROVIDER_FUNCTIONS
{
292 pub pfnAlloc
: PFN_CPD_MEM_ALLOC
,
293 pub pfnFree
: PFN_CPD_MEM_FREE
,
294 pub pfnAddStore2Chain
: PFN_CPD_ADD_STORE
,
295 pub pfnAddSgnr2Chain
: PFN_CPD_ADD_SGNR
,
296 pub pfnAddCert2Chain
: PFN_CPD_ADD_CERT
,
297 pub pfnAddPrivData2Chain
: PFN_CPD_ADD_PRIVDATA
,
298 pub pfnInitialize
: PFN_PROVIDER_INIT_CALL
,
299 pub pfnObjectTrust
: PFN_PROVIDER_OBJTRUST_CALL
,
300 pub pfnSignatureTrust
: PFN_PROVIDER_SIGTRUST_CALL
,
301 pub pfnCertificateTrust
: PFN_PROVIDER_CERTTRUST_CALL
,
302 pub pfnFinalPolicy
: PFN_PROVIDER_FINALPOLICY_CALL
,
303 pub pfnCertCheckPolicy
: PFN_PROVIDER_CERTCHKPOLICY_CALL
,
304 pub pfnTestFinalPolicy
: PFN_PROVIDER_TESTFINALPOLICY_CALL
,
305 pub psUIpfns
: *mut CRYPT_PROVUI_FUNCS
,
306 pub pfnCleanupPolicy
: PFN_PROVIDER_CLEANUP_CALL
,
308 #[cfg(all(feature = "Win32_Foundation", feature = "Win32_Security_Cryptography_Catalog", feature = "Win32_Security_Cryptography_Sip"))]
309 impl ::core
::marker
::Copy
for CRYPT_PROVIDER_FUNCTIONS {}
310 #[cfg(all(feature = "Win32_Foundation", feature = "Win32_Security_Cryptography_Catalog", feature = "Win32_Security_Cryptography_Sip"))]
311 impl ::core
::clone
::Clone
for CRYPT_PROVIDER_FUNCTIONS
{
312 fn clone(&self) -> Self {
317 #[doc = "*Required features: `\"Win32_Security_WinTrust\"`*"]
318 pub struct CRYPT_PROVIDER_PRIVDATA
{
320 pub gProviderID
: ::windows_sys
::core
::GUID
,
322 pub pvProvData
: *mut ::core
::ffi
::c_void
,
324 impl ::core
::marker
::Copy
for CRYPT_PROVIDER_PRIVDATA {}
325 impl ::core
::clone
::Clone
for CRYPT_PROVIDER_PRIVDATA
{
326 fn clone(&self) -> Self {
331 #[doc = "*Required features: `\"Win32_Security_WinTrust\"`*"]
332 pub struct CRYPT_PROVIDER_REGDEFUSAGE
{
334 pub pgActionID
: *mut ::windows_sys
::core
::GUID
,
335 pub pwszDllName
: ::windows_sys
::core
::PWSTR
,
336 pub pwszLoadCallbackDataFunctionName
: ::windows_sys
::core
::PSTR
,
337 pub pwszFreeCallbackDataFunctionName
: ::windows_sys
::core
::PSTR
,
339 impl ::core
::marker
::Copy
for CRYPT_PROVIDER_REGDEFUSAGE {}
340 impl ::core
::clone
::Clone
for CRYPT_PROVIDER_REGDEFUSAGE
{
341 fn clone(&self) -> Self {
346 #[doc = "*Required features: `\"Win32_Security_WinTrust\"`, `\"Win32_Foundation\"`, `\"Win32_Security_Cryptography\"`*"]
347 #[cfg(all(feature = "Win32_Foundation", feature = "Win32_Security_Cryptography"))]
348 pub struct CRYPT_PROVIDER_SGNR
{
350 pub sftVerifyAsOf
: super::super::Foundation
::FILETIME
,
351 pub csCertChain
: u32,
352 pub pasCertChain
: *mut CRYPT_PROVIDER_CERT
,
353 pub dwSignerType
: u32,
354 pub psSigner
: *mut super::Cryptography
::CMSG_SIGNER_INFO
,
356 pub csCounterSigners
: u32,
357 pub pasCounterSigners
: *mut CRYPT_PROVIDER_SGNR
,
358 pub pChainContext
: *mut super::Cryptography
::CERT_CHAIN_CONTEXT
,
360 #[cfg(all(feature = "Win32_Foundation", feature = "Win32_Security_Cryptography"))]
361 impl ::core
::marker
::Copy
for CRYPT_PROVIDER_SGNR {}
362 #[cfg(all(feature = "Win32_Foundation", feature = "Win32_Security_Cryptography"))]
363 impl ::core
::clone
::Clone
for CRYPT_PROVIDER_SGNR
{
364 fn clone(&self) -> Self {
369 #[doc = "*Required features: `\"Win32_Security_WinTrust\"`, `\"Win32_Foundation\"`, `\"Win32_Security_Cryptography\"`*"]
370 #[cfg(all(feature = "Win32_Foundation", feature = "Win32_Security_Cryptography"))]
371 pub struct CRYPT_PROVIDER_SIGSTATE
{
373 pub rhSecondarySigs
: *mut *mut ::core
::ffi
::c_void
,
374 pub hPrimarySig
: *mut ::core
::ffi
::c_void
,
375 pub fFirstAttemptMade
: super::super::Foundation
::BOOL
,
376 pub fNoMoreSigs
: super::super::Foundation
::BOOL
,
377 pub cSecondarySigs
: u32,
378 pub dwCurrentIndex
: u32,
379 pub fSupportMultiSig
: super::super::Foundation
::BOOL
,
380 pub dwCryptoPolicySupport
: u32,
381 pub iAttemptCount
: u32,
382 pub fCheckedSealing
: super::super::Foundation
::BOOL
,
383 pub pSealingSignature
: *mut SEALING_SIGNATURE_ATTRIBUTE
,
385 #[cfg(all(feature = "Win32_Foundation", feature = "Win32_Security_Cryptography"))]
386 impl ::core
::marker
::Copy
for CRYPT_PROVIDER_SIGSTATE {}
387 #[cfg(all(feature = "Win32_Foundation", feature = "Win32_Security_Cryptography"))]
388 impl ::core
::clone
::Clone
for CRYPT_PROVIDER_SIGSTATE
{
389 fn clone(&self) -> Self {
394 #[doc = "*Required features: `\"Win32_Security_WinTrust\"`*"]
395 pub struct CRYPT_PROVUI_DATA
{
397 pub dwFinalError
: u32,
398 pub pYesButtonText
: ::windows_sys
::core
::PWSTR
,
399 pub pNoButtonText
: ::windows_sys
::core
::PWSTR
,
400 pub pMoreInfoButtonText
: ::windows_sys
::core
::PWSTR
,
401 pub pAdvancedLinkText
: ::windows_sys
::core
::PWSTR
,
402 pub pCopyActionText
: ::windows_sys
::core
::PWSTR
,
403 pub pCopyActionTextNoTS
: ::windows_sys
::core
::PWSTR
,
404 pub pCopyActionTextNotSigned
: ::windows_sys
::core
::PWSTR
,
406 impl ::core
::marker
::Copy
for CRYPT_PROVUI_DATA {}
407 impl ::core
::clone
::Clone
for CRYPT_PROVUI_DATA
{
408 fn clone(&self) -> Self {
413 #[doc = "*Required features: `\"Win32_Security_WinTrust\"`, `\"Win32_Foundation\"`, `\"Win32_Security_Cryptography_Catalog\"`, `\"Win32_Security_Cryptography_Sip\"`*"]
414 #[cfg(all(feature = "Win32_Foundation", feature = "Win32_Security_Cryptography_Catalog", feature = "Win32_Security_Cryptography_Sip"))]
415 pub struct CRYPT_PROVUI_FUNCS
{
417 pub psUIData
: *mut CRYPT_PROVUI_DATA
,
418 pub pfnOnMoreInfoClick
: PFN_PROVUI_CALL
,
419 pub pfnOnMoreInfoClickDefault
: PFN_PROVUI_CALL
,
420 pub pfnOnAdvancedClick
: PFN_PROVUI_CALL
,
421 pub pfnOnAdvancedClickDefault
: PFN_PROVUI_CALL
,
423 #[cfg(all(feature = "Win32_Foundation", feature = "Win32_Security_Cryptography_Catalog", feature = "Win32_Security_Cryptography_Sip"))]
424 impl ::core
::marker
::Copy
for CRYPT_PROVUI_FUNCS {}
425 #[cfg(all(feature = "Win32_Foundation", feature = "Win32_Security_Cryptography_Catalog", feature = "Win32_Security_Cryptography_Sip"))]
426 impl ::core
::clone
::Clone
for CRYPT_PROVUI_FUNCS
{
427 fn clone(&self) -> Self {
432 #[doc = "*Required features: `\"Win32_Security_WinTrust\"`*"]
433 pub struct CRYPT_REGISTER_ACTIONID
{
435 pub sInitProvider
: CRYPT_TRUST_REG_ENTRY
,
436 pub sObjectProvider
: CRYPT_TRUST_REG_ENTRY
,
437 pub sSignatureProvider
: CRYPT_TRUST_REG_ENTRY
,
438 pub sCertificateProvider
: CRYPT_TRUST_REG_ENTRY
,
439 pub sCertificatePolicyProvider
: CRYPT_TRUST_REG_ENTRY
,
440 pub sFinalPolicyProvider
: CRYPT_TRUST_REG_ENTRY
,
441 pub sTestPolicyProvider
: CRYPT_TRUST_REG_ENTRY
,
442 pub sCleanupProvider
: CRYPT_TRUST_REG_ENTRY
,
444 impl ::core
::marker
::Copy
for CRYPT_REGISTER_ACTIONID {}
445 impl ::core
::clone
::Clone
for CRYPT_REGISTER_ACTIONID
{
446 fn clone(&self) -> Self {
451 #[doc = "*Required features: `\"Win32_Security_WinTrust\"`*"]
452 pub struct CRYPT_TRUST_REG_ENTRY
{
454 pub pwszDLLName
: ::windows_sys
::core
::PWSTR
,
455 pub pwszFunctionName
: ::windows_sys
::core
::PWSTR
,
457 impl ::core
::marker
::Copy
for CRYPT_TRUST_REG_ENTRY {}
458 impl ::core
::clone
::Clone
for CRYPT_TRUST_REG_ENTRY
{
459 fn clone(&self) -> Self {
463 #[doc = "*Required features: `\"Win32_Security_WinTrust\"`*"]
464 pub const DRIVER_CLEANUPPOLICY_FUNCTION
: &'
static str = "DriverCleanupPolicy";
465 #[doc = "*Required features: `\"Win32_Security_WinTrust\"`*"]
466 pub const DRIVER_FINALPOLPROV_FUNCTION
: &'
static str = "DriverFinalPolicy";
467 #[doc = "*Required features: `\"Win32_Security_WinTrust\"`*"]
468 pub const DRIVER_INITPROV_FUNCTION
: &'
static str = "DriverInitializePolicy";
470 #[doc = "*Required features: `\"Win32_Security_WinTrust\"`, `\"Win32_Foundation\"`, `\"Win32_Security_Cryptography\"`*"]
471 #[cfg(all(feature = "Win32_Foundation", feature = "Win32_Security_Cryptography"))]
472 pub struct DRIVER_VER_INFO
{
474 pub dwReserved1
: usize,
475 pub dwReserved2
: usize,
478 pub wszVersion
: [u16; 260],
479 pub wszSignedBy
: [u16; 260],
480 pub pcSignerCertContext
: *const super::Cryptography
::CERT_CONTEXT
,
481 pub sOSVersionLow
: DRIVER_VER_MAJORMINOR
,
482 pub sOSVersionHigh
: DRIVER_VER_MAJORMINOR
,
483 pub dwBuildNumberLow
: u32,
484 pub dwBuildNumberHigh
: u32,
486 #[cfg(all(feature = "Win32_Foundation", feature = "Win32_Security_Cryptography"))]
487 impl ::core
::marker
::Copy
for DRIVER_VER_INFO {}
488 #[cfg(all(feature = "Win32_Foundation", feature = "Win32_Security_Cryptography"))]
489 impl ::core
::clone
::Clone
for DRIVER_VER_INFO
{
490 fn clone(&self) -> Self {
495 #[doc = "*Required features: `\"Win32_Security_WinTrust\"`*"]
496 pub struct DRIVER_VER_MAJORMINOR
{
500 impl ::core
::marker
::Copy
for DRIVER_VER_MAJORMINOR {}
501 impl ::core
::clone
::Clone
for DRIVER_VER_MAJORMINOR
{
502 fn clone(&self) -> Self {
506 #[doc = "*Required features: `\"Win32_Security_WinTrust\"`*"]
507 pub const GENERIC_CHAIN_CERTTRUST_FUNCTION
: &'
static str = "GenericChainCertificateTrust";
508 #[doc = "*Required features: `\"Win32_Security_WinTrust\"`*"]
509 pub const GENERIC_CHAIN_FINALPOLICY_FUNCTION
: &'
static str = "GenericChainFinalProv";
510 #[doc = "*Required features: `\"Win32_Security_WinTrust\"`*"]
511 pub const HTTPS_CERTTRUST_FUNCTION
: &'
static str = "HTTPSCertificateTrust";
512 #[doc = "*Required features: `\"Win32_Security_WinTrust\"`*"]
513 pub const HTTPS_CHKCERT_FUNCTION
: &'
static str = "HTTPSCheckCertProv";
514 #[doc = "*Required features: `\"Win32_Security_WinTrust\"`*"]
515 pub const HTTPS_FINALPOLICY_FUNCTION
: &'
static str = "HTTPSFinalProv";
517 #[doc = "*Required features: `\"Win32_Security_WinTrust\"`, `\"Win32_Foundation\"`*"]
518 #[cfg(feature = "Win32_Foundation")]
519 pub struct INTENT_TO_SEAL_ATTRIBUTE
{
521 pub seal
: super::super::Foundation
::BOOLEAN
,
523 #[cfg(feature = "Win32_Foundation")]
524 impl ::core
::marker
::Copy
for INTENT_TO_SEAL_ATTRIBUTE {}
525 #[cfg(feature = "Win32_Foundation")]
526 impl ::core
::clone
::Clone
for INTENT_TO_SEAL_ATTRIBUTE
{
527 fn clone(&self) -> Self {
531 #[doc = "*Required features: `\"Win32_Security_WinTrust\"`*"]
532 pub const INTENT_TO_SEAL_ATTRIBUTE_STRUCT
: ::windows_sys
::core
::PCSTR
= 2010i32 as _
;
533 #[doc = "*Required features: `\"Win32_Security_WinTrust\"`*"]
534 pub const OFFICE_CLEANUPPOLICY_FUNCTION
: &'
static str = "OfficeCleanupPolicy";
535 #[doc = "*Required features: `\"Win32_Security_WinTrust\"`*"]
536 pub const OFFICE_INITPROV_FUNCTION
: &'
static str = "OfficeInitializePolicy";
537 #[doc = "*Required features: `\"Win32_Security_WinTrust\"`*"]
538 pub const OFFICE_POLICY_PROVIDER_DLL_NAME
: &'
static str = "WINTRUST.DLL";
539 #[doc = "*Required features: `\"Win32_Security_WinTrust\"`, `\"Win32_Foundation\"`*"]
540 #[cfg(feature = "Win32_Foundation")]
541 pub type PFN_ALLOCANDFILLDEFUSAGE
= ::core
::option
::Option
<unsafe extern "system" fn(pszusageoid
: ::windows_sys
::core
::PCSTR
, psdefusage
: *const CRYPT_PROVIDER_DEFUSAGE
) -> super::super::Foundation
::BOOL
>;
542 #[doc = "*Required features: `\"Win32_Security_WinTrust\"`, `\"Win32_Foundation\"`, `\"Win32_Security_Cryptography_Catalog\"`, `\"Win32_Security_Cryptography_Sip\"`*"]
543 #[cfg(all(feature = "Win32_Foundation", feature = "Win32_Security_Cryptography_Catalog", feature = "Win32_Security_Cryptography_Sip"))]
544 pub type PFN_CPD_ADD_CERT
= ::core
::option
::Option
<unsafe extern "system" fn(pprovdata
: *const CRYPT_PROVIDER_DATA
, idxsigner
: u32, fcountersigner
: super::super::Foundation
::BOOL
, idxcountersigner
: u32, pcert2add
: *const super::Cryptography
::CERT_CONTEXT
) -> super::super::Foundation
::BOOL
>;
545 #[doc = "*Required features: `\"Win32_Security_WinTrust\"`, `\"Win32_Foundation\"`, `\"Win32_Security_Cryptography_Catalog\"`, `\"Win32_Security_Cryptography_Sip\"`*"]
546 #[cfg(all(feature = "Win32_Foundation", feature = "Win32_Security_Cryptography_Catalog", feature = "Win32_Security_Cryptography_Sip"))]
547 pub type PFN_CPD_ADD_PRIVDATA
= ::core
::option
::Option
<unsafe extern "system" fn(pprovdata
: *const CRYPT_PROVIDER_DATA
, pprivdata2add
: *const CRYPT_PROVIDER_PRIVDATA
) -> super::super::Foundation
::BOOL
>;
548 #[doc = "*Required features: `\"Win32_Security_WinTrust\"`, `\"Win32_Foundation\"`, `\"Win32_Security_Cryptography_Catalog\"`, `\"Win32_Security_Cryptography_Sip\"`*"]
549 #[cfg(all(feature = "Win32_Foundation", feature = "Win32_Security_Cryptography_Catalog", feature = "Win32_Security_Cryptography_Sip"))]
550 pub type PFN_CPD_ADD_SGNR
= ::core
::option
::Option
<unsafe extern "system" fn(pprovdata
: *const CRYPT_PROVIDER_DATA
, fcountersigner
: super::super::Foundation
::BOOL
, idxsigner
: u32, psgnr2add
: *const CRYPT_PROVIDER_SGNR
) -> super::super::Foundation
::BOOL
>;
551 #[doc = "*Required features: `\"Win32_Security_WinTrust\"`, `\"Win32_Foundation\"`, `\"Win32_Security_Cryptography_Catalog\"`, `\"Win32_Security_Cryptography_Sip\"`*"]
552 #[cfg(all(feature = "Win32_Foundation", feature = "Win32_Security_Cryptography_Catalog", feature = "Win32_Security_Cryptography_Sip"))]
553 pub type PFN_CPD_ADD_STORE
= ::core
::option
::Option
<unsafe extern "system" fn(pprovdata
: *const CRYPT_PROVIDER_DATA
, hstore2add
: super::Cryptography
::HCERTSTORE
) -> super::super::Foundation
::BOOL
>;
554 #[doc = "*Required features: `\"Win32_Security_WinTrust\"`*"]
555 pub type PFN_CPD_MEM_ALLOC
= ::core
::option
::Option
<unsafe extern "system" fn(cbsize
: u32) -> *mut ::core
::ffi
::c_void
>;
556 #[doc = "*Required features: `\"Win32_Security_WinTrust\"`*"]
557 pub type PFN_CPD_MEM_FREE
= ::core
::option
::Option
<unsafe extern "system" fn(pvmem2free
: *const ::core
::ffi
::c_void
)>;
558 #[doc = "*Required features: `\"Win32_Security_WinTrust\"`, `\"Win32_Foundation\"`*"]
559 #[cfg(feature = "Win32_Foundation")]
560 pub type PFN_FREEDEFUSAGE
= ::core
::option
::Option
<unsafe extern "system" fn(pszusageoid
: ::windows_sys
::core
::PCSTR
, psdefusage
: *const CRYPT_PROVIDER_DEFUSAGE
) -> super::super::Foundation
::BOOL
>;
561 #[doc = "*Required features: `\"Win32_Security_WinTrust\"`, `\"Win32_Foundation\"`, `\"Win32_Security_Cryptography_Catalog\"`, `\"Win32_Security_Cryptography_Sip\"`*"]
562 #[cfg(all(feature = "Win32_Foundation", feature = "Win32_Security_Cryptography_Catalog", feature = "Win32_Security_Cryptography_Sip"))]
563 pub type PFN_PROVIDER_CERTCHKPOLICY_CALL
= ::core
::option
::Option
<unsafe extern "system" fn(pprovdata
: *const CRYPT_PROVIDER_DATA
, idxsigner
: u32, fcountersignerchain
: super::super::Foundation
::BOOL
, idxcountersigner
: u32) -> super::super::Foundation
::BOOL
>;
564 #[doc = "*Required features: `\"Win32_Security_WinTrust\"`, `\"Win32_Foundation\"`, `\"Win32_Security_Cryptography_Catalog\"`, `\"Win32_Security_Cryptography_Sip\"`*"]
565 #[cfg(all(feature = "Win32_Foundation", feature = "Win32_Security_Cryptography_Catalog", feature = "Win32_Security_Cryptography_Sip"))]
566 pub type PFN_PROVIDER_CERTTRUST_CALL
= ::core
::option
::Option
<unsafe extern "system" fn(pprovdata
: *mut CRYPT_PROVIDER_DATA
) -> ::windows_sys
::core
::HRESULT
>;
567 #[doc = "*Required features: `\"Win32_Security_WinTrust\"`, `\"Win32_Foundation\"`, `\"Win32_Security_Cryptography_Catalog\"`, `\"Win32_Security_Cryptography_Sip\"`*"]
568 #[cfg(all(feature = "Win32_Foundation", feature = "Win32_Security_Cryptography_Catalog", feature = "Win32_Security_Cryptography_Sip"))]
569 pub type PFN_PROVIDER_CLEANUP_CALL
= ::core
::option
::Option
<unsafe extern "system" fn(pprovdata
: *mut CRYPT_PROVIDER_DATA
) -> ::windows_sys
::core
::HRESULT
>;
570 #[doc = "*Required features: `\"Win32_Security_WinTrust\"`, `\"Win32_Foundation\"`, `\"Win32_Security_Cryptography_Catalog\"`, `\"Win32_Security_Cryptography_Sip\"`*"]
571 #[cfg(all(feature = "Win32_Foundation", feature = "Win32_Security_Cryptography_Catalog", feature = "Win32_Security_Cryptography_Sip"))]
572 pub type PFN_PROVIDER_FINALPOLICY_CALL
= ::core
::option
::Option
<unsafe extern "system" fn(pprovdata
: *mut CRYPT_PROVIDER_DATA
) -> ::windows_sys
::core
::HRESULT
>;
573 #[doc = "*Required features: `\"Win32_Security_WinTrust\"`, `\"Win32_Foundation\"`, `\"Win32_Security_Cryptography_Catalog\"`, `\"Win32_Security_Cryptography_Sip\"`*"]
574 #[cfg(all(feature = "Win32_Foundation", feature = "Win32_Security_Cryptography_Catalog", feature = "Win32_Security_Cryptography_Sip"))]
575 pub type PFN_PROVIDER_INIT_CALL
= ::core
::option
::Option
<unsafe extern "system" fn(pprovdata
: *mut CRYPT_PROVIDER_DATA
) -> ::windows_sys
::core
::HRESULT
>;
576 #[doc = "*Required features: `\"Win32_Security_WinTrust\"`, `\"Win32_Foundation\"`, `\"Win32_Security_Cryptography_Catalog\"`, `\"Win32_Security_Cryptography_Sip\"`*"]
577 #[cfg(all(feature = "Win32_Foundation", feature = "Win32_Security_Cryptography_Catalog", feature = "Win32_Security_Cryptography_Sip"))]
578 pub type PFN_PROVIDER_OBJTRUST_CALL
= ::core
::option
::Option
<unsafe extern "system" fn(pprovdata
: *mut CRYPT_PROVIDER_DATA
) -> ::windows_sys
::core
::HRESULT
>;
579 #[doc = "*Required features: `\"Win32_Security_WinTrust\"`, `\"Win32_Foundation\"`, `\"Win32_Security_Cryptography_Catalog\"`, `\"Win32_Security_Cryptography_Sip\"`*"]
580 #[cfg(all(feature = "Win32_Foundation", feature = "Win32_Security_Cryptography_Catalog", feature = "Win32_Security_Cryptography_Sip"))]
581 pub type PFN_PROVIDER_SIGTRUST_CALL
= ::core
::option
::Option
<unsafe extern "system" fn(pprovdata
: *mut CRYPT_PROVIDER_DATA
) -> ::windows_sys
::core
::HRESULT
>;
582 #[doc = "*Required features: `\"Win32_Security_WinTrust\"`, `\"Win32_Foundation\"`, `\"Win32_Security_Cryptography_Catalog\"`, `\"Win32_Security_Cryptography_Sip\"`*"]
583 #[cfg(all(feature = "Win32_Foundation", feature = "Win32_Security_Cryptography_Catalog", feature = "Win32_Security_Cryptography_Sip"))]
584 pub type PFN_PROVIDER_TESTFINALPOLICY_CALL
= ::core
::option
::Option
<unsafe extern "system" fn(pprovdata
: *mut CRYPT_PROVIDER_DATA
) -> ::windows_sys
::core
::HRESULT
>;
585 #[doc = "*Required features: `\"Win32_Security_WinTrust\"`, `\"Win32_Foundation\"`, `\"Win32_Security_Cryptography_Catalog\"`, `\"Win32_Security_Cryptography_Sip\"`*"]
586 #[cfg(all(feature = "Win32_Foundation", feature = "Win32_Security_Cryptography_Catalog", feature = "Win32_Security_Cryptography_Sip"))]
587 pub type PFN_PROVUI_CALL
= ::core
::option
::Option
<unsafe extern "system" fn(hwndsecuritydialog
: super::super::Foundation
::HWND
, pprovdata
: *const CRYPT_PROVIDER_DATA
) -> super::super::Foundation
::BOOL
>;
588 #[doc = "*Required features: `\"Win32_Security_WinTrust\"`, `\"Win32_Foundation\"`, `\"Win32_Security_Cryptography_Catalog\"`, `\"Win32_Security_Cryptography_Sip\"`*"]
589 #[cfg(all(feature = "Win32_Foundation", feature = "Win32_Security_Cryptography_Catalog", feature = "Win32_Security_Cryptography_Sip"))]
590 pub type PFN_WTD_GENERIC_CHAIN_POLICY_CALLBACK
= ::core
::option
::Option
<unsafe extern "system" fn(pprovdata
: *mut CRYPT_PROVIDER_DATA
, dwsteperror
: u32, dwregpolicysettings
: u32, csigner
: u32, rgpsigner
: *mut *mut WTD_GENERIC_CHAIN_POLICY_SIGNER_INFO
, pvpolicyarg
: *mut ::core
::ffi
::c_void
) -> ::windows_sys
::core
::HRESULT
>;
592 #[doc = "*Required features: `\"Win32_Security_WinTrust\"`, `\"Win32_Foundation\"`, `\"Win32_Security_Cryptography_Catalog\"`, `\"Win32_Security_Cryptography_Sip\"`*"]
593 #[cfg(all(feature = "Win32_Foundation", feature = "Win32_Security_Cryptography_Catalog", feature = "Win32_Security_Cryptography_Sip"))]
594 pub struct PROVDATA_SIP
{
596 pub gSubject
: ::windows_sys
::core
::GUID
,
597 pub pSip
: *mut super::Cryptography
::Sip
::SIP_DISPATCH_INFO
,
598 pub pCATSip
: *mut super::Cryptography
::Sip
::SIP_DISPATCH_INFO
,
599 pub psSipSubjectInfo
: *mut super::Cryptography
::Sip
::SIP_SUBJECTINFO
,
600 pub psSipCATSubjectInfo
: *mut super::Cryptography
::Sip
::SIP_SUBJECTINFO
,
601 pub psIndirectData
: *mut super::Cryptography
::Sip
::SIP_INDIRECT_DATA
,
603 #[cfg(all(feature = "Win32_Foundation", feature = "Win32_Security_Cryptography_Catalog", feature = "Win32_Security_Cryptography_Sip"))]
604 impl ::core
::marker
::Copy
for PROVDATA_SIP {}
605 #[cfg(all(feature = "Win32_Foundation", feature = "Win32_Security_Cryptography_Catalog", feature = "Win32_Security_Cryptography_Sip"))]
606 impl ::core
::clone
::Clone
for PROVDATA_SIP
{
607 fn clone(&self) -> Self {
612 #[doc = "*Required features: `\"Win32_Security_WinTrust\"`, `\"Win32_Security_Cryptography\"`*"]
613 #[cfg(feature = "Win32_Security_Cryptography")]
614 pub struct SEALING_SIGNATURE_ATTRIBUTE
{
616 pub signerIndex
: u32,
617 pub signatureAlgorithm
: super::Cryptography
::CRYPT_ALGORITHM_IDENTIFIER
,
618 pub encryptedDigest
: super::Cryptography
::CRYPTOAPI_BLOB
,
620 #[cfg(feature = "Win32_Security_Cryptography")]
621 impl ::core
::marker
::Copy
for SEALING_SIGNATURE_ATTRIBUTE {}
622 #[cfg(feature = "Win32_Security_Cryptography")]
623 impl ::core
::clone
::Clone
for SEALING_SIGNATURE_ATTRIBUTE
{
624 fn clone(&self) -> Self {
628 #[doc = "*Required features: `\"Win32_Security_WinTrust\"`*"]
629 pub const SEALING_SIGNATURE_ATTRIBUTE_STRUCT
: ::windows_sys
::core
::PCSTR
= 2011i32 as _
;
631 #[doc = "*Required features: `\"Win32_Security_WinTrust\"`, `\"Win32_Security_Cryptography\"`*"]
632 #[cfg(feature = "Win32_Security_Cryptography")]
633 pub struct SEALING_TIMESTAMP_ATTRIBUTE
{
635 pub signerIndex
: u32,
636 pub sealTimeStampToken
: super::Cryptography
::CRYPTOAPI_BLOB
,
638 #[cfg(feature = "Win32_Security_Cryptography")]
639 impl ::core
::marker
::Copy
for SEALING_TIMESTAMP_ATTRIBUTE {}
640 #[cfg(feature = "Win32_Security_Cryptography")]
641 impl ::core
::clone
::Clone
for SEALING_TIMESTAMP_ATTRIBUTE
{
642 fn clone(&self) -> Self {
646 #[doc = "*Required features: `\"Win32_Security_WinTrust\"`*"]
647 pub const SEALING_TIMESTAMP_ATTRIBUTE_STRUCT
: ::windows_sys
::core
::PCSTR
= 2012i32 as _
;
648 #[doc = "*Required features: `\"Win32_Security_WinTrust\"`*"]
649 pub const SGNR_TYPE_TIMESTAMP
: u32 = 16u32;
650 #[doc = "*Required features: `\"Win32_Security_WinTrust\"`*"]
651 pub const SPC_CAB_DATA_OBJID
: &'
static str = "1.3.6.1.4.1.311.2.1.25";
652 #[doc = "*Required features: `\"Win32_Security_WinTrust\"`*"]
653 pub const SPC_CAB_DATA_STRUCT
: ::windows_sys
::core
::PCSTR
= 2008i32 as _
;
654 #[doc = "*Required features: `\"Win32_Security_WinTrust\"`*"]
655 pub const SPC_CERT_EXTENSIONS_OBJID
: &'
static str = "1.3.6.1.4.1.311.2.1.14";
656 #[doc = "*Required features: `\"Win32_Security_WinTrust\"`*"]
657 pub const SPC_COMMERCIAL_SP_KEY_PURPOSE_OBJID
: &'
static str = "1.3.6.1.4.1.311.2.1.22";
658 #[doc = "*Required features: `\"Win32_Security_WinTrust\"`*"]
659 pub const SPC_COMMON_NAME_OBJID
: &'
static str = "2.5.4.3";
660 #[doc = "*Required features: `\"Win32_Security_WinTrust\"`*"]
661 pub const SPC_ENCRYPTED_DIGEST_RETRY_COUNT_OBJID
: &'
static str = "1.3.6.1.4.1.311.2.6.2";
662 #[doc = "*Required features: `\"Win32_Security_WinTrust\"`*"]
663 pub const SPC_FILE_LINK_CHOICE
: u32 = 3u32;
665 #[doc = "*Required features: `\"Win32_Security_WinTrust\"`, `\"Win32_Foundation\"`*"]
666 #[cfg(feature = "Win32_Foundation")]
667 pub struct SPC_FINANCIAL_CRITERIA
{
668 pub fFinancialInfoAvailable
: super::super::Foundation
::BOOL
,
669 pub fMeetsCriteria
: super::super::Foundation
::BOOL
,
671 #[cfg(feature = "Win32_Foundation")]
672 impl ::core
::marker
::Copy
for SPC_FINANCIAL_CRITERIA {}
673 #[cfg(feature = "Win32_Foundation")]
674 impl ::core
::clone
::Clone
for SPC_FINANCIAL_CRITERIA
{
675 fn clone(&self) -> Self {
679 #[doc = "*Required features: `\"Win32_Security_WinTrust\"`*"]
680 pub const SPC_FINANCIAL_CRITERIA_OBJID
: &'
static str = "1.3.6.1.4.1.311.2.1.27";
681 #[doc = "*Required features: `\"Win32_Security_WinTrust\"`*"]
682 pub const SPC_FINANCIAL_CRITERIA_STRUCT
: ::windows_sys
::core
::PCSTR
= 2002i32 as _
;
683 #[doc = "*Required features: `\"Win32_Security_WinTrust\"`*"]
684 pub const SPC_GLUE_RDN_OBJID
: &'
static str = "1.3.6.1.4.1.311.2.1.25";
686 #[doc = "*Required features: `\"Win32_Security_WinTrust\"`, `\"Win32_Security_Cryptography\"`*"]
687 #[cfg(feature = "Win32_Security_Cryptography")]
688 pub struct SPC_IMAGE
{
689 pub pImageLink
: *mut SPC_LINK
,
690 pub Bitmap
: super::Cryptography
::CRYPTOAPI_BLOB
,
691 pub Metafile
: super::Cryptography
::CRYPTOAPI_BLOB
,
692 pub EnhancedMetafile
: super::Cryptography
::CRYPTOAPI_BLOB
,
693 pub GifFile
: super::Cryptography
::CRYPTOAPI_BLOB
,
695 #[cfg(feature = "Win32_Security_Cryptography")]
696 impl ::core
::marker
::Copy
for SPC_IMAGE {}
697 #[cfg(feature = "Win32_Security_Cryptography")]
698 impl ::core
::clone
::Clone
for SPC_IMAGE
{
699 fn clone(&self) -> Self {
704 #[doc = "*Required features: `\"Win32_Security_WinTrust\"`, `\"Win32_Security_Cryptography\"`*"]
705 #[cfg(feature = "Win32_Security_Cryptography")]
706 pub struct SPC_INDIRECT_DATA_CONTENT
{
707 pub Data
: super::Cryptography
::CRYPT_ATTRIBUTE_TYPE_VALUE
,
708 pub DigestAlgorithm
: super::Cryptography
::CRYPT_ALGORITHM_IDENTIFIER
,
709 pub Digest
: super::Cryptography
::CRYPTOAPI_BLOB
,
711 #[cfg(feature = "Win32_Security_Cryptography")]
712 impl ::core
::marker
::Copy
for SPC_INDIRECT_DATA_CONTENT {}
713 #[cfg(feature = "Win32_Security_Cryptography")]
714 impl ::core
::clone
::Clone
for SPC_INDIRECT_DATA_CONTENT
{
715 fn clone(&self) -> Self {
719 #[doc = "*Required features: `\"Win32_Security_WinTrust\"`*"]
720 pub const SPC_INDIRECT_DATA_CONTENT_STRUCT
: ::windows_sys
::core
::PCSTR
= 2003i32 as _
;
721 #[doc = "*Required features: `\"Win32_Security_WinTrust\"`*"]
722 pub const SPC_INDIRECT_DATA_OBJID
: &'
static str = "1.3.6.1.4.1.311.2.1.4";
723 #[doc = "*Required features: `\"Win32_Security_WinTrust\"`*"]
724 pub const SPC_INDIVIDUAL_SP_KEY_PURPOSE_OBJID
: &'
static str = "1.3.6.1.4.1.311.2.1.21";
725 #[doc = "*Required features: `\"Win32_Security_WinTrust\"`*"]
726 pub const SPC_JAVA_CLASS_DATA_OBJID
: &'
static str = "1.3.6.1.4.1.311.2.1.20";
727 #[doc = "*Required features: `\"Win32_Security_WinTrust\"`*"]
728 pub const SPC_JAVA_CLASS_DATA_STRUCT
: ::windows_sys
::core
::PCSTR
= 2009i32 as _
;
730 #[doc = "*Required features: `\"Win32_Security_WinTrust\"`, `\"Win32_Security_Cryptography\"`*"]
731 #[cfg(feature = "Win32_Security_Cryptography")]
732 pub struct SPC_LINK
{
733 pub dwLinkChoice
: u32,
734 pub Anonymous
: SPC_LINK_0
,
736 #[cfg(feature = "Win32_Security_Cryptography")]
737 impl ::core
::marker
::Copy
for SPC_LINK {}
738 #[cfg(feature = "Win32_Security_Cryptography")]
739 impl ::core
::clone
::Clone
for SPC_LINK
{
740 fn clone(&self) -> Self {
745 #[doc = "*Required features: `\"Win32_Security_WinTrust\"`, `\"Win32_Security_Cryptography\"`*"]
746 #[cfg(feature = "Win32_Security_Cryptography")]
747 pub union SPC_LINK_0
{
748 pub pwszUrl
: ::windows_sys
::core
::PWSTR
,
749 pub Moniker
: SPC_SERIALIZED_OBJECT
,
750 pub pwszFile
: ::windows_sys
::core
::PWSTR
,
752 #[cfg(feature = "Win32_Security_Cryptography")]
753 impl ::core
::marker
::Copy
for SPC_LINK_0 {}
754 #[cfg(feature = "Win32_Security_Cryptography")]
755 impl ::core
::clone
::Clone
for SPC_LINK_0
{
756 fn clone(&self) -> Self {
760 #[doc = "*Required features: `\"Win32_Security_WinTrust\"`*"]
761 pub const SPC_LINK_OBJID
: &'
static str = "1.3.6.1.4.1.311.2.1.28";
762 #[doc = "*Required features: `\"Win32_Security_WinTrust\"`*"]
763 pub const SPC_LINK_STRUCT
: ::windows_sys
::core
::PCSTR
= 2005i32 as _
;
764 #[doc = "*Required features: `\"Win32_Security_WinTrust\"`*"]
765 pub const SPC_MINIMAL_CRITERIA_OBJID
: &'
static str = "1.3.6.1.4.1.311.2.1.26";
766 #[doc = "*Required features: `\"Win32_Security_WinTrust\"`*"]
767 pub const SPC_MINIMAL_CRITERIA_STRUCT
: ::windows_sys
::core
::PCSTR
= 2001i32 as _
;
768 #[doc = "*Required features: `\"Win32_Security_WinTrust\"`*"]
769 pub const SPC_MONIKER_LINK_CHOICE
: u32 = 2u32;
770 #[doc = "*Required features: `\"Win32_Security_WinTrust\"`*"]
771 pub const SPC_NATURAL_AUTH_PLUGIN_OBJID
: &'
static str = "1.3.6.1.4.1.311.96.1.1";
773 #[doc = "*Required features: `\"Win32_Security_WinTrust\"`, `\"Win32_Security_Cryptography\"`*"]
774 #[cfg(feature = "Win32_Security_Cryptography")]
775 pub struct SPC_PE_IMAGE_DATA
{
776 pub Flags
: super::Cryptography
::CRYPT_BIT_BLOB
,
777 pub pFile
: *mut SPC_LINK
,
779 #[cfg(feature = "Win32_Security_Cryptography")]
780 impl ::core
::marker
::Copy
for SPC_PE_IMAGE_DATA {}
781 #[cfg(feature = "Win32_Security_Cryptography")]
782 impl ::core
::clone
::Clone
for SPC_PE_IMAGE_DATA
{
783 fn clone(&self) -> Self {
787 #[doc = "*Required features: `\"Win32_Security_WinTrust\"`*"]
788 pub const SPC_PE_IMAGE_DATA_OBJID
: &'
static str = "1.3.6.1.4.1.311.2.1.15";
789 #[doc = "*Required features: `\"Win32_Security_WinTrust\"`*"]
790 pub const SPC_PE_IMAGE_DATA_STRUCT
: ::windows_sys
::core
::PCSTR
= 2004i32 as _
;
791 #[doc = "*Required features: `\"Win32_Security_WinTrust\"`*"]
792 pub const SPC_PE_IMAGE_PAGE_HASHES_V1_OBJID
: &'
static str = "1.3.6.1.4.1.311.2.3.1";
793 #[doc = "*Required features: `\"Win32_Security_WinTrust\"`*"]
794 pub const SPC_PE_IMAGE_PAGE_HASHES_V2_OBJID
: &'
static str = "1.3.6.1.4.1.311.2.3.2";
795 #[doc = "*Required features: `\"Win32_Security_WinTrust\"`*"]
796 pub const SPC_RAW_FILE_DATA_OBJID
: &'
static str = "1.3.6.1.4.1.311.2.1.18";
797 #[doc = "*Required features: `\"Win32_Security_WinTrust\"`*"]
798 pub const SPC_RELAXED_PE_MARKER_CHECK_OBJID
: &'
static str = "1.3.6.1.4.1.311.2.6.1";
800 #[doc = "*Required features: `\"Win32_Security_WinTrust\"`, `\"Win32_Security_Cryptography\"`*"]
801 #[cfg(feature = "Win32_Security_Cryptography")]
802 pub struct SPC_SERIALIZED_OBJECT
{
803 pub ClassId
: [u8; 16],
804 pub SerializedData
: super::Cryptography
::CRYPTOAPI_BLOB
,
806 #[cfg(feature = "Win32_Security_Cryptography")]
807 impl ::core
::marker
::Copy
for SPC_SERIALIZED_OBJECT {}
808 #[cfg(feature = "Win32_Security_Cryptography")]
809 impl ::core
::clone
::Clone
for SPC_SERIALIZED_OBJECT
{
810 fn clone(&self) -> Self {
815 #[doc = "*Required features: `\"Win32_Security_WinTrust\"`*"]
816 pub struct SPC_SIGINFO
{
817 pub dwSipVersion
: u32,
818 pub gSIPGuid
: ::windows_sys
::core
::GUID
,
819 pub dwReserved1
: u32,
820 pub dwReserved2
: u32,
821 pub dwReserved3
: u32,
822 pub dwReserved4
: u32,
823 pub dwReserved5
: u32,
825 impl ::core
::marker
::Copy
for SPC_SIGINFO {}
826 impl ::core
::clone
::Clone
for SPC_SIGINFO
{
827 fn clone(&self) -> Self {
831 #[doc = "*Required features: `\"Win32_Security_WinTrust\"`*"]
832 pub const SPC_SIGINFO_OBJID
: &'
static str = "1.3.6.1.4.1.311.2.1.30";
833 #[doc = "*Required features: `\"Win32_Security_WinTrust\"`*"]
834 pub const SPC_SIGINFO_STRUCT
: ::windows_sys
::core
::PCSTR
= 2130i32 as _
;
836 #[doc = "*Required features: `\"Win32_Security_WinTrust\"`, `\"Win32_Security_Cryptography\"`*"]
837 #[cfg(feature = "Win32_Security_Cryptography")]
838 pub struct SPC_SP_AGENCY_INFO
{
839 pub pPolicyInformation
: *mut SPC_LINK
,
840 pub pwszPolicyDisplayText
: ::windows_sys
::core
::PWSTR
,
841 pub pLogoImage
: *mut SPC_IMAGE
,
842 pub pLogoLink
: *mut SPC_LINK
,
844 #[cfg(feature = "Win32_Security_Cryptography")]
845 impl ::core
::marker
::Copy
for SPC_SP_AGENCY_INFO {}
846 #[cfg(feature = "Win32_Security_Cryptography")]
847 impl ::core
::clone
::Clone
for SPC_SP_AGENCY_INFO
{
848 fn clone(&self) -> Self {
852 #[doc = "*Required features: `\"Win32_Security_WinTrust\"`*"]
853 pub const SPC_SP_AGENCY_INFO_OBJID
: &'
static str = "1.3.6.1.4.1.311.2.1.10";
854 #[doc = "*Required features: `\"Win32_Security_WinTrust\"`*"]
855 pub const SPC_SP_AGENCY_INFO_STRUCT
: ::windows_sys
::core
::PCSTR
= 2000i32 as _
;
857 #[doc = "*Required features: `\"Win32_Security_WinTrust\"`, `\"Win32_Security_Cryptography\"`*"]
858 #[cfg(feature = "Win32_Security_Cryptography")]
859 pub struct SPC_SP_OPUS_INFO
{
860 pub pwszProgramName
: ::windows_sys
::core
::PCWSTR
,
861 pub pMoreInfo
: *mut SPC_LINK
,
862 pub pPublisherInfo
: *mut SPC_LINK
,
864 #[cfg(feature = "Win32_Security_Cryptography")]
865 impl ::core
::marker
::Copy
for SPC_SP_OPUS_INFO {}
866 #[cfg(feature = "Win32_Security_Cryptography")]
867 impl ::core
::clone
::Clone
for SPC_SP_OPUS_INFO
{
868 fn clone(&self) -> Self {
872 #[doc = "*Required features: `\"Win32_Security_WinTrust\"`*"]
873 pub const SPC_SP_OPUS_INFO_OBJID
: &'
static str = "1.3.6.1.4.1.311.2.1.12";
874 #[doc = "*Required features: `\"Win32_Security_WinTrust\"`*"]
875 pub const SPC_SP_OPUS_INFO_STRUCT
: ::windows_sys
::core
::PCSTR
= 2007i32 as _
;
877 #[doc = "*Required features: `\"Win32_Security_WinTrust\"`*"]
878 pub struct SPC_STATEMENT_TYPE
{
879 pub cKeyPurposeId
: u32,
880 pub rgpszKeyPurposeId
: *mut ::windows_sys
::core
::PSTR
,
882 impl ::core
::marker
::Copy
for SPC_STATEMENT_TYPE {}
883 impl ::core
::clone
::Clone
for SPC_STATEMENT_TYPE
{
884 fn clone(&self) -> Self {
888 #[doc = "*Required features: `\"Win32_Security_WinTrust\"`*"]
889 pub const SPC_STATEMENT_TYPE_OBJID
: &'
static str = "1.3.6.1.4.1.311.2.1.11";
890 #[doc = "*Required features: `\"Win32_Security_WinTrust\"`*"]
891 pub const SPC_STATEMENT_TYPE_STRUCT
: ::windows_sys
::core
::PCSTR
= 2006i32 as _
;
892 #[doc = "*Required features: `\"Win32_Security_WinTrust\"`*"]
893 pub const SPC_STRUCTURED_STORAGE_DATA_OBJID
: &'
static str = "1.3.6.1.4.1.311.2.1.19";
894 #[doc = "*Required features: `\"Win32_Security_WinTrust\"`*"]
895 pub const SPC_TIME_STAMP_REQUEST_OBJID
: &'
static str = "1.3.6.1.4.1.311.3.2.1";
896 #[doc = "*Required features: `\"Win32_Security_WinTrust\"`*"]
897 pub const SPC_URL_LINK_CHOICE
: u32 = 1u32;
898 #[doc = "*Required features: `\"Win32_Security_WinTrust\"`*"]
899 pub const SPC_UUID_LENGTH
: u32 = 16u32;
900 #[doc = "*Required features: `\"Win32_Security_WinTrust\"`*"]
901 pub const SPC_WINDOWS_HELLO_COMPATIBILITY_OBJID
: &'
static str = "1.3.6.1.4.1.311.10.41.1";
902 #[doc = "*Required features: `\"Win32_Security_WinTrust\"`*"]
903 pub const SP_CHKCERT_FUNCTION
: &'
static str = "SoftpubCheckCert";
904 #[doc = "*Required features: `\"Win32_Security_WinTrust\"`*"]
905 pub const SP_CLEANUPPOLICY_FUNCTION
: &'
static str = "SoftpubCleanup";
906 #[doc = "*Required features: `\"Win32_Security_WinTrust\"`*"]
907 pub const SP_FINALPOLICY_FUNCTION
: &'
static str = "SoftpubAuthenticode";
908 #[doc = "*Required features: `\"Win32_Security_WinTrust\"`*"]
909 pub const SP_GENERIC_CERT_INIT_FUNCTION
: &'
static str = "SoftpubDefCertInit";
910 #[doc = "*Required features: `\"Win32_Security_WinTrust\"`*"]
911 pub const SP_INIT_FUNCTION
: &'
static str = "SoftpubInitialize";
912 #[doc = "*Required features: `\"Win32_Security_WinTrust\"`*"]
913 pub const SP_OBJTRUST_FUNCTION
: &'
static str = "SoftpubLoadMessage";
914 #[doc = "*Required features: `\"Win32_Security_WinTrust\"`*"]
915 pub const SP_POLICY_PROVIDER_DLL_NAME
: &'
static str = "WINTRUST.DLL";
916 #[doc = "*Required features: `\"Win32_Security_WinTrust\"`*"]
917 pub const SP_SIGTRUST_FUNCTION
: &'
static str = "SoftpubLoadSignature";
918 #[doc = "*Required features: `\"Win32_Security_WinTrust\"`*"]
919 pub const SP_TESTDUMPPOLICY_FUNCTION_TEST
: &'
static str = "SoftpubDumpStructure";
920 #[doc = "*Required features: `\"Win32_Security_WinTrust\"`*"]
921 pub const TRUSTERROR_MAX_STEPS
: u32 = 38u32;
922 #[doc = "*Required features: `\"Win32_Security_WinTrust\"`*"]
923 pub const TRUSTERROR_STEP_CATALOGFILE
: u32 = 6u32;
924 #[doc = "*Required features: `\"Win32_Security_WinTrust\"`*"]
925 pub const TRUSTERROR_STEP_CERTSTORE
: u32 = 7u32;
926 #[doc = "*Required features: `\"Win32_Security_WinTrust\"`*"]
927 pub const TRUSTERROR_STEP_FILEIO
: u32 = 2u32;
928 #[doc = "*Required features: `\"Win32_Security_WinTrust\"`*"]
929 pub const TRUSTERROR_STEP_FINAL_CERTCHKPROV
: u32 = 35u32;
930 #[doc = "*Required features: `\"Win32_Security_WinTrust\"`*"]
931 pub const TRUSTERROR_STEP_FINAL_CERTPROV
: u32 = 34u32;
932 #[doc = "*Required features: `\"Win32_Security_WinTrust\"`*"]
933 pub const TRUSTERROR_STEP_FINAL_INITPROV
: u32 = 31u32;
934 #[doc = "*Required features: `\"Win32_Security_WinTrust\"`*"]
935 pub const TRUSTERROR_STEP_FINAL_OBJPROV
: u32 = 32u32;
936 #[doc = "*Required features: `\"Win32_Security_WinTrust\"`*"]
937 pub const TRUSTERROR_STEP_FINAL_POLICYPROV
: u32 = 36u32;
938 #[doc = "*Required features: `\"Win32_Security_WinTrust\"`*"]
939 pub const TRUSTERROR_STEP_FINAL_SIGPROV
: u32 = 33u32;
940 #[doc = "*Required features: `\"Win32_Security_WinTrust\"`*"]
941 pub const TRUSTERROR_STEP_FINAL_UIPROV
: u32 = 37u32;
942 #[doc = "*Required features: `\"Win32_Security_WinTrust\"`*"]
943 pub const TRUSTERROR_STEP_FINAL_WVTINIT
: u32 = 30u32;
944 #[doc = "*Required features: `\"Win32_Security_WinTrust\"`*"]
945 pub const TRUSTERROR_STEP_MESSAGE
: u32 = 8u32;
946 #[doc = "*Required features: `\"Win32_Security_WinTrust\"`*"]
947 pub const TRUSTERROR_STEP_MSG_CERTCHAIN
: u32 = 15u32;
948 #[doc = "*Required features: `\"Win32_Security_WinTrust\"`*"]
949 pub const TRUSTERROR_STEP_MSG_COUNTERSIGCERT
: u32 = 17u32;
950 #[doc = "*Required features: `\"Win32_Security_WinTrust\"`*"]
951 pub const TRUSTERROR_STEP_MSG_COUNTERSIGINFO
: u32 = 16u32;
952 #[doc = "*Required features: `\"Win32_Security_WinTrust\"`*"]
953 pub const TRUSTERROR_STEP_MSG_INNERCNT
: u32 = 11u32;
954 #[doc = "*Required features: `\"Win32_Security_WinTrust\"`*"]
955 pub const TRUSTERROR_STEP_MSG_INNERCNTTYPE
: u32 = 10u32;
956 #[doc = "*Required features: `\"Win32_Security_WinTrust\"`*"]
957 pub const TRUSTERROR_STEP_MSG_SIGNERCERT
: u32 = 14u32;
958 #[doc = "*Required features: `\"Win32_Security_WinTrust\"`*"]
959 pub const TRUSTERROR_STEP_MSG_SIGNERCOUNT
: u32 = 9u32;
960 #[doc = "*Required features: `\"Win32_Security_WinTrust\"`*"]
961 pub const TRUSTERROR_STEP_MSG_SIGNERINFO
: u32 = 13u32;
962 #[doc = "*Required features: `\"Win32_Security_WinTrust\"`*"]
963 pub const TRUSTERROR_STEP_MSG_STORE
: u32 = 12u32;
964 #[doc = "*Required features: `\"Win32_Security_WinTrust\"`*"]
965 pub const TRUSTERROR_STEP_SIP
: u32 = 3u32;
966 #[doc = "*Required features: `\"Win32_Security_WinTrust\"`*"]
967 pub const TRUSTERROR_STEP_SIPSUBJINFO
: u32 = 5u32;
968 #[doc = "*Required features: `\"Win32_Security_WinTrust\"`*"]
969 pub const TRUSTERROR_STEP_VERIFY_MSGHASH
: u32 = 18u32;
970 #[doc = "*Required features: `\"Win32_Security_WinTrust\"`*"]
971 pub const TRUSTERROR_STEP_VERIFY_MSGINDIRECTDATA
: u32 = 19u32;
972 #[doc = "*Required features: `\"Win32_Security_WinTrust\"`*"]
973 pub const TRUSTERROR_STEP_WVTPARAMS
: u32 = 0u32;
975 #[doc = "*Required features: `\"Win32_Security_WinTrust\"`*"]
976 pub struct WINTRUST_BLOB_INFO
{
978 pub gSubject
: ::windows_sys
::core
::GUID
,
979 pub pcwszDisplayName
: ::windows_sys
::core
::PCWSTR
,
980 pub cbMemObject
: u32,
981 pub pbMemObject
: *mut u8,
982 pub cbMemSignedMsg
: u32,
983 pub pbMemSignedMsg
: *mut u8,
985 impl ::core
::marker
::Copy
for WINTRUST_BLOB_INFO {}
986 impl ::core
::clone
::Clone
for WINTRUST_BLOB_INFO
{
987 fn clone(&self) -> Self {
992 #[doc = "*Required features: `\"Win32_Security_WinTrust\"`, `\"Win32_Foundation\"`, `\"Win32_Security_Cryptography\"`*"]
993 #[cfg(all(feature = "Win32_Foundation", feature = "Win32_Security_Cryptography"))]
994 pub struct WINTRUST_CATALOG_INFO
{
996 pub dwCatalogVersion
: u32,
997 pub pcwszCatalogFilePath
: ::windows_sys
::core
::PCWSTR
,
998 pub pcwszMemberTag
: ::windows_sys
::core
::PCWSTR
,
999 pub pcwszMemberFilePath
: ::windows_sys
::core
::PCWSTR
,
1000 pub hMemberFile
: super::super::Foundation
::HANDLE
,
1001 pub pbCalculatedFileHash
: *mut u8,
1002 pub cbCalculatedFileHash
: u32,
1003 pub pcCatalogContext
: *mut super::Cryptography
::CTL_CONTEXT
,
1004 pub hCatAdmin
: isize,
1006 #[cfg(all(feature = "Win32_Foundation", feature = "Win32_Security_Cryptography"))]
1007 impl ::core
::marker
::Copy
for WINTRUST_CATALOG_INFO {}
1008 #[cfg(all(feature = "Win32_Foundation", feature = "Win32_Security_Cryptography"))]
1009 impl ::core
::clone
::Clone
for WINTRUST_CATALOG_INFO
{
1010 fn clone(&self) -> Self {
1015 #[doc = "*Required features: `\"Win32_Security_WinTrust\"`, `\"Win32_Foundation\"`, `\"Win32_Security_Cryptography\"`*"]
1016 #[cfg(all(feature = "Win32_Foundation", feature = "Win32_Security_Cryptography"))]
1017 pub struct WINTRUST_CERT_INFO
{
1019 pub pcwszDisplayName
: ::windows_sys
::core
::PCWSTR
,
1020 pub psCertContext
: *mut super::Cryptography
::CERT_CONTEXT
,
1022 pub pahStores
: *mut super::Cryptography
::HCERTSTORE
,
1024 pub psftVerifyAsOf
: *mut super::super::Foundation
::FILETIME
,
1026 #[cfg(all(feature = "Win32_Foundation", feature = "Win32_Security_Cryptography"))]
1027 impl ::core
::marker
::Copy
for WINTRUST_CERT_INFO {}
1028 #[cfg(all(feature = "Win32_Foundation", feature = "Win32_Security_Cryptography"))]
1029 impl ::core
::clone
::Clone
for WINTRUST_CERT_INFO
{
1030 fn clone(&self) -> Self {
1034 #[doc = "*Required features: `\"Win32_Security_WinTrust\"`*"]
1035 pub const WINTRUST_CONFIG_REGPATH
: &'
static str = "Software\\Microsoft\\Cryptography\\Wintrust\\Config";
1037 #[doc = "*Required features: `\"Win32_Security_WinTrust\"`, `\"Win32_Foundation\"`, `\"Win32_Security_Cryptography\"`*"]
1038 #[cfg(all(feature = "Win32_Foundation", feature = "Win32_Security_Cryptography"))]
1039 pub struct WINTRUST_DATA
{
1041 pub pPolicyCallbackData
: *mut ::core
::ffi
::c_void
,
1042 pub pSIPClientData
: *mut ::core
::ffi
::c_void
,
1043 pub dwUIChoice
: WINTRUST_DATA_UICHOICE
,
1044 pub fdwRevocationChecks
: WINTRUST_DATA_REVOCATION_CHECKS
,
1045 pub dwUnionChoice
: WINTRUST_DATA_UNION_CHOICE
,
1046 pub Anonymous
: WINTRUST_DATA_0
,
1047 pub dwStateAction
: WINTRUST_DATA_STATE_ACTION
,
1048 pub hWVTStateData
: super::super::Foundation
::HANDLE
,
1049 pub pwszURLReference
: ::windows_sys
::core
::PWSTR
,
1050 pub dwProvFlags
: WINTRUST_DATA_PROVIDER_FLAGS
,
1051 pub dwUIContext
: WINTRUST_DATA_UICONTEXT
,
1052 pub pSignatureSettings
: *mut WINTRUST_SIGNATURE_SETTINGS
,
1054 #[cfg(all(feature = "Win32_Foundation", feature = "Win32_Security_Cryptography"))]
1055 impl ::core
::marker
::Copy
for WINTRUST_DATA {}
1056 #[cfg(all(feature = "Win32_Foundation", feature = "Win32_Security_Cryptography"))]
1057 impl ::core
::clone
::Clone
for WINTRUST_DATA
{
1058 fn clone(&self) -> Self {
1063 #[doc = "*Required features: `\"Win32_Security_WinTrust\"`, `\"Win32_Foundation\"`, `\"Win32_Security_Cryptography\"`*"]
1064 #[cfg(all(feature = "Win32_Foundation", feature = "Win32_Security_Cryptography"))]
1065 pub union WINTRUST_DATA_0
{
1066 pub pFile
: *mut WINTRUST_FILE_INFO
,
1067 pub pCatalog
: *mut WINTRUST_CATALOG_INFO
,
1068 pub pBlob
: *mut WINTRUST_BLOB_INFO
,
1069 pub pSgnr
: *mut WINTRUST_SGNR_INFO
,
1070 pub pCert
: *mut WINTRUST_CERT_INFO
,
1072 #[cfg(all(feature = "Win32_Foundation", feature = "Win32_Security_Cryptography"))]
1073 impl ::core
::marker
::Copy
for WINTRUST_DATA_0 {}
1074 #[cfg(all(feature = "Win32_Foundation", feature = "Win32_Security_Cryptography"))]
1075 impl ::core
::clone
::Clone
for WINTRUST_DATA_0
{
1076 fn clone(&self) -> Self {
1080 #[doc = "*Required features: `\"Win32_Security_WinTrust\"`*"]
1081 pub type WINTRUST_DATA_PROVIDER_FLAGS
= u32;
1082 #[doc = "*Required features: `\"Win32_Security_WinTrust\"`*"]
1083 pub const WTD_USE_IE4_TRUST_FLAG
: WINTRUST_DATA_PROVIDER_FLAGS
= 1u32;
1084 #[doc = "*Required features: `\"Win32_Security_WinTrust\"`*"]
1085 pub const WTD_NO_IE4_CHAIN_FLAG
: WINTRUST_DATA_PROVIDER_FLAGS
= 2u32;
1086 #[doc = "*Required features: `\"Win32_Security_WinTrust\"`*"]
1087 pub const WTD_NO_POLICY_USAGE_FLAG
: WINTRUST_DATA_PROVIDER_FLAGS
= 4u32;
1088 #[doc = "*Required features: `\"Win32_Security_WinTrust\"`*"]
1089 pub const WTD_REVOCATION_CHECK_NONE
: WINTRUST_DATA_PROVIDER_FLAGS
= 16u32;
1090 #[doc = "*Required features: `\"Win32_Security_WinTrust\"`*"]
1091 pub const WTD_REVOCATION_CHECK_END_CERT
: WINTRUST_DATA_PROVIDER_FLAGS
= 32u32;
1092 #[doc = "*Required features: `\"Win32_Security_WinTrust\"`*"]
1093 pub const WTD_REVOCATION_CHECK_CHAIN
: WINTRUST_DATA_PROVIDER_FLAGS
= 64u32;
1094 #[doc = "*Required features: `\"Win32_Security_WinTrust\"`*"]
1095 pub const WTD_REVOCATION_CHECK_CHAIN_EXCLUDE_ROOT
: WINTRUST_DATA_PROVIDER_FLAGS
= 128u32;
1096 #[doc = "*Required features: `\"Win32_Security_WinTrust\"`*"]
1097 pub const WTD_SAFER_FLAG
: WINTRUST_DATA_PROVIDER_FLAGS
= 256u32;
1098 #[doc = "*Required features: `\"Win32_Security_WinTrust\"`*"]
1099 pub const WTD_HASH_ONLY_FLAG
: WINTRUST_DATA_PROVIDER_FLAGS
= 512u32;
1100 #[doc = "*Required features: `\"Win32_Security_WinTrust\"`*"]
1101 pub const WTD_USE_DEFAULT_OSVER_CHECK
: WINTRUST_DATA_PROVIDER_FLAGS
= 1024u32;
1102 #[doc = "*Required features: `\"Win32_Security_WinTrust\"`*"]
1103 pub const WTD_LIFETIME_SIGNING_FLAG
: WINTRUST_DATA_PROVIDER_FLAGS
= 2048u32;
1104 #[doc = "*Required features: `\"Win32_Security_WinTrust\"`*"]
1105 pub const WTD_CACHE_ONLY_URL_RETRIEVAL
: WINTRUST_DATA_PROVIDER_FLAGS
= 4096u32;
1106 #[doc = "*Required features: `\"Win32_Security_WinTrust\"`*"]
1107 pub const WTD_DISABLE_MD2_MD4
: WINTRUST_DATA_PROVIDER_FLAGS
= 8192u32;
1108 #[doc = "*Required features: `\"Win32_Security_WinTrust\"`*"]
1109 pub const WTD_MOTW
: WINTRUST_DATA_PROVIDER_FLAGS
= 16384u32;
1110 #[doc = "*Required features: `\"Win32_Security_WinTrust\"`*"]
1111 pub type WINTRUST_DATA_REVOCATION_CHECKS
= u32;
1112 #[doc = "*Required features: `\"Win32_Security_WinTrust\"`*"]
1113 pub const WTD_REVOKE_NONE
: WINTRUST_DATA_REVOCATION_CHECKS
= 0u32;
1114 #[doc = "*Required features: `\"Win32_Security_WinTrust\"`*"]
1115 pub const WTD_REVOKE_WHOLECHAIN
: WINTRUST_DATA_REVOCATION_CHECKS
= 1u32;
1116 #[doc = "*Required features: `\"Win32_Security_WinTrust\"`*"]
1117 pub type WINTRUST_DATA_STATE_ACTION
= u32;
1118 #[doc = "*Required features: `\"Win32_Security_WinTrust\"`*"]
1119 pub const WTD_STATEACTION_IGNORE
: WINTRUST_DATA_STATE_ACTION
= 0u32;
1120 #[doc = "*Required features: `\"Win32_Security_WinTrust\"`*"]
1121 pub const WTD_STATEACTION_VERIFY
: WINTRUST_DATA_STATE_ACTION
= 1u32;
1122 #[doc = "*Required features: `\"Win32_Security_WinTrust\"`*"]
1123 pub const WTD_STATEACTION_CLOSE
: WINTRUST_DATA_STATE_ACTION
= 2u32;
1124 #[doc = "*Required features: `\"Win32_Security_WinTrust\"`*"]
1125 pub const WTD_STATEACTION_AUTO_CACHE
: WINTRUST_DATA_STATE_ACTION
= 3u32;
1126 #[doc = "*Required features: `\"Win32_Security_WinTrust\"`*"]
1127 pub const WTD_STATEACTION_AUTO_CACHE_FLUSH
: WINTRUST_DATA_STATE_ACTION
= 4u32;
1128 #[doc = "*Required features: `\"Win32_Security_WinTrust\"`*"]
1129 pub type WINTRUST_DATA_UICHOICE
= u32;
1130 #[doc = "*Required features: `\"Win32_Security_WinTrust\"`*"]
1131 pub const WTD_UI_ALL
: WINTRUST_DATA_UICHOICE
= 1u32;
1132 #[doc = "*Required features: `\"Win32_Security_WinTrust\"`*"]
1133 pub const WTD_UI_NONE
: WINTRUST_DATA_UICHOICE
= 2u32;
1134 #[doc = "*Required features: `\"Win32_Security_WinTrust\"`*"]
1135 pub const WTD_UI_NOBAD
: WINTRUST_DATA_UICHOICE
= 3u32;
1136 #[doc = "*Required features: `\"Win32_Security_WinTrust\"`*"]
1137 pub const WTD_UI_NOGOOD
: WINTRUST_DATA_UICHOICE
= 4u32;
1138 #[doc = "*Required features: `\"Win32_Security_WinTrust\"`*"]
1139 pub type WINTRUST_DATA_UICONTEXT
= u32;
1140 #[doc = "*Required features: `\"Win32_Security_WinTrust\"`*"]
1141 pub const WTD_UICONTEXT_EXECUTE
: WINTRUST_DATA_UICONTEXT
= 0u32;
1142 #[doc = "*Required features: `\"Win32_Security_WinTrust\"`*"]
1143 pub const WTD_UICONTEXT_INSTALL
: WINTRUST_DATA_UICONTEXT
= 1u32;
1144 #[doc = "*Required features: `\"Win32_Security_WinTrust\"`*"]
1145 pub type WINTRUST_DATA_UNION_CHOICE
= u32;
1146 #[doc = "*Required features: `\"Win32_Security_WinTrust\"`*"]
1147 pub const WTD_CHOICE_FILE
: WINTRUST_DATA_UNION_CHOICE
= 1u32;
1148 #[doc = "*Required features: `\"Win32_Security_WinTrust\"`*"]
1149 pub const WTD_CHOICE_CATALOG
: WINTRUST_DATA_UNION_CHOICE
= 2u32;
1150 #[doc = "*Required features: `\"Win32_Security_WinTrust\"`*"]
1151 pub const WTD_CHOICE_BLOB
: WINTRUST_DATA_UNION_CHOICE
= 3u32;
1152 #[doc = "*Required features: `\"Win32_Security_WinTrust\"`*"]
1153 pub const WTD_CHOICE_SIGNER
: WINTRUST_DATA_UNION_CHOICE
= 4u32;
1154 #[doc = "*Required features: `\"Win32_Security_WinTrust\"`*"]
1155 pub const WTD_CHOICE_CERT
: WINTRUST_DATA_UNION_CHOICE
= 5u32;
1157 #[doc = "*Required features: `\"Win32_Security_WinTrust\"`, `\"Win32_Foundation\"`*"]
1158 #[cfg(feature = "Win32_Foundation")]
1159 pub struct WINTRUST_FILE_INFO
{
1161 pub pcwszFilePath
: ::windows_sys
::core
::PCWSTR
,
1162 pub hFile
: super::super::Foundation
::HANDLE
,
1163 pub pgKnownSubject
: *mut ::windows_sys
::core
::GUID
,
1165 #[cfg(feature = "Win32_Foundation")]
1166 impl ::core
::marker
::Copy
for WINTRUST_FILE_INFO {}
1167 #[cfg(feature = "Win32_Foundation")]
1168 impl ::core
::clone
::Clone
for WINTRUST_FILE_INFO
{
1169 fn clone(&self) -> Self {
1173 #[doc = "*Required features: `\"Win32_Security_WinTrust\"`*"]
1174 pub type WINTRUST_GET_DEFAULT_FOR_USAGE_ACTION
= u32;
1175 #[doc = "*Required features: `\"Win32_Security_WinTrust\"`*"]
1176 pub const DWACTION_ALLOCANDFILL
: WINTRUST_GET_DEFAULT_FOR_USAGE_ACTION
= 1u32;
1177 #[doc = "*Required features: `\"Win32_Security_WinTrust\"`*"]
1178 pub const DWACTION_FREE
: WINTRUST_GET_DEFAULT_FOR_USAGE_ACTION
= 2u32;
1179 #[doc = "*Required features: `\"Win32_Security_WinTrust\"`*"]
1180 pub const WINTRUST_MAX_HASH_BYTES_TO_MAP_DEFAULT
: u32 = 1048576u32;
1181 #[doc = "*Required features: `\"Win32_Security_WinTrust\"`*"]
1182 pub const WINTRUST_MAX_HASH_BYTES_TO_MAP_VALUE_NAME
: &'
static str = "MaxHashBytesToMap";
1183 #[doc = "*Required features: `\"Win32_Security_WinTrust\"`*"]
1184 pub const WINTRUST_MAX_HEADER_BYTES_TO_MAP_DEFAULT
: u32 = 10485760u32;
1185 #[doc = "*Required features: `\"Win32_Security_WinTrust\"`*"]
1186 pub const WINTRUST_MAX_HEADER_BYTES_TO_MAP_VALUE_NAME
: &'
static str = "MaxHeaderBytesToMap";
1187 #[doc = "*Required features: `\"Win32_Security_WinTrust\"`*"]
1188 pub type WINTRUST_POLICY_FLAGS
= u32;
1189 #[doc = "*Required features: `\"Win32_Security_WinTrust\"`*"]
1190 pub const WTPF_TRUSTTEST
: WINTRUST_POLICY_FLAGS
= 32u32;
1191 #[doc = "*Required features: `\"Win32_Security_WinTrust\"`*"]
1192 pub const WTPF_TESTCANBEVALID
: WINTRUST_POLICY_FLAGS
= 128u32;
1193 #[doc = "*Required features: `\"Win32_Security_WinTrust\"`*"]
1194 pub const WTPF_IGNOREEXPIRATION
: WINTRUST_POLICY_FLAGS
= 256u32;
1195 #[doc = "*Required features: `\"Win32_Security_WinTrust\"`*"]
1196 pub const WTPF_IGNOREREVOKATION
: WINTRUST_POLICY_FLAGS
= 512u32;
1197 #[doc = "*Required features: `\"Win32_Security_WinTrust\"`*"]
1198 pub const WTPF_OFFLINEOK_IND
: WINTRUST_POLICY_FLAGS
= 1024u32;
1199 #[doc = "*Required features: `\"Win32_Security_WinTrust\"`*"]
1200 pub const WTPF_OFFLINEOK_COM
: WINTRUST_POLICY_FLAGS
= 2048u32;
1201 #[doc = "*Required features: `\"Win32_Security_WinTrust\"`*"]
1202 pub const WTPF_OFFLINEOKNBU_IND
: WINTRUST_POLICY_FLAGS
= 4096u32;
1203 #[doc = "*Required features: `\"Win32_Security_WinTrust\"`*"]
1204 pub const WTPF_OFFLINEOKNBU_COM
: WINTRUST_POLICY_FLAGS
= 8192u32;
1205 #[doc = "*Required features: `\"Win32_Security_WinTrust\"`*"]
1206 pub const WTPF_VERIFY_V1_OFF
: WINTRUST_POLICY_FLAGS
= 65536u32;
1207 #[doc = "*Required features: `\"Win32_Security_WinTrust\"`*"]
1208 pub const WTPF_IGNOREREVOCATIONONTS
: WINTRUST_POLICY_FLAGS
= 131072u32;
1209 #[doc = "*Required features: `\"Win32_Security_WinTrust\"`*"]
1210 pub const WTPF_ALLOWONLYPERTRUST
: WINTRUST_POLICY_FLAGS
= 262144u32;
1212 #[doc = "*Required features: `\"Win32_Security_WinTrust\"`, `\"Win32_Security_Cryptography\"`*"]
1213 #[cfg(feature = "Win32_Security_Cryptography")]
1214 pub struct WINTRUST_SGNR_INFO
{
1216 pub pcwszDisplayName
: ::windows_sys
::core
::PCWSTR
,
1217 pub psSignerInfo
: *mut super::Cryptography
::CMSG_SIGNER_INFO
,
1219 pub pahStores
: *mut super::Cryptography
::HCERTSTORE
,
1221 #[cfg(feature = "Win32_Security_Cryptography")]
1222 impl ::core
::marker
::Copy
for WINTRUST_SGNR_INFO {}
1223 #[cfg(feature = "Win32_Security_Cryptography")]
1224 impl ::core
::clone
::Clone
for WINTRUST_SGNR_INFO
{
1225 fn clone(&self) -> Self {
1230 #[doc = "*Required features: `\"Win32_Security_WinTrust\"`, `\"Win32_Security_Cryptography\"`*"]
1231 #[cfg(feature = "Win32_Security_Cryptography")]
1232 pub struct WINTRUST_SIGNATURE_SETTINGS
{
1235 pub dwFlags
: WINTRUST_SIGNATURE_SETTINGS_FLAGS
,
1236 pub cSecondarySigs
: u32,
1237 pub dwVerifiedSigIndex
: u32,
1238 pub pCryptoPolicy
: *mut super::Cryptography
::CERT_STRONG_SIGN_PARA
,
1240 #[cfg(feature = "Win32_Security_Cryptography")]
1241 impl ::core
::marker
::Copy
for WINTRUST_SIGNATURE_SETTINGS {}
1242 #[cfg(feature = "Win32_Security_Cryptography")]
1243 impl ::core
::clone
::Clone
for WINTRUST_SIGNATURE_SETTINGS
{
1244 fn clone(&self) -> Self {
1248 #[doc = "*Required features: `\"Win32_Security_WinTrust\"`*"]
1249 pub type WINTRUST_SIGNATURE_SETTINGS_FLAGS
= u32;
1250 #[doc = "*Required features: `\"Win32_Security_WinTrust\"`*"]
1251 pub const WSS_VERIFY_SPECIFIC
: WINTRUST_SIGNATURE_SETTINGS_FLAGS
= 1u32;
1252 #[doc = "*Required features: `\"Win32_Security_WinTrust\"`*"]
1253 pub const WSS_GET_SECONDARY_SIG_COUNT
: WINTRUST_SIGNATURE_SETTINGS_FLAGS
= 2u32;
1255 #[doc = "*Required features: `\"Win32_Security_WinTrust\"`*"]
1256 pub struct WIN_CERTIFICATE
{
1259 pub wCertificateType
: u16,
1260 pub bCertificate
: [u8; 1],
1262 impl ::core
::marker
::Copy
for WIN_CERTIFICATE {}
1263 impl ::core
::clone
::Clone
for WIN_CERTIFICATE
{
1264 fn clone(&self) -> Self {
1268 #[doc = "*Required features: `\"Win32_Security_WinTrust\"`*"]
1269 pub const WIN_CERT_REVISION_1_0
: u32 = 256u32;
1270 #[doc = "*Required features: `\"Win32_Security_WinTrust\"`*"]
1271 pub const WIN_CERT_REVISION_2_0
: u32 = 512u32;
1272 #[doc = "*Required features: `\"Win32_Security_WinTrust\"`*"]
1273 pub const WIN_CERT_TYPE_PKCS_SIGNED_DATA
: u32 = 2u32;
1274 #[doc = "*Required features: `\"Win32_Security_WinTrust\"`*"]
1275 pub const WIN_CERT_TYPE_RESERVED_1
: u32 = 3u32;
1276 #[doc = "*Required features: `\"Win32_Security_WinTrust\"`*"]
1277 pub const WIN_CERT_TYPE_TS_STACK_SIGNED
: u32 = 4u32;
1278 #[doc = "*Required features: `\"Win32_Security_WinTrust\"`*"]
1279 pub const WIN_CERT_TYPE_X509
: u32 = 1u32;
1281 #[doc = "*Required features: `\"Win32_Security_WinTrust\"`, `\"Win32_Foundation\"`*"]
1282 #[cfg(feature = "Win32_Foundation")]
1283 pub struct WIN_SPUB_TRUSTED_PUBLISHER_DATA
{
1284 pub hClientToken
: super::super::Foundation
::HANDLE
,
1285 pub lpCertificate
: *mut WIN_CERTIFICATE
,
1287 #[cfg(feature = "Win32_Foundation")]
1288 impl ::core
::marker
::Copy
for WIN_SPUB_TRUSTED_PUBLISHER_DATA {}
1289 #[cfg(feature = "Win32_Foundation")]
1290 impl ::core
::clone
::Clone
for WIN_SPUB_TRUSTED_PUBLISHER_DATA
{
1291 fn clone(&self) -> Self {
1296 #[doc = "*Required features: `\"Win32_Security_WinTrust\"`, `\"Win32_Foundation\"`*"]
1297 #[cfg(feature = "Win32_Foundation")]
1298 pub struct WIN_TRUST_ACTDATA_CONTEXT_WITH_SUBJECT
{
1299 pub hClientToken
: super::super::Foundation
::HANDLE
,
1300 pub SubjectType
: *mut ::windows_sys
::core
::GUID
,
1301 pub Subject
: *mut ::core
::ffi
::c_void
,
1303 #[cfg(feature = "Win32_Foundation")]
1304 impl ::core
::marker
::Copy
for WIN_TRUST_ACTDATA_CONTEXT_WITH_SUBJECT {}
1305 #[cfg(feature = "Win32_Foundation")]
1306 impl ::core
::clone
::Clone
for WIN_TRUST_ACTDATA_CONTEXT_WITH_SUBJECT
{
1307 fn clone(&self) -> Self {
1312 #[doc = "*Required features: `\"Win32_Security_WinTrust\"`*"]
1313 pub struct WIN_TRUST_ACTDATA_SUBJECT_ONLY
{
1314 pub SubjectType
: *mut ::windows_sys
::core
::GUID
,
1315 pub Subject
: *mut ::core
::ffi
::c_void
,
1317 impl ::core
::marker
::Copy
for WIN_TRUST_ACTDATA_SUBJECT_ONLY {}
1318 impl ::core
::clone
::Clone
for WIN_TRUST_ACTDATA_SUBJECT_ONLY
{
1319 fn clone(&self) -> Self {
1324 #[doc = "*Required features: `\"Win32_Security_WinTrust\"`, `\"Win32_Foundation\"`*"]
1325 #[cfg(feature = "Win32_Foundation")]
1326 pub struct WIN_TRUST_SUBJECT_FILE
{
1327 pub hFile
: super::super::Foundation
::HANDLE
,
1328 pub lpPath
: ::windows_sys
::core
::PCWSTR
,
1330 #[cfg(feature = "Win32_Foundation")]
1331 impl ::core
::marker
::Copy
for WIN_TRUST_SUBJECT_FILE {}
1332 #[cfg(feature = "Win32_Foundation")]
1333 impl ::core
::clone
::Clone
for WIN_TRUST_SUBJECT_FILE
{
1334 fn clone(&self) -> Self {
1339 #[doc = "*Required features: `\"Win32_Security_WinTrust\"`, `\"Win32_Foundation\"`*"]
1340 #[cfg(feature = "Win32_Foundation")]
1341 pub struct WIN_TRUST_SUBJECT_FILE_AND_DISPLAY
{
1342 pub hFile
: super::super::Foundation
::HANDLE
,
1343 pub lpPath
: ::windows_sys
::core
::PCWSTR
,
1344 pub lpDisplayName
: ::windows_sys
::core
::PCWSTR
,
1346 #[cfg(feature = "Win32_Foundation")]
1347 impl ::core
::marker
::Copy
for WIN_TRUST_SUBJECT_FILE_AND_DISPLAY {}
1348 #[cfg(feature = "Win32_Foundation")]
1349 impl ::core
::clone
::Clone
for WIN_TRUST_SUBJECT_FILE_AND_DISPLAY
{
1350 fn clone(&self) -> Self {
1354 #[doc = "*Required features: `\"Win32_Security_WinTrust\"`*"]
1355 pub const WSS_CERTTRUST_SUPPORT
: u32 = 4u32;
1356 #[doc = "*Required features: `\"Win32_Security_WinTrust\"`*"]
1357 pub const WSS_INPUT_FLAG_MASK
: u32 = 7u32;
1358 #[doc = "*Required features: `\"Win32_Security_WinTrust\"`*"]
1359 pub const WSS_OBJTRUST_SUPPORT
: u32 = 1u32;
1360 #[doc = "*Required features: `\"Win32_Security_WinTrust\"`*"]
1361 pub const WSS_OUTPUT_FLAG_MASK
: u32 = 3758096384u32;
1362 #[doc = "*Required features: `\"Win32_Security_WinTrust\"`*"]
1363 pub const WSS_OUT_FILE_SUPPORTS_SEAL
: u32 = 536870912u32;
1364 #[doc = "*Required features: `\"Win32_Security_WinTrust\"`*"]
1365 pub const WSS_OUT_HAS_SEALING_INTENT
: u32 = 1073741824u32;
1366 #[doc = "*Required features: `\"Win32_Security_WinTrust\"`*"]
1367 pub const WSS_OUT_SEALING_STATUS_VERIFIED
: u32 = 2147483648u32;
1368 #[doc = "*Required features: `\"Win32_Security_WinTrust\"`*"]
1369 pub const WSS_SIGTRUST_SUPPORT
: u32 = 2u32;
1370 #[doc = "*Required features: `\"Win32_Security_WinTrust\"`*"]
1371 pub const WSS_VERIFY_SEALING
: u32 = 4u32;
1372 #[doc = "*Required features: `\"Win32_Security_WinTrust\"`*"]
1373 pub const WTCI_DONT_OPEN_STORES
: u32 = 1u32;
1374 #[doc = "*Required features: `\"Win32_Security_WinTrust\"`*"]
1375 pub const WTCI_OPEN_ONLY_ROOT
: u32 = 2u32;
1376 #[doc = "*Required features: `\"Win32_Security_WinTrust\"`*"]
1377 pub const WTCI_USE_LOCAL_MACHINE
: u32 = 4u32;
1378 #[doc = "*Required features: `\"Win32_Security_WinTrust\"`*"]
1379 pub const WTD_CODE_INTEGRITY_DRIVER_MODE
: u32 = 32768u32;
1381 #[doc = "*Required features: `\"Win32_Security_WinTrust\"`, `\"Win32_Security_Cryptography\"`*"]
1382 #[cfg(feature = "Win32_Security_Cryptography")]
1383 pub struct WTD_GENERIC_CHAIN_POLICY_CREATE_INFO
{
1384 pub Anonymous
: WTD_GENERIC_CHAIN_POLICY_CREATE_INFO_0
,
1385 pub hChainEngine
: super::Cryptography
::HCERTCHAINENGINE
,
1386 pub pChainPara
: *mut super::Cryptography
::CERT_CHAIN_PARA
,
1388 pub pvReserved
: *mut ::core
::ffi
::c_void
,
1390 #[cfg(feature = "Win32_Security_Cryptography")]
1391 impl ::core
::marker
::Copy
for WTD_GENERIC_CHAIN_POLICY_CREATE_INFO {}
1392 #[cfg(feature = "Win32_Security_Cryptography")]
1393 impl ::core
::clone
::Clone
for WTD_GENERIC_CHAIN_POLICY_CREATE_INFO
{
1394 fn clone(&self) -> Self {
1399 #[doc = "*Required features: `\"Win32_Security_WinTrust\"`, `\"Win32_Security_Cryptography\"`*"]
1400 #[cfg(feature = "Win32_Security_Cryptography")]
1401 pub union WTD_GENERIC_CHAIN_POLICY_CREATE_INFO_0
{
1405 #[cfg(feature = "Win32_Security_Cryptography")]
1406 impl ::core
::marker
::Copy
for WTD_GENERIC_CHAIN_POLICY_CREATE_INFO_0 {}
1407 #[cfg(feature = "Win32_Security_Cryptography")]
1408 impl ::core
::clone
::Clone
for WTD_GENERIC_CHAIN_POLICY_CREATE_INFO_0
{
1409 fn clone(&self) -> Self {
1414 #[doc = "*Required features: `\"Win32_Security_WinTrust\"`, `\"Win32_Foundation\"`, `\"Win32_Security_Cryptography_Catalog\"`, `\"Win32_Security_Cryptography_Sip\"`*"]
1415 #[cfg(all(feature = "Win32_Foundation", feature = "Win32_Security_Cryptography_Catalog", feature = "Win32_Security_Cryptography_Sip"))]
1416 pub struct WTD_GENERIC_CHAIN_POLICY_DATA
{
1417 pub Anonymous
: WTD_GENERIC_CHAIN_POLICY_DATA_0
,
1418 pub pSignerChainInfo
: *mut WTD_GENERIC_CHAIN_POLICY_CREATE_INFO
,
1419 pub pCounterSignerChainInfo
: *mut WTD_GENERIC_CHAIN_POLICY_CREATE_INFO
,
1420 pub pfnPolicyCallback
: PFN_WTD_GENERIC_CHAIN_POLICY_CALLBACK
,
1421 pub pvPolicyArg
: *mut ::core
::ffi
::c_void
,
1423 #[cfg(all(feature = "Win32_Foundation", feature = "Win32_Security_Cryptography_Catalog", feature = "Win32_Security_Cryptography_Sip"))]
1424 impl ::core
::marker
::Copy
for WTD_GENERIC_CHAIN_POLICY_DATA {}
1425 #[cfg(all(feature = "Win32_Foundation", feature = "Win32_Security_Cryptography_Catalog", feature = "Win32_Security_Cryptography_Sip"))]
1426 impl ::core
::clone
::Clone
for WTD_GENERIC_CHAIN_POLICY_DATA
{
1427 fn clone(&self) -> Self {
1432 #[doc = "*Required features: `\"Win32_Security_WinTrust\"`, `\"Win32_Foundation\"`, `\"Win32_Security_Cryptography_Catalog\"`, `\"Win32_Security_Cryptography_Sip\"`*"]
1433 #[cfg(all(feature = "Win32_Foundation", feature = "Win32_Security_Cryptography_Catalog", feature = "Win32_Security_Cryptography_Sip"))]
1434 pub union WTD_GENERIC_CHAIN_POLICY_DATA_0
{
1438 #[cfg(all(feature = "Win32_Foundation", feature = "Win32_Security_Cryptography_Catalog", feature = "Win32_Security_Cryptography_Sip"))]
1439 impl ::core
::marker
::Copy
for WTD_GENERIC_CHAIN_POLICY_DATA_0 {}
1440 #[cfg(all(feature = "Win32_Foundation", feature = "Win32_Security_Cryptography_Catalog", feature = "Win32_Security_Cryptography_Sip"))]
1441 impl ::core
::clone
::Clone
for WTD_GENERIC_CHAIN_POLICY_DATA_0
{
1442 fn clone(&self) -> Self {
1447 #[doc = "*Required features: `\"Win32_Security_WinTrust\"`, `\"Win32_Foundation\"`, `\"Win32_Security_Cryptography\"`*"]
1448 #[cfg(all(feature = "Win32_Foundation", feature = "Win32_Security_Cryptography"))]
1449 pub struct WTD_GENERIC_CHAIN_POLICY_SIGNER_INFO
{
1450 pub Anonymous
: WTD_GENERIC_CHAIN_POLICY_SIGNER_INFO_0
,
1451 pub pChainContext
: *mut super::Cryptography
::CERT_CHAIN_CONTEXT
,
1452 pub dwSignerType
: u32,
1453 pub pMsgSignerInfo
: *mut super::Cryptography
::CMSG_SIGNER_INFO
,
1455 pub cCounterSigner
: u32,
1456 pub rgpCounterSigner
: *mut *mut WTD_GENERIC_CHAIN_POLICY_SIGNER_INFO
,
1458 #[cfg(all(feature = "Win32_Foundation", feature = "Win32_Security_Cryptography"))]
1459 impl ::core
::marker
::Copy
for WTD_GENERIC_CHAIN_POLICY_SIGNER_INFO {}
1460 #[cfg(all(feature = "Win32_Foundation", feature = "Win32_Security_Cryptography"))]
1461 impl ::core
::clone
::Clone
for WTD_GENERIC_CHAIN_POLICY_SIGNER_INFO
{
1462 fn clone(&self) -> Self {
1467 #[doc = "*Required features: `\"Win32_Security_WinTrust\"`, `\"Win32_Foundation\"`, `\"Win32_Security_Cryptography\"`*"]
1468 #[cfg(all(feature = "Win32_Foundation", feature = "Win32_Security_Cryptography"))]
1469 pub union WTD_GENERIC_CHAIN_POLICY_SIGNER_INFO_0
{
1473 #[cfg(all(feature = "Win32_Foundation", feature = "Win32_Security_Cryptography"))]
1474 impl ::core
::marker
::Copy
for WTD_GENERIC_CHAIN_POLICY_SIGNER_INFO_0 {}
1475 #[cfg(all(feature = "Win32_Foundation", feature = "Win32_Security_Cryptography"))]
1476 impl ::core
::clone
::Clone
for WTD_GENERIC_CHAIN_POLICY_SIGNER_INFO_0
{
1477 fn clone(&self) -> Self {
1481 #[doc = "*Required features: `\"Win32_Security_WinTrust\"`*"]
1482 pub const WTD_PROV_FLAGS_MASK
: u32 = 65535u32;
1483 #[doc = "*Required features: `\"Win32_Security_WinTrust\"`*"]
1484 pub const WT_ADD_ACTION_ID_RET_RESULT_FLAG
: u32 = 1u32;
1485 #[doc = "*Required features: `\"Win32_Security_WinTrust\"`*"]
1486 pub const WT_CURRENT_VERSION
: u32 = 512u32;
1487 #[doc = "*Required features: `\"Win32_Security_WinTrust\"`*"]
1488 pub const WT_PROVIDER_CERTTRUST_FUNCTION
: &'
static str = "WintrustCertificateTrust";
1489 #[doc = "*Required features: `\"Win32_Security_WinTrust\"`*"]
1490 pub const WT_PROVIDER_DLL_NAME
: &'
static str = "WINTRUST.DLL";
1491 #[doc = "*Required features: `\"Win32_Security_WinTrust\"`*"]
1492 pub const WT_TRUSTDBDIALOG_NO_UI_FLAG
: u32 = 1u32;
1493 #[doc = "*Required features: `\"Win32_Security_WinTrust\"`*"]
1494 pub const WT_TRUSTDBDIALOG_ONLY_PUB_TAB_FLAG
: u32 = 2u32;
1495 #[doc = "*Required features: `\"Win32_Security_WinTrust\"`*"]
1496 pub const WT_TRUSTDBDIALOG_WRITE_IEAK_STORE_FLAG
: u32 = 512u32;
1497 #[doc = "*Required features: `\"Win32_Security_WinTrust\"`*"]
1498 pub const WT_TRUSTDBDIALOG_WRITE_LEGACY_REG_FLAG
: u32 = 256u32;
1499 #[doc = "*Required features: `\"Win32_Security_WinTrust\"`*"]
1500 pub const szOID_ENHANCED_HASH
: &'
static str = "1.3.6.1.4.1.311.2.5.1";
1501 #[doc = "*Required features: `\"Win32_Security_WinTrust\"`*"]
1502 pub const szOID_INTENT_TO_SEAL
: &'
static str = "1.3.6.1.4.1.311.2.4.2";
1503 #[doc = "*Required features: `\"Win32_Security_WinTrust\"`*"]
1504 pub const szOID_NESTED_SIGNATURE
: &'
static str = "1.3.6.1.4.1.311.2.4.1";
1505 #[doc = "*Required features: `\"Win32_Security_WinTrust\"`*"]
1506 pub const szOID_PKCS_9_SEQUENCE_NUMBER
: &'
static str = "1.2.840.113549.1.9.25.4";
1507 #[doc = "*Required features: `\"Win32_Security_WinTrust\"`*"]
1508 pub const szOID_SEALING_SIGNATURE
: &'
static str = "1.3.6.1.4.1.311.2.4.3";
1509 #[doc = "*Required features: `\"Win32_Security_WinTrust\"`*"]
1510 pub const szOID_SEALING_TIMESTAMP
: &'
static str = "1.3.6.1.4.1.311.2.4.4";
1511 #[doc = "*Required features: `\"Win32_Security_WinTrust\"`*"]
1512 pub const szOID_TRUSTED_CLIENT_AUTH_CA_LIST
: &'
static str = "1.3.6.1.4.1.311.2.2.2";
1513 #[doc = "*Required features: `\"Win32_Security_WinTrust\"`*"]
1514 pub const szOID_TRUSTED_CODESIGNING_CA_LIST
: &'
static str = "1.3.6.1.4.1.311.2.2.1";
1515 #[doc = "*Required features: `\"Win32_Security_WinTrust\"`*"]
1516 pub const szOID_TRUSTED_SERVER_AUTH_CA_LIST
: &'
static str = "1.3.6.1.4.1.311.2.2.3";