Debian Codegraph @

.cargo/vendor/windows-sys/src/Windows/Win32/Security/WinTrust/mod.rs

raw
1 #[cfg(feature = "Win32_Foundation")]
2 ::windows_targets::link!("wintrust.dll" "system" #[doc = "Required features: `\"Win32_Foundation\"`"] fn OpenPersonalTrustDBDialog(hwndparent : super::super::Foundation:: HWND) -> super::super::Foundation:: BOOL);
3 #[cfg(feature = "Win32_Foundation")]
4 ::windows_targets::link!("wintrust.dll" "system" #[doc = "Required features: `\"Win32_Foundation\"`"] fn OpenPersonalTrustDBDialogEx(hwndparent : super::super::Foundation:: HWND, dwflags : u32, pvreserved : *mut *mut ::core::ffi::c_void) -> super::super::Foundation:: BOOL);
5 #[cfg(all(feature = "Win32_Foundation", feature = "Win32_Security_Cryptography_Catalog", feature = "Win32_Security_Cryptography_Sip"))]
6 ::windows_targets::link!("wintrust.dll" "system" #[doc = "Required features: `\"Win32_Foundation\"`, `\"Win32_Security_Cryptography_Catalog\"`, `\"Win32_Security_Cryptography_Sip\"`"] fn WTHelperCertCheckValidSignature(pprovdata : *mut CRYPT_PROVIDER_DATA) -> ::windows_sys::core::HRESULT);
7 #[cfg(all(feature = "Win32_Foundation", feature = "Win32_Security_Cryptography"))]
8 ::windows_targets::link!("wintrust.dll" "system" #[doc = "Required features: `\"Win32_Foundation\"`, `\"Win32_Security_Cryptography\"`"] fn WTHelperCertIsSelfSigned(dwencoding : u32, pcert : *mut super::Cryptography:: CERT_INFO) -> super::super::Foundation:: BOOL);
9 #[cfg(all(feature = "Win32_Foundation", feature = "Win32_Security_Cryptography"))]
10 ::windows_targets::link!("wintrust.dll" "system" #[doc = "Required features: `\"Win32_Foundation\"`, `\"Win32_Security_Cryptography\"`"] fn WTHelperGetProvCertFromChain(psgnr : *mut CRYPT_PROVIDER_SGNR, idxcert : u32) -> *mut CRYPT_PROVIDER_CERT);
11 #[cfg(all(feature = "Win32_Foundation", feature = "Win32_Security_Cryptography_Catalog", feature = "Win32_Security_Cryptography_Sip"))]
12 ::windows_targets::link!("wintrust.dll" "system" #[doc = "Required features: `\"Win32_Foundation\"`, `\"Win32_Security_Cryptography_Catalog\"`, `\"Win32_Security_Cryptography_Sip\"`"] fn WTHelperGetProvPrivateDataFromChain(pprovdata : *mut CRYPT_PROVIDER_DATA, pgproviderid : *mut ::windows_sys::core::GUID) -> *mut CRYPT_PROVIDER_PRIVDATA);
13 #[cfg(all(feature = "Win32_Foundation", feature = "Win32_Security_Cryptography_Catalog", feature = "Win32_Security_Cryptography_Sip"))]
14 ::windows_targets::link!("wintrust.dll" "system" #[doc = "Required features: `\"Win32_Foundation\"`, `\"Win32_Security_Cryptography_Catalog\"`, `\"Win32_Security_Cryptography_Sip\"`"] fn WTHelperGetProvSignerFromChain(pprovdata : *mut CRYPT_PROVIDER_DATA, idxsigner : u32, fcountersigner : super::super::Foundation:: BOOL, idxcountersigner : u32) -> *mut CRYPT_PROVIDER_SGNR);
15 #[cfg(all(feature = "Win32_Foundation", feature = "Win32_Security_Cryptography_Catalog", feature = "Win32_Security_Cryptography_Sip"))]
16 ::windows_targets::link!("wintrust.dll" "system" #[doc = "Required features: `\"Win32_Foundation\"`, `\"Win32_Security_Cryptography_Catalog\"`, `\"Win32_Security_Cryptography_Sip\"`"] fn WTHelperProvDataFromStateData(hstatedata : super::super::Foundation:: HANDLE) -> *mut CRYPT_PROVIDER_DATA);
17 #[cfg(feature = "Win32_Foundation")]
18 ::windows_targets::link!("wintrust.dll" "system" #[doc = "Required features: `\"Win32_Foundation\"`"] fn WinVerifyTrust(hwnd : super::super::Foundation:: HWND, pgactionid : *mut ::windows_sys::core::GUID, pwvtdata : *mut ::core::ffi::c_void) -> i32);
19 #[cfg(all(feature = "Win32_Foundation", feature = "Win32_Security_Cryptography"))]
20 ::windows_targets::link!("wintrust.dll" "system" #[doc = "Required features: `\"Win32_Foundation\"`, `\"Win32_Security_Cryptography\"`"] fn WinVerifyTrustEx(hwnd : super::super::Foundation:: HWND, pgactionid : *mut ::windows_sys::core::GUID, pwintrustdata : *mut WINTRUST_DATA) -> i32);
21 #[cfg(feature = "Win32_Foundation")]
22 ::windows_targets::link!("wintrust.dll" "system" #[doc = "Required features: `\"Win32_Foundation\"`"] fn WintrustAddActionID(pgactionid : *const ::windows_sys::core::GUID, fdwflags : u32, psprovinfo : *const CRYPT_REGISTER_ACTIONID) -> super::super::Foundation:: BOOL);
23 #[cfg(feature = "Win32_Foundation")]
24 ::windows_targets::link!("wintrust.dll" "system" #[doc = "Required features: `\"Win32_Foundation\"`"] fn WintrustAddDefaultForUsage(pszusageoid : ::windows_sys::core::PCSTR, psdefusage : *const CRYPT_PROVIDER_REGDEFUSAGE) -> super::super::Foundation:: BOOL);
25 #[cfg(feature = "Win32_Foundation")]
26 ::windows_targets::link!("wintrust.dll" "system" #[doc = "Required features: `\"Win32_Foundation\"`"] fn WintrustGetDefaultForUsage(dwaction : WINTRUST_GET_DEFAULT_FOR_USAGE_ACTION, pszusageoid : ::windows_sys::core::PCSTR, psusage : *mut CRYPT_PROVIDER_DEFUSAGE) -> super::super::Foundation:: BOOL);
27 ::windows_targets::link!("wintrust.dll" "system" fn WintrustGetRegPolicyFlags(pdwpolicyflags : *mut WINTRUST_POLICY_FLAGS) -> ());
28 #[cfg(all(feature = "Win32_Foundation", feature = "Win32_Security_Cryptography_Catalog", feature = "Win32_Security_Cryptography_Sip"))]
29 ::windows_targets::link!("wintrust.dll" "system" #[doc = "Required features: `\"Win32_Foundation\"`, `\"Win32_Security_Cryptography_Catalog\"`, `\"Win32_Security_Cryptography_Sip\"`"] fn WintrustLoadFunctionPointers(pgactionid : *mut ::windows_sys::core::GUID, ppfns : *mut CRYPT_PROVIDER_FUNCTIONS) -> super::super::Foundation:: BOOL);
30 #[cfg(feature = "Win32_Foundation")]
31 ::windows_targets::link!("wintrust.dll" "system" #[doc = "Required features: `\"Win32_Foundation\"`"] fn WintrustRemoveActionID(pgactionid : *const ::windows_sys::core::GUID) -> super::super::Foundation:: BOOL);
32 #[cfg(feature = "Win32_Foundation")]
33 ::windows_targets::link!("wintrust.dll" "system" #[doc = "Required features: `\"Win32_Foundation\"`"] fn WintrustSetDefaultIncludePEPageHashes(fincludepepagehashes : super::super::Foundation:: BOOL) -> ());
34 #[cfg(feature = "Win32_Foundation")]
35 ::windows_targets::link!("wintrust.dll" "system" #[doc = "Required features: `\"Win32_Foundation\"`"] fn WintrustSetRegPolicyFlags(dwpolicyflags : WINTRUST_POLICY_FLAGS) -> super::super::Foundation:: BOOL);
36 pub const CAT_MEMBERINFO2_OBJID: ::windows_sys::core::PCSTR = ::windows_sys::core::s!("1.3.6.1.4.1.311.12.2.3");
37 pub const CAT_MEMBERINFO2_STRUCT: ::windows_sys::core::PCSTR = 2223i32 as _;
38 pub const CAT_MEMBERINFO_OBJID: ::windows_sys::core::PCSTR = ::windows_sys::core::s!("1.3.6.1.4.1.311.12.2.2");
39 pub const CAT_MEMBERINFO_STRUCT: ::windows_sys::core::PCSTR = 2222i32 as _;
40 pub const CAT_NAMEVALUE_OBJID: ::windows_sys::core::PCSTR = ::windows_sys::core::s!("1.3.6.1.4.1.311.12.2.1");
41 pub const CAT_NAMEVALUE_STRUCT: ::windows_sys::core::PCSTR = 2221i32 as _;
42 pub const CCPI_RESULT_ALLOW: u32 = 1u32;
43 pub const CCPI_RESULT_AUDIT: u32 = 3u32;
44 pub const CCPI_RESULT_DENY: u32 = 2u32;
45 pub const CERT_CONFIDENCE_AUTHIDEXT: u32 = 65536u32;
46 pub const CERT_CONFIDENCE_HIGHEST: u32 = 286330880u32;
47 pub const CERT_CONFIDENCE_HYGIENE: u32 = 4096u32;
48 pub const CERT_CONFIDENCE_SIG: u32 = 268435456u32;
49 pub const CERT_CONFIDENCE_TIME: u32 = 16777216u32;
50 pub const CERT_CONFIDENCE_TIMENEST: u32 = 1048576u32;
51 pub const CONFIG_CI_ACTION_VERIFY: ::windows_sys::core::GUID = ::windows_sys::core::GUID::from_u128(0x6078065b_8f22_4b13_bd9b_5b762776f386);
52 pub const CPD_CHOICE_SIP: u32 = 1u32;
53 pub const CPD_RETURN_LOWER_QUALITY_CHAINS: u32 = 1048576u32;
54 pub const CPD_REVOCATION_CHECK_CHAIN: u32 = 262144u32;
55 pub const CPD_REVOCATION_CHECK_CHAIN_EXCLUDE_ROOT: u32 = 524288u32;
56 pub const CPD_REVOCATION_CHECK_END_CERT: u32 = 131072u32;
57 pub const CPD_REVOCATION_CHECK_NONE: u32 = 65536u32;
58 pub const CPD_RFC3161v21: u32 = 2097152u32;
59 pub const CPD_UISTATE_MODE_ALLOW: u32 = 2u32;
60 pub const CPD_UISTATE_MODE_BLOCK: u32 = 1u32;
61 pub const CPD_UISTATE_MODE_MASK: u32 = 3u32;
62 pub const CPD_UISTATE_MODE_PROMPT: u32 = 0u32;
63 pub const CPD_USE_NT5_CHAIN_FLAG: u32 = 2147483648u32;
64 pub const DRIVER_ACTION_VERIFY: ::windows_sys::core::GUID = ::windows_sys::core::GUID::from_u128(0xf750e6c3_38ee_11d1_85e5_00c04fc295ee);
65 pub const DRIVER_CLEANUPPOLICY_FUNCTION: ::windows_sys::core::PCWSTR = ::windows_sys::core::w!("DriverCleanupPolicy");
66 pub const DRIVER_FINALPOLPROV_FUNCTION: ::windows_sys::core::PCWSTR = ::windows_sys::core::w!("DriverFinalPolicy");
67 pub const DRIVER_INITPROV_FUNCTION: ::windows_sys::core::PCWSTR = ::windows_sys::core::w!("DriverInitializePolicy");
68 pub const DWACTION_ALLOCANDFILL: WINTRUST_GET_DEFAULT_FOR_USAGE_ACTION = 1u32;
69 pub const DWACTION_FREE: WINTRUST_GET_DEFAULT_FOR_USAGE_ACTION = 2u32;
70 pub const GENERIC_CHAIN_CERTTRUST_FUNCTION: ::windows_sys::core::PCWSTR = ::windows_sys::core::w!("GenericChainCertificateTrust");
71 pub const GENERIC_CHAIN_FINALPOLICY_FUNCTION: ::windows_sys::core::PCWSTR = ::windows_sys::core::w!("GenericChainFinalProv");
72 pub const HTTPSPROV_ACTION: ::windows_sys::core::GUID = ::windows_sys::core::GUID::from_u128(0x573e31f8_aaba_11d0_8ccb_00c04fc295ee);
73 pub const HTTPS_CERTTRUST_FUNCTION: ::windows_sys::core::PCWSTR = ::windows_sys::core::w!("HTTPSCertificateTrust");
74 pub const HTTPS_CHKCERT_FUNCTION: ::windows_sys::core::PCWSTR = ::windows_sys::core::w!("HTTPSCheckCertProv");
75 pub const HTTPS_FINALPOLICY_FUNCTION: ::windows_sys::core::PCWSTR = ::windows_sys::core::w!("HTTPSFinalProv");
76 pub const INTENT_TO_SEAL_ATTRIBUTE_STRUCT: ::windows_sys::core::PCSTR = 2010i32 as _;
77 pub const OFFICESIGN_ACTION_VERIFY: ::windows_sys::core::GUID = ::windows_sys::core::GUID::from_u128(0x5555c2cd_17fb_11d1_85c4_00c04fc295ee);
78 pub const OFFICE_CLEANUPPOLICY_FUNCTION: ::windows_sys::core::PCWSTR = ::windows_sys::core::w!("OfficeCleanupPolicy");
79 pub const OFFICE_INITPROV_FUNCTION: ::windows_sys::core::PCWSTR = ::windows_sys::core::w!("OfficeInitializePolicy");
80 pub const OFFICE_POLICY_PROVIDER_DLL_NAME: ::windows_sys::core::PCWSTR = ::windows_sys::core::w!("WINTRUST.DLL");
81 pub const SEALING_SIGNATURE_ATTRIBUTE_STRUCT: ::windows_sys::core::PCSTR = 2011i32 as _;
82 pub const SEALING_TIMESTAMP_ATTRIBUTE_STRUCT: ::windows_sys::core::PCSTR = 2012i32 as _;
83 pub const SGNR_TYPE_TIMESTAMP: u32 = 16u32;
84 pub const SPC_CAB_DATA_OBJID: ::windows_sys::core::PCSTR = ::windows_sys::core::s!("1.3.6.1.4.1.311.2.1.25");
85 pub const SPC_CAB_DATA_STRUCT: ::windows_sys::core::PCSTR = 2008i32 as _;
86 pub const SPC_CERT_EXTENSIONS_OBJID: ::windows_sys::core::PCSTR = ::windows_sys::core::s!("1.3.6.1.4.1.311.2.1.14");
87 pub const SPC_COMMERCIAL_SP_KEY_PURPOSE_OBJID: ::windows_sys::core::PCSTR = ::windows_sys::core::s!("1.3.6.1.4.1.311.2.1.22");
88 pub const SPC_COMMON_NAME_OBJID: ::windows_sys::core::PCWSTR = ::windows_sys::core::w!("2.5.4.3");
89 pub const SPC_ENCRYPTED_DIGEST_RETRY_COUNT_OBJID: ::windows_sys::core::PCSTR = ::windows_sys::core::s!("1.3.6.1.4.1.311.2.6.2");
90 pub const SPC_FILE_LINK_CHOICE: u32 = 3u32;
91 pub const SPC_FINANCIAL_CRITERIA_OBJID: ::windows_sys::core::PCSTR = ::windows_sys::core::s!("1.3.6.1.4.1.311.2.1.27");
92 pub const SPC_FINANCIAL_CRITERIA_STRUCT: ::windows_sys::core::PCSTR = 2002i32 as _;
93 pub const SPC_GLUE_RDN_OBJID: ::windows_sys::core::PCSTR = ::windows_sys::core::s!("1.3.6.1.4.1.311.2.1.25");
94 pub const SPC_INDIRECT_DATA_CONTENT_STRUCT: ::windows_sys::core::PCSTR = 2003i32 as _;
95 pub const SPC_INDIRECT_DATA_OBJID: ::windows_sys::core::PCSTR = ::windows_sys::core::s!("1.3.6.1.4.1.311.2.1.4");
96 pub const SPC_INDIVIDUAL_SP_KEY_PURPOSE_OBJID: ::windows_sys::core::PCSTR = ::windows_sys::core::s!("1.3.6.1.4.1.311.2.1.21");
97 pub const SPC_JAVA_CLASS_DATA_OBJID: ::windows_sys::core::PCSTR = ::windows_sys::core::s!("1.3.6.1.4.1.311.2.1.20");
98 pub const SPC_JAVA_CLASS_DATA_STRUCT: ::windows_sys::core::PCSTR = 2009i32 as _;
99 pub const SPC_LINK_OBJID: ::windows_sys::core::PCSTR = ::windows_sys::core::s!("1.3.6.1.4.1.311.2.1.28");
100 pub const SPC_LINK_STRUCT: ::windows_sys::core::PCSTR = 2005i32 as _;
101 pub const SPC_MINIMAL_CRITERIA_OBJID: ::windows_sys::core::PCSTR = ::windows_sys::core::s!("1.3.6.1.4.1.311.2.1.26");
102 pub const SPC_MINIMAL_CRITERIA_STRUCT: ::windows_sys::core::PCSTR = 2001i32 as _;
103 pub const SPC_MONIKER_LINK_CHOICE: u32 = 2u32;
104 pub const SPC_NATURAL_AUTH_PLUGIN_OBJID: ::windows_sys::core::PCSTR = ::windows_sys::core::s!("1.3.6.1.4.1.311.96.1.1");
105 pub const SPC_PE_IMAGE_DATA_OBJID: ::windows_sys::core::PCSTR = ::windows_sys::core::s!("1.3.6.1.4.1.311.2.1.15");
106 pub const SPC_PE_IMAGE_DATA_STRUCT: ::windows_sys::core::PCSTR = 2004i32 as _;
107 pub const SPC_PE_IMAGE_PAGE_HASHES_V1_OBJID: ::windows_sys::core::PCSTR = ::windows_sys::core::s!("1.3.6.1.4.1.311.2.3.1");
108 pub const SPC_PE_IMAGE_PAGE_HASHES_V2_OBJID: ::windows_sys::core::PCSTR = ::windows_sys::core::s!("1.3.6.1.4.1.311.2.3.2");
109 pub const SPC_RAW_FILE_DATA_OBJID: ::windows_sys::core::PCSTR = ::windows_sys::core::s!("1.3.6.1.4.1.311.2.1.18");
110 pub const SPC_RELAXED_PE_MARKER_CHECK_OBJID: ::windows_sys::core::PCSTR = ::windows_sys::core::s!("1.3.6.1.4.1.311.2.6.1");
111 pub const SPC_SIGINFO_OBJID: ::windows_sys::core::PCSTR = ::windows_sys::core::s!("1.3.6.1.4.1.311.2.1.30");
112 pub const SPC_SIGINFO_STRUCT: ::windows_sys::core::PCSTR = 2130i32 as _;
113 pub const SPC_SP_AGENCY_INFO_OBJID: ::windows_sys::core::PCSTR = ::windows_sys::core::s!("1.3.6.1.4.1.311.2.1.10");
114 pub const SPC_SP_AGENCY_INFO_STRUCT: ::windows_sys::core::PCSTR = 2000i32 as _;
115 pub const SPC_SP_OPUS_INFO_OBJID: ::windows_sys::core::PCSTR = ::windows_sys::core::s!("1.3.6.1.4.1.311.2.1.12");
116 pub const SPC_SP_OPUS_INFO_STRUCT: ::windows_sys::core::PCSTR = 2007i32 as _;
117 pub const SPC_STATEMENT_TYPE_OBJID: ::windows_sys::core::PCSTR = ::windows_sys::core::s!("1.3.6.1.4.1.311.2.1.11");
118 pub const SPC_STATEMENT_TYPE_STRUCT: ::windows_sys::core::PCSTR = 2006i32 as _;
119 pub const SPC_STRUCTURED_STORAGE_DATA_OBJID: ::windows_sys::core::PCSTR = ::windows_sys::core::s!("1.3.6.1.4.1.311.2.1.19");
120 pub const SPC_TIME_STAMP_REQUEST_OBJID: ::windows_sys::core::PCSTR = ::windows_sys::core::s!("1.3.6.1.4.1.311.3.2.1");
121 pub const SPC_URL_LINK_CHOICE: u32 = 1u32;
122 pub const SPC_UUID_LENGTH: u32 = 16u32;
123 pub const SPC_WINDOWS_HELLO_COMPATIBILITY_OBJID: ::windows_sys::core::PCSTR = ::windows_sys::core::s!("1.3.6.1.4.1.311.10.41.1");
124 pub const SP_CHKCERT_FUNCTION: ::windows_sys::core::PCWSTR = ::windows_sys::core::w!("SoftpubCheckCert");
125 pub const SP_CLEANUPPOLICY_FUNCTION: ::windows_sys::core::PCWSTR = ::windows_sys::core::w!("SoftpubCleanup");
126 pub const SP_FINALPOLICY_FUNCTION: ::windows_sys::core::PCWSTR = ::windows_sys::core::w!("SoftpubAuthenticode");
127 pub const SP_GENERIC_CERT_INIT_FUNCTION: ::windows_sys::core::PCWSTR = ::windows_sys::core::w!("SoftpubDefCertInit");
128 pub const SP_INIT_FUNCTION: ::windows_sys::core::PCWSTR = ::windows_sys::core::w!("SoftpubInitialize");
129 pub const SP_OBJTRUST_FUNCTION: ::windows_sys::core::PCWSTR = ::windows_sys::core::w!("SoftpubLoadMessage");
130 pub const SP_POLICY_PROVIDER_DLL_NAME: ::windows_sys::core::PCWSTR = ::windows_sys::core::w!("WINTRUST.DLL");
131 pub const SP_SIGTRUST_FUNCTION: ::windows_sys::core::PCWSTR = ::windows_sys::core::w!("SoftpubLoadSignature");
132 pub const SP_TESTDUMPPOLICY_FUNCTION_TEST: ::windows_sys::core::PCWSTR = ::windows_sys::core::w!("SoftpubDumpStructure");
133 pub const TRUSTERROR_MAX_STEPS: u32 = 38u32;
134 pub const TRUSTERROR_STEP_CATALOGFILE: u32 = 6u32;
135 pub const TRUSTERROR_STEP_CERTSTORE: u32 = 7u32;
136 pub const TRUSTERROR_STEP_FILEIO: u32 = 2u32;
137 pub const TRUSTERROR_STEP_FINAL_CERTCHKPROV: u32 = 35u32;
138 pub const TRUSTERROR_STEP_FINAL_CERTPROV: u32 = 34u32;
139 pub const TRUSTERROR_STEP_FINAL_INITPROV: u32 = 31u32;
140 pub const TRUSTERROR_STEP_FINAL_OBJPROV: u32 = 32u32;
141 pub const TRUSTERROR_STEP_FINAL_POLICYPROV: u32 = 36u32;
142 pub const TRUSTERROR_STEP_FINAL_SIGPROV: u32 = 33u32;
143 pub const TRUSTERROR_STEP_FINAL_UIPROV: u32 = 37u32;
144 pub const TRUSTERROR_STEP_FINAL_WVTINIT: u32 = 30u32;
145 pub const TRUSTERROR_STEP_MESSAGE: u32 = 8u32;
146 pub const TRUSTERROR_STEP_MSG_CERTCHAIN: u32 = 15u32;
147 pub const TRUSTERROR_STEP_MSG_COUNTERSIGCERT: u32 = 17u32;
148 pub const TRUSTERROR_STEP_MSG_COUNTERSIGINFO: u32 = 16u32;
149 pub const TRUSTERROR_STEP_MSG_INNERCNT: u32 = 11u32;
150 pub const TRUSTERROR_STEP_MSG_INNERCNTTYPE: u32 = 10u32;
151 pub const TRUSTERROR_STEP_MSG_SIGNERCERT: u32 = 14u32;
152 pub const TRUSTERROR_STEP_MSG_SIGNERCOUNT: u32 = 9u32;
153 pub const TRUSTERROR_STEP_MSG_SIGNERINFO: u32 = 13u32;
154 pub const TRUSTERROR_STEP_MSG_STORE: u32 = 12u32;
155 pub const TRUSTERROR_STEP_SIP: u32 = 3u32;
156 pub const TRUSTERROR_STEP_SIPSUBJINFO: u32 = 5u32;
157 pub const TRUSTERROR_STEP_VERIFY_MSGHASH: u32 = 18u32;
158 pub const TRUSTERROR_STEP_VERIFY_MSGINDIRECTDATA: u32 = 19u32;
159 pub const TRUSTERROR_STEP_WVTPARAMS: u32 = 0u32;
160 pub const WINTRUST_ACTION_GENERIC_CERT_VERIFY: ::windows_sys::core::GUID = ::windows_sys::core::GUID::from_u128(0x189a3842_3041_11d1_85e1_00c04fc295ee);
161 pub const WINTRUST_ACTION_GENERIC_CHAIN_VERIFY: ::windows_sys::core::GUID = ::windows_sys::core::GUID::from_u128(0xfc451c16_ac75_11d1_b4b8_00c04fb66ea0);
162 pub const WINTRUST_ACTION_GENERIC_VERIFY_V2: ::windows_sys::core::GUID = ::windows_sys::core::GUID::from_u128(0x00aac56b_cd44_11d0_8cc2_00c04fc295ee);
163 pub const WINTRUST_ACTION_TRUSTPROVIDER_TEST: ::windows_sys::core::GUID = ::windows_sys::core::GUID::from_u128(0x573e31f8_ddba_11d0_8ccb_00c04fc295ee);
164 pub const WINTRUST_CONFIG_REGPATH: ::windows_sys::core::PCWSTR = ::windows_sys::core::w!("Software\\Microsoft\\Cryptography\\Wintrust\\Config");
165 pub const WINTRUST_MAX_HASH_BYTES_TO_MAP_DEFAULT: u32 = 1048576u32;
166 pub const WINTRUST_MAX_HASH_BYTES_TO_MAP_VALUE_NAME: ::windows_sys::core::PCWSTR = ::windows_sys::core::w!("MaxHashBytesToMap");
167 pub const WINTRUST_MAX_HEADER_BYTES_TO_MAP_DEFAULT: u32 = 10485760u32;
168 pub const WINTRUST_MAX_HEADER_BYTES_TO_MAP_VALUE_NAME: ::windows_sys::core::PCWSTR = ::windows_sys::core::w!("MaxHeaderBytesToMap");
169 pub const WIN_CERT_REVISION_1_0: u32 = 256u32;
170 pub const WIN_CERT_REVISION_2_0: u32 = 512u32;
171 pub const WIN_CERT_TYPE_PKCS_SIGNED_DATA: u32 = 2u32;
172 pub const WIN_CERT_TYPE_RESERVED_1: u32 = 3u32;
173 pub const WIN_CERT_TYPE_TS_STACK_SIGNED: u32 = 4u32;
174 pub const WIN_CERT_TYPE_X509: u32 = 1u32;
175 pub const WIN_SPUB_ACTION_NT_ACTIVATE_IMAGE: ::windows_sys::core::GUID = ::windows_sys::core::GUID::from_u128(0x8bc96b00_8da1_11cf_8736_00aa00a485eb);
176 pub const WIN_SPUB_ACTION_PUBLISHED_SOFTWARE: ::windows_sys::core::GUID = ::windows_sys::core::GUID::from_u128(0x64b9d180_8da2_11cf_8736_00aa00a485eb);
177 pub const WIN_SPUB_ACTION_TRUSTED_PUBLISHER: ::windows_sys::core::GUID = ::windows_sys::core::GUID::from_u128(0x66426730_8da1_11cf_8736_00aa00a485eb);
178 pub const WIN_TRUST_SUBJTYPE_CABINET: ::windows_sys::core::GUID = ::windows_sys::core::GUID::from_u128(0xd17c5374_a392_11cf_9df5_00aa00c184e0);
179 pub const WIN_TRUST_SUBJTYPE_CABINETEX: ::windows_sys::core::GUID = ::windows_sys::core::GUID::from_u128(0x6f458114_c2f1_11cf_8a69_00aa006c3706);
180 pub const WIN_TRUST_SUBJTYPE_JAVA_CLASS: ::windows_sys::core::GUID = ::windows_sys::core::GUID::from_u128(0x08ad3990_8da1_11cf_8736_00aa00a485eb);
181 pub const WIN_TRUST_SUBJTYPE_JAVA_CLASSEX: ::windows_sys::core::GUID = ::windows_sys::core::GUID::from_u128(0x6f458113_c2f1_11cf_8a69_00aa006c3706);
182 pub const WIN_TRUST_SUBJTYPE_OLE_STORAGE: ::windows_sys::core::GUID = ::windows_sys::core::GUID::from_u128(0xc257e740_8da0_11cf_8736_00aa00a485eb);
183 pub const WIN_TRUST_SUBJTYPE_PE_IMAGE: ::windows_sys::core::GUID = ::windows_sys::core::GUID::from_u128(0x43c9a1e0_8da0_11cf_8736_00aa00a485eb);
184 pub const WIN_TRUST_SUBJTYPE_PE_IMAGEEX: ::windows_sys::core::GUID = ::windows_sys::core::GUID::from_u128(0x6f458111_c2f1_11cf_8a69_00aa006c3706);
185 pub const WIN_TRUST_SUBJTYPE_RAW_FILE: ::windows_sys::core::GUID = ::windows_sys::core::GUID::from_u128(0x959dc450_8d9e_11cf_8736_00aa00a485eb);
186 pub const WIN_TRUST_SUBJTYPE_RAW_FILEEX: ::windows_sys::core::GUID = ::windows_sys::core::GUID::from_u128(0x6f458110_c2f1_11cf_8a69_00aa006c3706);
187 pub const WSS_CERTTRUST_SUPPORT: u32 = 4u32;
188 pub const WSS_GET_SECONDARY_SIG_COUNT: WINTRUST_SIGNATURE_SETTINGS_FLAGS = 2u32;
189 pub const WSS_INPUT_FLAG_MASK: u32 = 7u32;
190 pub const WSS_OBJTRUST_SUPPORT: u32 = 1u32;
191 pub const WSS_OUTPUT_FLAG_MASK: u32 = 3758096384u32;
192 pub const WSS_OUT_FILE_SUPPORTS_SEAL: u32 = 536870912u32;
193 pub const WSS_OUT_HAS_SEALING_INTENT: u32 = 1073741824u32;
194 pub const WSS_OUT_SEALING_STATUS_VERIFIED: u32 = 2147483648u32;
195 pub const WSS_SIGTRUST_SUPPORT: u32 = 2u32;
196 pub const WSS_VERIFY_SEALING: u32 = 4u32;
197 pub const WSS_VERIFY_SPECIFIC: WINTRUST_SIGNATURE_SETTINGS_FLAGS = 1u32;
198 pub const WTCI_DONT_OPEN_STORES: u32 = 1u32;
199 pub const WTCI_OPEN_ONLY_ROOT: u32 = 2u32;
200 pub const WTCI_USE_LOCAL_MACHINE: u32 = 4u32;
201 pub const WTD_CACHE_ONLY_URL_RETRIEVAL: WINTRUST_DATA_PROVIDER_FLAGS = 4096u32;
202 pub const WTD_CHOICE_BLOB: WINTRUST_DATA_UNION_CHOICE = 3u32;
203 pub const WTD_CHOICE_CATALOG: WINTRUST_DATA_UNION_CHOICE = 2u32;
204 pub const WTD_CHOICE_CERT: WINTRUST_DATA_UNION_CHOICE = 5u32;
205 pub const WTD_CHOICE_FILE: WINTRUST_DATA_UNION_CHOICE = 1u32;
206 pub const WTD_CHOICE_SIGNER: WINTRUST_DATA_UNION_CHOICE = 4u32;
207 pub const WTD_CODE_INTEGRITY_DRIVER_MODE: u32 = 32768u32;
208 pub const WTD_DISABLE_MD2_MD4: WINTRUST_DATA_PROVIDER_FLAGS = 8192u32;
209 pub const WTD_HASH_ONLY_FLAG: WINTRUST_DATA_PROVIDER_FLAGS = 512u32;
210 pub const WTD_LIFETIME_SIGNING_FLAG: WINTRUST_DATA_PROVIDER_FLAGS = 2048u32;
211 pub const WTD_MOTW: WINTRUST_DATA_PROVIDER_FLAGS = 16384u32;
212 pub const WTD_NO_IE4_CHAIN_FLAG: WINTRUST_DATA_PROVIDER_FLAGS = 2u32;
213 pub const WTD_NO_POLICY_USAGE_FLAG: WINTRUST_DATA_PROVIDER_FLAGS = 4u32;
214 pub const WTD_PROV_FLAGS_MASK: u32 = 65535u32;
215 pub const WTD_REVOCATION_CHECK_CHAIN: WINTRUST_DATA_PROVIDER_FLAGS = 64u32;
216 pub const WTD_REVOCATION_CHECK_CHAIN_EXCLUDE_ROOT: WINTRUST_DATA_PROVIDER_FLAGS = 128u32;
217 pub const WTD_REVOCATION_CHECK_END_CERT: WINTRUST_DATA_PROVIDER_FLAGS = 32u32;
218 pub const WTD_REVOCATION_CHECK_NONE: WINTRUST_DATA_PROVIDER_FLAGS = 16u32;
219 pub const WTD_REVOKE_NONE: WINTRUST_DATA_REVOCATION_CHECKS = 0u32;
220 pub const WTD_REVOKE_WHOLECHAIN: WINTRUST_DATA_REVOCATION_CHECKS = 1u32;
221 pub const WTD_SAFER_FLAG: WINTRUST_DATA_PROVIDER_FLAGS = 256u32;
222 pub const WTD_STATEACTION_AUTO_CACHE: WINTRUST_DATA_STATE_ACTION = 3u32;
223 pub const WTD_STATEACTION_AUTO_CACHE_FLUSH: WINTRUST_DATA_STATE_ACTION = 4u32;
224 pub const WTD_STATEACTION_CLOSE: WINTRUST_DATA_STATE_ACTION = 2u32;
225 pub const WTD_STATEACTION_IGNORE: WINTRUST_DATA_STATE_ACTION = 0u32;
226 pub const WTD_STATEACTION_VERIFY: WINTRUST_DATA_STATE_ACTION = 1u32;
227 pub const WTD_UICONTEXT_EXECUTE: WINTRUST_DATA_UICONTEXT = 0u32;
228 pub const WTD_UICONTEXT_INSTALL: WINTRUST_DATA_UICONTEXT = 1u32;
229 pub const WTD_UI_ALL: WINTRUST_DATA_UICHOICE = 1u32;
230 pub const WTD_UI_NOBAD: WINTRUST_DATA_UICHOICE = 3u32;
231 pub const WTD_UI_NOGOOD: WINTRUST_DATA_UICHOICE = 4u32;
232 pub const WTD_UI_NONE: WINTRUST_DATA_UICHOICE = 2u32;
233 pub const WTD_USE_DEFAULT_OSVER_CHECK: WINTRUST_DATA_PROVIDER_FLAGS = 1024u32;
234 pub const WTD_USE_IE4_TRUST_FLAG: WINTRUST_DATA_PROVIDER_FLAGS = 1u32;
235 pub const WTPF_ALLOWONLYPERTRUST: WINTRUST_POLICY_FLAGS = 262144u32;
236 pub const WTPF_IGNOREEXPIRATION: WINTRUST_POLICY_FLAGS = 256u32;
237 pub const WTPF_IGNOREREVOCATIONONTS: WINTRUST_POLICY_FLAGS = 131072u32;
238 pub const WTPF_IGNOREREVOKATION: WINTRUST_POLICY_FLAGS = 512u32;
239 pub const WTPF_OFFLINEOKNBU_COM: WINTRUST_POLICY_FLAGS = 8192u32;
240 pub const WTPF_OFFLINEOKNBU_IND: WINTRUST_POLICY_FLAGS = 4096u32;
241 pub const WTPF_OFFLINEOK_COM: WINTRUST_POLICY_FLAGS = 2048u32;
242 pub const WTPF_OFFLINEOK_IND: WINTRUST_POLICY_FLAGS = 1024u32;
243 pub const WTPF_TESTCANBEVALID: WINTRUST_POLICY_FLAGS = 128u32;
244 pub const WTPF_TRUSTTEST: WINTRUST_POLICY_FLAGS = 32u32;
245 pub const WTPF_VERIFY_V1_OFF: WINTRUST_POLICY_FLAGS = 65536u32;
246 pub const WT_ADD_ACTION_ID_RET_RESULT_FLAG: u32 = 1u32;
247 pub const WT_CURRENT_VERSION: u32 = 512u32;
248 pub const WT_PROVIDER_CERTTRUST_FUNCTION: ::windows_sys::core::PCWSTR = ::windows_sys::core::w!("WintrustCertificateTrust");
249 pub const WT_PROVIDER_DLL_NAME: ::windows_sys::core::PCWSTR = ::windows_sys::core::w!("WINTRUST.DLL");
250 pub const WT_TRUSTDBDIALOG_NO_UI_FLAG: u32 = 1u32;
251 pub const WT_TRUSTDBDIALOG_ONLY_PUB_TAB_FLAG: u32 = 2u32;
252 pub const WT_TRUSTDBDIALOG_WRITE_IEAK_STORE_FLAG: u32 = 512u32;
253 pub const WT_TRUSTDBDIALOG_WRITE_LEGACY_REG_FLAG: u32 = 256u32;
254 pub const szOID_ENHANCED_HASH: ::windows_sys::core::PCSTR = ::windows_sys::core::s!("1.3.6.1.4.1.311.2.5.1");
255 pub const szOID_INTENT_TO_SEAL: ::windows_sys::core::PCSTR = ::windows_sys::core::s!("1.3.6.1.4.1.311.2.4.2");
256 pub const szOID_NESTED_SIGNATURE: ::windows_sys::core::PCSTR = ::windows_sys::core::s!("1.3.6.1.4.1.311.2.4.1");
257 pub const szOID_PKCS_9_SEQUENCE_NUMBER: ::windows_sys::core::PCSTR = ::windows_sys::core::s!("1.2.840.113549.1.9.25.4");
258 pub const szOID_SEALING_SIGNATURE: ::windows_sys::core::PCSTR = ::windows_sys::core::s!("1.3.6.1.4.1.311.2.4.3");
259 pub const szOID_SEALING_TIMESTAMP: ::windows_sys::core::PCSTR = ::windows_sys::core::s!("1.3.6.1.4.1.311.2.4.4");
260 pub const szOID_TRUSTED_CLIENT_AUTH_CA_LIST: ::windows_sys::core::PCSTR = ::windows_sys::core::s!("1.3.6.1.4.1.311.2.2.2");
261 pub const szOID_TRUSTED_CODESIGNING_CA_LIST: ::windows_sys::core::PCSTR = ::windows_sys::core::s!("1.3.6.1.4.1.311.2.2.1");
262 pub const szOID_TRUSTED_SERVER_AUTH_CA_LIST: ::windows_sys::core::PCSTR = ::windows_sys::core::s!("1.3.6.1.4.1.311.2.2.3");
263 pub type WINTRUST_DATA_PROVIDER_FLAGS = u32;
264 pub type WINTRUST_DATA_REVOCATION_CHECKS = u32;
265 pub type WINTRUST_DATA_STATE_ACTION = u32;
266 pub type WINTRUST_DATA_UICHOICE = u32;
267 pub type WINTRUST_DATA_UICONTEXT = u32;
268 pub type WINTRUST_DATA_UNION_CHOICE = u32;
269 pub type WINTRUST_GET_DEFAULT_FOR_USAGE_ACTION = u32;
270 pub type WINTRUST_POLICY_FLAGS = u32;
271 pub type WINTRUST_SIGNATURE_SETTINGS_FLAGS = u32;
272 #[repr(C)]
273 pub struct CAT_MEMBERINFO {
274 pub pwszSubjGuid: ::windows_sys::core::PWSTR,
275 pub dwCertVersion: u32,
276 }
277 impl ::core::marker::Copy for CAT_MEMBERINFO {}
278 impl ::core::clone::Clone for CAT_MEMBERINFO {
279 fn clone(&self) -> Self {
280 *self
281 }
282 }
283 #[repr(C)]
284 pub struct CAT_MEMBERINFO2 {
285 pub SubjectGuid: ::windows_sys::core::GUID,
286 pub dwCertVersion: u32,
287 }
288 impl ::core::marker::Copy for CAT_MEMBERINFO2 {}
289 impl ::core::clone::Clone for CAT_MEMBERINFO2 {
290 fn clone(&self) -> Self {
291 *self
292 }
293 }
294 #[repr(C)]
295 #[doc = "Required features: `\"Win32_Security_Cryptography\"`"]
296 #[cfg(feature = "Win32_Security_Cryptography")]
297 pub struct CAT_NAMEVALUE {
298 pub pwszTag: ::windows_sys::core::PWSTR,
299 pub fdwFlags: u32,
300 pub Value: super::Cryptography::CRYPT_INTEGER_BLOB,
301 }
302 #[cfg(feature = "Win32_Security_Cryptography")]
303 impl ::core::marker::Copy for CAT_NAMEVALUE {}
304 #[cfg(feature = "Win32_Security_Cryptography")]
305 impl ::core::clone::Clone for CAT_NAMEVALUE {
306 fn clone(&self) -> Self {
307 *self
308 }
309 }
310 #[repr(C)]
311 #[doc = "Required features: `\"Win32_Foundation\"`, `\"Win32_Security_Cryptography\"`"]
312 #[cfg(all(feature = "Win32_Foundation", feature = "Win32_Security_Cryptography"))]
313 pub struct CONFIG_CI_PROV_INFO {
314 pub cbSize: u32,
315 pub dwPolicies: u32,
316 pub pPolicies: *mut super::Cryptography::CRYPT_INTEGER_BLOB,
317 pub result: CONFIG_CI_PROV_INFO_RESULT,
318 pub dwScenario: u32,
319 }
320 #[cfg(all(feature = "Win32_Foundation", feature = "Win32_Security_Cryptography"))]
321 impl ::core::marker::Copy for CONFIG_CI_PROV_INFO {}
322 #[cfg(all(feature = "Win32_Foundation", feature = "Win32_Security_Cryptography"))]
323 impl ::core::clone::Clone for CONFIG_CI_PROV_INFO {
324 fn clone(&self) -> Self {
325 *self
326 }
327 }
328 #[repr(C)]
329 #[doc = "Required features: `\"Win32_Foundation\"`"]
330 #[cfg(feature = "Win32_Foundation")]
331 pub struct CONFIG_CI_PROV_INFO_RESULT {
332 pub hr: ::windows_sys::core::HRESULT,
333 pub dwResult: u32,
334 pub dwPolicyIndex: u32,
335 pub fIsExplicitDeny: super::super::Foundation::BOOLEAN,
336 }
337 #[cfg(feature = "Win32_Foundation")]
338 impl ::core::marker::Copy for CONFIG_CI_PROV_INFO_RESULT {}
339 #[cfg(feature = "Win32_Foundation")]
340 impl ::core::clone::Clone for CONFIG_CI_PROV_INFO_RESULT {
341 fn clone(&self) -> Self {
342 *self
343 }
344 }
345 #[repr(C)]
346 #[doc = "Required features: `\"Win32_Foundation\"`, `\"Win32_Security_Cryptography\"`"]
347 #[cfg(all(feature = "Win32_Foundation", feature = "Win32_Security_Cryptography"))]
348 pub struct CRYPT_PROVIDER_CERT {
349 pub cbStruct: u32,
350 pub pCert: *const super::Cryptography::CERT_CONTEXT,
351 pub fCommercial: super::super::Foundation::BOOL,
352 pub fTrustedRoot: super::super::Foundation::BOOL,
353 pub fSelfSigned: super::super::Foundation::BOOL,
354 pub fTestCert: super::super::Foundation::BOOL,
355 pub dwRevokedReason: u32,
356 pub dwConfidence: u32,
357 pub dwError: u32,
358 pub pTrustListContext: *mut super::Cryptography::CTL_CONTEXT,
359 pub fTrustListSignerCert: super::super::Foundation::BOOL,
360 pub pCtlContext: *mut super::Cryptography::CTL_CONTEXT,
361 pub dwCtlError: u32,
362 pub fIsCyclic: super::super::Foundation::BOOL,
363 pub pChainElement: *mut super::Cryptography::CERT_CHAIN_ELEMENT,
364 }
365 #[cfg(all(feature = "Win32_Foundation", feature = "Win32_Security_Cryptography"))]
366 impl ::core::marker::Copy for CRYPT_PROVIDER_CERT {}
367 #[cfg(all(feature = "Win32_Foundation", feature = "Win32_Security_Cryptography"))]
368 impl ::core::clone::Clone for CRYPT_PROVIDER_CERT {
369 fn clone(&self) -> Self {
370 *self
371 }
372 }
373 #[repr(C)]
374 #[doc = "Required features: `\"Win32_Foundation\"`, `\"Win32_Security_Cryptography_Catalog\"`, `\"Win32_Security_Cryptography_Sip\"`"]
375 #[cfg(all(feature = "Win32_Foundation", feature = "Win32_Security_Cryptography_Catalog", feature = "Win32_Security_Cryptography_Sip"))]
376 pub struct CRYPT_PROVIDER_DATA {
377 pub cbStruct: u32,
378 pub pWintrustData: *mut WINTRUST_DATA,
379 pub fOpenedFile: super::super::Foundation::BOOL,
380 pub hWndParent: super::super::Foundation::HWND,
381 pub pgActionID: *mut ::windows_sys::core::GUID,
382 pub hProv: usize,
383 pub dwError: u32,
384 pub dwRegSecuritySettings: u32,
385 pub dwRegPolicySettings: u32,
386 pub psPfns: *mut CRYPT_PROVIDER_FUNCTIONS,
387 pub cdwTrustStepErrors: u32,
388 pub padwTrustStepErrors: *mut u32,
389 pub chStores: u32,
390 pub pahStores: *mut super::Cryptography::HCERTSTORE,
391 pub dwEncoding: u32,
392 pub hMsg: *mut ::core::ffi::c_void,
393 pub csSigners: u32,
394 pub pasSigners: *mut CRYPT_PROVIDER_SGNR,
395 pub csProvPrivData: u32,
396 pub pasProvPrivData: *mut CRYPT_PROVIDER_PRIVDATA,
397 pub dwSubjectChoice: u32,
398 pub Anonymous: CRYPT_PROVIDER_DATA_0,
399 pub pszUsageOID: ::windows_sys::core::PSTR,
400 pub fRecallWithState: super::super::Foundation::BOOL,
401 pub sftSystemTime: super::super::Foundation::FILETIME,
402 pub pszCTLSignerUsageOID: ::windows_sys::core::PSTR,
403 pub dwProvFlags: u32,
404 pub dwFinalError: u32,
405 pub pRequestUsage: *mut super::Cryptography::CERT_USAGE_MATCH,
406 pub dwTrustPubSettings: u32,
407 pub dwUIStateFlags: u32,
408 pub pSigState: *mut CRYPT_PROVIDER_SIGSTATE,
409 pub pSigSettings: *mut WINTRUST_SIGNATURE_SETTINGS,
410 }
411 #[cfg(all(feature = "Win32_Foundation", feature = "Win32_Security_Cryptography_Catalog", feature = "Win32_Security_Cryptography_Sip"))]
412 impl ::core::marker::Copy for CRYPT_PROVIDER_DATA {}
413 #[cfg(all(feature = "Win32_Foundation", feature = "Win32_Security_Cryptography_Catalog", feature = "Win32_Security_Cryptography_Sip"))]
414 impl ::core::clone::Clone for CRYPT_PROVIDER_DATA {
415 fn clone(&self) -> Self {
416 *self
417 }
418 }
419 #[repr(C)]
420 #[doc = "Required features: `\"Win32_Foundation\"`, `\"Win32_Security_Cryptography_Catalog\"`, `\"Win32_Security_Cryptography_Sip\"`"]
421 #[cfg(all(feature = "Win32_Foundation", feature = "Win32_Security_Cryptography_Catalog", feature = "Win32_Security_Cryptography_Sip"))]
422 pub union CRYPT_PROVIDER_DATA_0 {
423 pub pPDSip: *mut PROVDATA_SIP,
424 }
425 #[cfg(all(feature = "Win32_Foundation", feature = "Win32_Security_Cryptography_Catalog", feature = "Win32_Security_Cryptography_Sip"))]
426 impl ::core::marker::Copy for CRYPT_PROVIDER_DATA_0 {}
427 #[cfg(all(feature = "Win32_Foundation", feature = "Win32_Security_Cryptography_Catalog", feature = "Win32_Security_Cryptography_Sip"))]
428 impl ::core::clone::Clone for CRYPT_PROVIDER_DATA_0 {
429 fn clone(&self) -> Self {
430 *self
431 }
432 }
433 #[repr(C)]
434 pub struct CRYPT_PROVIDER_DEFUSAGE {
435 pub cbStruct: u32,
436 pub gActionID: ::windows_sys::core::GUID,
437 pub pDefPolicyCallbackData: *mut ::core::ffi::c_void,
438 pub pDefSIPClientData: *mut ::core::ffi::c_void,
439 }
440 impl ::core::marker::Copy for CRYPT_PROVIDER_DEFUSAGE {}
441 impl ::core::clone::Clone for CRYPT_PROVIDER_DEFUSAGE {
442 fn clone(&self) -> Self {
443 *self
444 }
445 }
446 #[repr(C)]
447 #[doc = "Required features: `\"Win32_Foundation\"`, `\"Win32_Security_Cryptography_Catalog\"`, `\"Win32_Security_Cryptography_Sip\"`"]
448 #[cfg(all(feature = "Win32_Foundation", feature = "Win32_Security_Cryptography_Catalog", feature = "Win32_Security_Cryptography_Sip"))]
449 pub struct CRYPT_PROVIDER_FUNCTIONS {
450 pub cbStruct: u32,
451 pub pfnAlloc: PFN_CPD_MEM_ALLOC,
452 pub pfnFree: PFN_CPD_MEM_FREE,
453 pub pfnAddStore2Chain: PFN_CPD_ADD_STORE,
454 pub pfnAddSgnr2Chain: PFN_CPD_ADD_SGNR,
455 pub pfnAddCert2Chain: PFN_CPD_ADD_CERT,
456 pub pfnAddPrivData2Chain: PFN_CPD_ADD_PRIVDATA,
457 pub pfnInitialize: PFN_PROVIDER_INIT_CALL,
458 pub pfnObjectTrust: PFN_PROVIDER_OBJTRUST_CALL,
459 pub pfnSignatureTrust: PFN_PROVIDER_SIGTRUST_CALL,
460 pub pfnCertificateTrust: PFN_PROVIDER_CERTTRUST_CALL,
461 pub pfnFinalPolicy: PFN_PROVIDER_FINALPOLICY_CALL,
462 pub pfnCertCheckPolicy: PFN_PROVIDER_CERTCHKPOLICY_CALL,
463 pub pfnTestFinalPolicy: PFN_PROVIDER_TESTFINALPOLICY_CALL,
464 pub psUIpfns: *mut CRYPT_PROVUI_FUNCS,
465 pub pfnCleanupPolicy: PFN_PROVIDER_CLEANUP_CALL,
466 }
467 #[cfg(all(feature = "Win32_Foundation", feature = "Win32_Security_Cryptography_Catalog", feature = "Win32_Security_Cryptography_Sip"))]
468 impl ::core::marker::Copy for CRYPT_PROVIDER_FUNCTIONS {}
469 #[cfg(all(feature = "Win32_Foundation", feature = "Win32_Security_Cryptography_Catalog", feature = "Win32_Security_Cryptography_Sip"))]
470 impl ::core::clone::Clone for CRYPT_PROVIDER_FUNCTIONS {
471 fn clone(&self) -> Self {
472 *self
473 }
474 }
475 #[repr(C)]
476 pub struct CRYPT_PROVIDER_PRIVDATA {
477 pub cbStruct: u32,
478 pub gProviderID: ::windows_sys::core::GUID,
479 pub cbProvData: u32,
480 pub pvProvData: *mut ::core::ffi::c_void,
481 }
482 impl ::core::marker::Copy for CRYPT_PROVIDER_PRIVDATA {}
483 impl ::core::clone::Clone for CRYPT_PROVIDER_PRIVDATA {
484 fn clone(&self) -> Self {
485 *self
486 }
487 }
488 #[repr(C)]
489 pub struct CRYPT_PROVIDER_REGDEFUSAGE {
490 pub cbStruct: u32,
491 pub pgActionID: *mut ::windows_sys::core::GUID,
492 pub pwszDllName: ::windows_sys::core::PWSTR,
493 pub pwszLoadCallbackDataFunctionName: ::windows_sys::core::PSTR,
494 pub pwszFreeCallbackDataFunctionName: ::windows_sys::core::PSTR,
495 }
496 impl ::core::marker::Copy for CRYPT_PROVIDER_REGDEFUSAGE {}
497 impl ::core::clone::Clone for CRYPT_PROVIDER_REGDEFUSAGE {
498 fn clone(&self) -> Self {
499 *self
500 }
501 }
502 #[repr(C)]
503 #[doc = "Required features: `\"Win32_Foundation\"`, `\"Win32_Security_Cryptography\"`"]
504 #[cfg(all(feature = "Win32_Foundation", feature = "Win32_Security_Cryptography"))]
505 pub struct CRYPT_PROVIDER_SGNR {
506 pub cbStruct: u32,
507 pub sftVerifyAsOf: super::super::Foundation::FILETIME,
508 pub csCertChain: u32,
509 pub pasCertChain: *mut CRYPT_PROVIDER_CERT,
510 pub dwSignerType: u32,
511 pub psSigner: *mut super::Cryptography::CMSG_SIGNER_INFO,
512 pub dwError: u32,
513 pub csCounterSigners: u32,
514 pub pasCounterSigners: *mut CRYPT_PROVIDER_SGNR,
515 pub pChainContext: *mut super::Cryptography::CERT_CHAIN_CONTEXT,
516 }
517 #[cfg(all(feature = "Win32_Foundation", feature = "Win32_Security_Cryptography"))]
518 impl ::core::marker::Copy for CRYPT_PROVIDER_SGNR {}
519 #[cfg(all(feature = "Win32_Foundation", feature = "Win32_Security_Cryptography"))]
520 impl ::core::clone::Clone for CRYPT_PROVIDER_SGNR {
521 fn clone(&self) -> Self {
522 *self
523 }
524 }
525 #[repr(C)]
526 #[doc = "Required features: `\"Win32_Foundation\"`, `\"Win32_Security_Cryptography\"`"]
527 #[cfg(all(feature = "Win32_Foundation", feature = "Win32_Security_Cryptography"))]
528 pub struct CRYPT_PROVIDER_SIGSTATE {
529 pub cbStruct: u32,
530 pub rhSecondarySigs: *mut *mut ::core::ffi::c_void,
531 pub hPrimarySig: *mut ::core::ffi::c_void,
532 pub fFirstAttemptMade: super::super::Foundation::BOOL,
533 pub fNoMoreSigs: super::super::Foundation::BOOL,
534 pub cSecondarySigs: u32,
535 pub dwCurrentIndex: u32,
536 pub fSupportMultiSig: super::super::Foundation::BOOL,
537 pub dwCryptoPolicySupport: u32,
538 pub iAttemptCount: u32,
539 pub fCheckedSealing: super::super::Foundation::BOOL,
540 pub pSealingSignature: *mut SEALING_SIGNATURE_ATTRIBUTE,
541 }
542 #[cfg(all(feature = "Win32_Foundation", feature = "Win32_Security_Cryptography"))]
543 impl ::core::marker::Copy for CRYPT_PROVIDER_SIGSTATE {}
544 #[cfg(all(feature = "Win32_Foundation", feature = "Win32_Security_Cryptography"))]
545 impl ::core::clone::Clone for CRYPT_PROVIDER_SIGSTATE {
546 fn clone(&self) -> Self {
547 *self
548 }
549 }
550 #[repr(C)]
551 pub struct CRYPT_PROVUI_DATA {
552 pub cbStruct: u32,
553 pub dwFinalError: u32,
554 pub pYesButtonText: ::windows_sys::core::PWSTR,
555 pub pNoButtonText: ::windows_sys::core::PWSTR,
556 pub pMoreInfoButtonText: ::windows_sys::core::PWSTR,
557 pub pAdvancedLinkText: ::windows_sys::core::PWSTR,
558 pub pCopyActionText: ::windows_sys::core::PWSTR,
559 pub pCopyActionTextNoTS: ::windows_sys::core::PWSTR,
560 pub pCopyActionTextNotSigned: ::windows_sys::core::PWSTR,
561 }
562 impl ::core::marker::Copy for CRYPT_PROVUI_DATA {}
563 impl ::core::clone::Clone for CRYPT_PROVUI_DATA {
564 fn clone(&self) -> Self {
565 *self
566 }
567 }
568 #[repr(C)]
569 #[doc = "Required features: `\"Win32_Foundation\"`, `\"Win32_Security_Cryptography_Catalog\"`, `\"Win32_Security_Cryptography_Sip\"`"]
570 #[cfg(all(feature = "Win32_Foundation", feature = "Win32_Security_Cryptography_Catalog", feature = "Win32_Security_Cryptography_Sip"))]
571 pub struct CRYPT_PROVUI_FUNCS {
572 pub cbStruct: u32,
573 pub psUIData: *mut CRYPT_PROVUI_DATA,
574 pub pfnOnMoreInfoClick: PFN_PROVUI_CALL,
575 pub pfnOnMoreInfoClickDefault: PFN_PROVUI_CALL,
576 pub pfnOnAdvancedClick: PFN_PROVUI_CALL,
577 pub pfnOnAdvancedClickDefault: PFN_PROVUI_CALL,
578 }
579 #[cfg(all(feature = "Win32_Foundation", feature = "Win32_Security_Cryptography_Catalog", feature = "Win32_Security_Cryptography_Sip"))]
580 impl ::core::marker::Copy for CRYPT_PROVUI_FUNCS {}
581 #[cfg(all(feature = "Win32_Foundation", feature = "Win32_Security_Cryptography_Catalog", feature = "Win32_Security_Cryptography_Sip"))]
582 impl ::core::clone::Clone for CRYPT_PROVUI_FUNCS {
583 fn clone(&self) -> Self {
584 *self
585 }
586 }
587 #[repr(C)]
588 pub struct CRYPT_REGISTER_ACTIONID {
589 pub cbStruct: u32,
590 pub sInitProvider: CRYPT_TRUST_REG_ENTRY,
591 pub sObjectProvider: CRYPT_TRUST_REG_ENTRY,
592 pub sSignatureProvider: CRYPT_TRUST_REG_ENTRY,
593 pub sCertificateProvider: CRYPT_TRUST_REG_ENTRY,
594 pub sCertificatePolicyProvider: CRYPT_TRUST_REG_ENTRY,
595 pub sFinalPolicyProvider: CRYPT_TRUST_REG_ENTRY,
596 pub sTestPolicyProvider: CRYPT_TRUST_REG_ENTRY,
597 pub sCleanupProvider: CRYPT_TRUST_REG_ENTRY,
598 }
599 impl ::core::marker::Copy for CRYPT_REGISTER_ACTIONID {}
600 impl ::core::clone::Clone for CRYPT_REGISTER_ACTIONID {
601 fn clone(&self) -> Self {
602 *self
603 }
604 }
605 #[repr(C)]
606 pub struct CRYPT_TRUST_REG_ENTRY {
607 pub cbStruct: u32,
608 pub pwszDLLName: ::windows_sys::core::PWSTR,
609 pub pwszFunctionName: ::windows_sys::core::PWSTR,
610 }
611 impl ::core::marker::Copy for CRYPT_TRUST_REG_ENTRY {}
612 impl ::core::clone::Clone for CRYPT_TRUST_REG_ENTRY {
613 fn clone(&self) -> Self {
614 *self
615 }
616 }
617 #[repr(C)]
618 #[doc = "Required features: `\"Win32_Foundation\"`, `\"Win32_Security_Cryptography\"`"]
619 #[cfg(all(feature = "Win32_Foundation", feature = "Win32_Security_Cryptography"))]
620 pub struct DRIVER_VER_INFO {
621 pub cbStruct: u32,
622 pub dwReserved1: usize,
623 pub dwReserved2: usize,
624 pub dwPlatform: u32,
625 pub dwVersion: u32,
626 pub wszVersion: [u16; 260],
627 pub wszSignedBy: [u16; 260],
628 pub pcSignerCertContext: *const super::Cryptography::CERT_CONTEXT,
629 pub sOSVersionLow: DRIVER_VER_MAJORMINOR,
630 pub sOSVersionHigh: DRIVER_VER_MAJORMINOR,
631 pub dwBuildNumberLow: u32,
632 pub dwBuildNumberHigh: u32,
633 }
634 #[cfg(all(feature = "Win32_Foundation", feature = "Win32_Security_Cryptography"))]
635 impl ::core::marker::Copy for DRIVER_VER_INFO {}
636 #[cfg(all(feature = "Win32_Foundation", feature = "Win32_Security_Cryptography"))]
637 impl ::core::clone::Clone for DRIVER_VER_INFO {
638 fn clone(&self) -> Self {
639 *self
640 }
641 }
642 #[repr(C)]
643 pub struct DRIVER_VER_MAJORMINOR {
644 pub dwMajor: u32,
645 pub dwMinor: u32,
646 }
647 impl ::core::marker::Copy for DRIVER_VER_MAJORMINOR {}
648 impl ::core::clone::Clone for DRIVER_VER_MAJORMINOR {
649 fn clone(&self) -> Self {
650 *self
651 }
652 }
653 #[repr(C)]
654 #[doc = "Required features: `\"Win32_Foundation\"`"]
655 #[cfg(feature = "Win32_Foundation")]
656 pub struct INTENT_TO_SEAL_ATTRIBUTE {
657 pub version: u32,
658 pub seal: super::super::Foundation::BOOLEAN,
659 }
660 #[cfg(feature = "Win32_Foundation")]
661 impl ::core::marker::Copy for INTENT_TO_SEAL_ATTRIBUTE {}
662 #[cfg(feature = "Win32_Foundation")]
663 impl ::core::clone::Clone for INTENT_TO_SEAL_ATTRIBUTE {
664 fn clone(&self) -> Self {
665 *self
666 }
667 }
668 #[repr(C)]
669 #[doc = "Required features: `\"Win32_Foundation\"`, `\"Win32_Security_Cryptography_Catalog\"`, `\"Win32_Security_Cryptography_Sip\"`"]
670 #[cfg(all(feature = "Win32_Foundation", feature = "Win32_Security_Cryptography_Catalog", feature = "Win32_Security_Cryptography_Sip"))]
671 pub struct PROVDATA_SIP {
672 pub cbStruct: u32,
673 pub gSubject: ::windows_sys::core::GUID,
674 pub pSip: *mut super::Cryptography::Sip::SIP_DISPATCH_INFO,
675 pub pCATSip: *mut super::Cryptography::Sip::SIP_DISPATCH_INFO,
676 pub psSipSubjectInfo: *mut super::Cryptography::Sip::SIP_SUBJECTINFO,
677 pub psSipCATSubjectInfo: *mut super::Cryptography::Sip::SIP_SUBJECTINFO,
678 pub psIndirectData: *mut super::Cryptography::Sip::SIP_INDIRECT_DATA,
679 }
680 #[cfg(all(feature = "Win32_Foundation", feature = "Win32_Security_Cryptography_Catalog", feature = "Win32_Security_Cryptography_Sip"))]
681 impl ::core::marker::Copy for PROVDATA_SIP {}
682 #[cfg(all(feature = "Win32_Foundation", feature = "Win32_Security_Cryptography_Catalog", feature = "Win32_Security_Cryptography_Sip"))]
683 impl ::core::clone::Clone for PROVDATA_SIP {
684 fn clone(&self) -> Self {
685 *self
686 }
687 }
688 #[repr(C)]
689 #[doc = "Required features: `\"Win32_Security_Cryptography\"`"]
690 #[cfg(feature = "Win32_Security_Cryptography")]
691 pub struct SEALING_SIGNATURE_ATTRIBUTE {
692 pub version: u32,
693 pub signerIndex: u32,
694 pub signatureAlgorithm: super::Cryptography::CRYPT_ALGORITHM_IDENTIFIER,
695 pub encryptedDigest: super::Cryptography::CRYPT_INTEGER_BLOB,
696 }
697 #[cfg(feature = "Win32_Security_Cryptography")]
698 impl ::core::marker::Copy for SEALING_SIGNATURE_ATTRIBUTE {}
699 #[cfg(feature = "Win32_Security_Cryptography")]
700 impl ::core::clone::Clone for SEALING_SIGNATURE_ATTRIBUTE {
701 fn clone(&self) -> Self {
702 *self
703 }
704 }
705 #[repr(C)]
706 #[doc = "Required features: `\"Win32_Security_Cryptography\"`"]
707 #[cfg(feature = "Win32_Security_Cryptography")]
708 pub struct SEALING_TIMESTAMP_ATTRIBUTE {
709 pub version: u32,
710 pub signerIndex: u32,
711 pub sealTimeStampToken: super::Cryptography::CRYPT_INTEGER_BLOB,
712 }
713 #[cfg(feature = "Win32_Security_Cryptography")]
714 impl ::core::marker::Copy for SEALING_TIMESTAMP_ATTRIBUTE {}
715 #[cfg(feature = "Win32_Security_Cryptography")]
716 impl ::core::clone::Clone for SEALING_TIMESTAMP_ATTRIBUTE {
717 fn clone(&self) -> Self {
718 *self
719 }
720 }
721 #[repr(C)]
722 #[doc = "Required features: `\"Win32_Foundation\"`"]
723 #[cfg(feature = "Win32_Foundation")]
724 pub struct SPC_FINANCIAL_CRITERIA {
725 pub fFinancialInfoAvailable: super::super::Foundation::BOOL,
726 pub fMeetsCriteria: super::super::Foundation::BOOL,
727 }
728 #[cfg(feature = "Win32_Foundation")]
729 impl ::core::marker::Copy for SPC_FINANCIAL_CRITERIA {}
730 #[cfg(feature = "Win32_Foundation")]
731 impl ::core::clone::Clone for SPC_FINANCIAL_CRITERIA {
732 fn clone(&self) -> Self {
733 *self
734 }
735 }
736 #[repr(C)]
737 #[doc = "Required features: `\"Win32_Security_Cryptography\"`"]
738 #[cfg(feature = "Win32_Security_Cryptography")]
739 pub struct SPC_IMAGE {
740 pub pImageLink: *mut SPC_LINK,
741 pub Bitmap: super::Cryptography::CRYPT_INTEGER_BLOB,
742 pub Metafile: super::Cryptography::CRYPT_INTEGER_BLOB,
743 pub EnhancedMetafile: super::Cryptography::CRYPT_INTEGER_BLOB,
744 pub GifFile: super::Cryptography::CRYPT_INTEGER_BLOB,
745 }
746 #[cfg(feature = "Win32_Security_Cryptography")]
747 impl ::core::marker::Copy for SPC_IMAGE {}
748 #[cfg(feature = "Win32_Security_Cryptography")]
749 impl ::core::clone::Clone for SPC_IMAGE {
750 fn clone(&self) -> Self {
751 *self
752 }
753 }
754 #[repr(C)]
755 #[doc = "Required features: `\"Win32_Security_Cryptography\"`"]
756 #[cfg(feature = "Win32_Security_Cryptography")]
757 pub struct SPC_INDIRECT_DATA_CONTENT {
758 pub Data: super::Cryptography::CRYPT_ATTRIBUTE_TYPE_VALUE,
759 pub DigestAlgorithm: super::Cryptography::CRYPT_ALGORITHM_IDENTIFIER,
760 pub Digest: super::Cryptography::CRYPT_INTEGER_BLOB,
761 }
762 #[cfg(feature = "Win32_Security_Cryptography")]
763 impl ::core::marker::Copy for SPC_INDIRECT_DATA_CONTENT {}
764 #[cfg(feature = "Win32_Security_Cryptography")]
765 impl ::core::clone::Clone for SPC_INDIRECT_DATA_CONTENT {
766 fn clone(&self) -> Self {
767 *self
768 }
769 }
770 #[repr(C)]
771 #[doc = "Required features: `\"Win32_Security_Cryptography\"`"]
772 #[cfg(feature = "Win32_Security_Cryptography")]
773 pub struct SPC_LINK {
774 pub dwLinkChoice: u32,
775 pub Anonymous: SPC_LINK_0,
776 }
777 #[cfg(feature = "Win32_Security_Cryptography")]
778 impl ::core::marker::Copy for SPC_LINK {}
779 #[cfg(feature = "Win32_Security_Cryptography")]
780 impl ::core::clone::Clone for SPC_LINK {
781 fn clone(&self) -> Self {
782 *self
783 }
784 }
785 #[repr(C)]
786 #[doc = "Required features: `\"Win32_Security_Cryptography\"`"]
787 #[cfg(feature = "Win32_Security_Cryptography")]
788 pub union SPC_LINK_0 {
789 pub pwszUrl: ::windows_sys::core::PWSTR,
790 pub Moniker: SPC_SERIALIZED_OBJECT,
791 pub pwszFile: ::windows_sys::core::PWSTR,
792 }
793 #[cfg(feature = "Win32_Security_Cryptography")]
794 impl ::core::marker::Copy for SPC_LINK_0 {}
795 #[cfg(feature = "Win32_Security_Cryptography")]
796 impl ::core::clone::Clone for SPC_LINK_0 {
797 fn clone(&self) -> Self {
798 *self
799 }
800 }
801 #[repr(C)]
802 #[doc = "Required features: `\"Win32_Security_Cryptography\"`"]
803 #[cfg(feature = "Win32_Security_Cryptography")]
804 pub struct SPC_PE_IMAGE_DATA {
805 pub Flags: super::Cryptography::CRYPT_BIT_BLOB,
806 pub pFile: *mut SPC_LINK,
807 }
808 #[cfg(feature = "Win32_Security_Cryptography")]
809 impl ::core::marker::Copy for SPC_PE_IMAGE_DATA {}
810 #[cfg(feature = "Win32_Security_Cryptography")]
811 impl ::core::clone::Clone for SPC_PE_IMAGE_DATA {
812 fn clone(&self) -> Self {
813 *self
814 }
815 }
816 #[repr(C)]
817 #[doc = "Required features: `\"Win32_Security_Cryptography\"`"]
818 #[cfg(feature = "Win32_Security_Cryptography")]
819 pub struct SPC_SERIALIZED_OBJECT {
820 pub ClassId: [u8; 16],
821 pub SerializedData: super::Cryptography::CRYPT_INTEGER_BLOB,
822 }
823 #[cfg(feature = "Win32_Security_Cryptography")]
824 impl ::core::marker::Copy for SPC_SERIALIZED_OBJECT {}
825 #[cfg(feature = "Win32_Security_Cryptography")]
826 impl ::core::clone::Clone for SPC_SERIALIZED_OBJECT {
827 fn clone(&self) -> Self {
828 *self
829 }
830 }
831 #[repr(C)]
832 pub struct SPC_SIGINFO {
833 pub dwSipVersion: u32,
834 pub gSIPGuid: ::windows_sys::core::GUID,
835 pub dwReserved1: u32,
836 pub dwReserved2: u32,
837 pub dwReserved3: u32,
838 pub dwReserved4: u32,
839 pub dwReserved5: u32,
840 }
841 impl ::core::marker::Copy for SPC_SIGINFO {}
842 impl ::core::clone::Clone for SPC_SIGINFO {
843 fn clone(&self) -> Self {
844 *self
845 }
846 }
847 #[repr(C)]
848 #[doc = "Required features: `\"Win32_Security_Cryptography\"`"]
849 #[cfg(feature = "Win32_Security_Cryptography")]
850 pub struct SPC_SP_AGENCY_INFO {
851 pub pPolicyInformation: *mut SPC_LINK,
852 pub pwszPolicyDisplayText: ::windows_sys::core::PWSTR,
853 pub pLogoImage: *mut SPC_IMAGE,
854 pub pLogoLink: *mut SPC_LINK,
855 }
856 #[cfg(feature = "Win32_Security_Cryptography")]
857 impl ::core::marker::Copy for SPC_SP_AGENCY_INFO {}
858 #[cfg(feature = "Win32_Security_Cryptography")]
859 impl ::core::clone::Clone for SPC_SP_AGENCY_INFO {
860 fn clone(&self) -> Self {
861 *self
862 }
863 }
864 #[repr(C)]
865 #[doc = "Required features: `\"Win32_Security_Cryptography\"`"]
866 #[cfg(feature = "Win32_Security_Cryptography")]
867 pub struct SPC_SP_OPUS_INFO {
868 pub pwszProgramName: ::windows_sys::core::PCWSTR,
869 pub pMoreInfo: *mut SPC_LINK,
870 pub pPublisherInfo: *mut SPC_LINK,
871 }
872 #[cfg(feature = "Win32_Security_Cryptography")]
873 impl ::core::marker::Copy for SPC_SP_OPUS_INFO {}
874 #[cfg(feature = "Win32_Security_Cryptography")]
875 impl ::core::clone::Clone for SPC_SP_OPUS_INFO {
876 fn clone(&self) -> Self {
877 *self
878 }
879 }
880 #[repr(C)]
881 pub struct SPC_STATEMENT_TYPE {
882 pub cKeyPurposeId: u32,
883 pub rgpszKeyPurposeId: *mut ::windows_sys::core::PSTR,
884 }
885 impl ::core::marker::Copy for SPC_STATEMENT_TYPE {}
886 impl ::core::clone::Clone for SPC_STATEMENT_TYPE {
887 fn clone(&self) -> Self {
888 *self
889 }
890 }
891 #[repr(C)]
892 pub struct WINTRUST_BLOB_INFO {
893 pub cbStruct: u32,
894 pub gSubject: ::windows_sys::core::GUID,
895 pub pcwszDisplayName: ::windows_sys::core::PCWSTR,
896 pub cbMemObject: u32,
897 pub pbMemObject: *mut u8,
898 pub cbMemSignedMsg: u32,
899 pub pbMemSignedMsg: *mut u8,
900 }
901 impl ::core::marker::Copy for WINTRUST_BLOB_INFO {}
902 impl ::core::clone::Clone for WINTRUST_BLOB_INFO {
903 fn clone(&self) -> Self {
904 *self
905 }
906 }
907 #[repr(C)]
908 #[doc = "Required features: `\"Win32_Foundation\"`, `\"Win32_Security_Cryptography\"`"]
909 #[cfg(all(feature = "Win32_Foundation", feature = "Win32_Security_Cryptography"))]
910 pub struct WINTRUST_CATALOG_INFO {
911 pub cbStruct: u32,
912 pub dwCatalogVersion: u32,
913 pub pcwszCatalogFilePath: ::windows_sys::core::PCWSTR,
914 pub pcwszMemberTag: ::windows_sys::core::PCWSTR,
915 pub pcwszMemberFilePath: ::windows_sys::core::PCWSTR,
916 pub hMemberFile: super::super::Foundation::HANDLE,
917 pub pbCalculatedFileHash: *mut u8,
918 pub cbCalculatedFileHash: u32,
919 pub pcCatalogContext: *mut super::Cryptography::CTL_CONTEXT,
920 pub hCatAdmin: isize,
921 }
922 #[cfg(all(feature = "Win32_Foundation", feature = "Win32_Security_Cryptography"))]
923 impl ::core::marker::Copy for WINTRUST_CATALOG_INFO {}
924 #[cfg(all(feature = "Win32_Foundation", feature = "Win32_Security_Cryptography"))]
925 impl ::core::clone::Clone for WINTRUST_CATALOG_INFO {
926 fn clone(&self) -> Self {
927 *self
928 }
929 }
930 #[repr(C)]
931 #[doc = "Required features: `\"Win32_Foundation\"`, `\"Win32_Security_Cryptography\"`"]
932 #[cfg(all(feature = "Win32_Foundation", feature = "Win32_Security_Cryptography"))]
933 pub struct WINTRUST_CERT_INFO {
934 pub cbStruct: u32,
935 pub pcwszDisplayName: ::windows_sys::core::PCWSTR,
936 pub psCertContext: *mut super::Cryptography::CERT_CONTEXT,
937 pub chStores: u32,
938 pub pahStores: *mut super::Cryptography::HCERTSTORE,
939 pub dwFlags: u32,
940 pub psftVerifyAsOf: *mut super::super::Foundation::FILETIME,
941 }
942 #[cfg(all(feature = "Win32_Foundation", feature = "Win32_Security_Cryptography"))]
943 impl ::core::marker::Copy for WINTRUST_CERT_INFO {}
944 #[cfg(all(feature = "Win32_Foundation", feature = "Win32_Security_Cryptography"))]
945 impl ::core::clone::Clone for WINTRUST_CERT_INFO {
946 fn clone(&self) -> Self {
947 *self
948 }
949 }
950 #[repr(C)]
951 #[doc = "Required features: `\"Win32_Foundation\"`, `\"Win32_Security_Cryptography\"`"]
952 #[cfg(all(feature = "Win32_Foundation", feature = "Win32_Security_Cryptography"))]
953 pub struct WINTRUST_DATA {
954 pub cbStruct: u32,
955 pub pPolicyCallbackData: *mut ::core::ffi::c_void,
956 pub pSIPClientData: *mut ::core::ffi::c_void,
957 pub dwUIChoice: WINTRUST_DATA_UICHOICE,
958 pub fdwRevocationChecks: WINTRUST_DATA_REVOCATION_CHECKS,
959 pub dwUnionChoice: WINTRUST_DATA_UNION_CHOICE,
960 pub Anonymous: WINTRUST_DATA_0,
961 pub dwStateAction: WINTRUST_DATA_STATE_ACTION,
962 pub hWVTStateData: super::super::Foundation::HANDLE,
963 pub pwszURLReference: ::windows_sys::core::PWSTR,
964 pub dwProvFlags: WINTRUST_DATA_PROVIDER_FLAGS,
965 pub dwUIContext: WINTRUST_DATA_UICONTEXT,
966 pub pSignatureSettings: *mut WINTRUST_SIGNATURE_SETTINGS,
967 }
968 #[cfg(all(feature = "Win32_Foundation", feature = "Win32_Security_Cryptography"))]
969 impl ::core::marker::Copy for WINTRUST_DATA {}
970 #[cfg(all(feature = "Win32_Foundation", feature = "Win32_Security_Cryptography"))]
971 impl ::core::clone::Clone for WINTRUST_DATA {
972 fn clone(&self) -> Self {
973 *self
974 }
975 }
976 #[repr(C)]
977 #[doc = "Required features: `\"Win32_Foundation\"`, `\"Win32_Security_Cryptography\"`"]
978 #[cfg(all(feature = "Win32_Foundation", feature = "Win32_Security_Cryptography"))]
979 pub union WINTRUST_DATA_0 {
980 pub pFile: *mut WINTRUST_FILE_INFO,
981 pub pCatalog: *mut WINTRUST_CATALOG_INFO,
982 pub pBlob: *mut WINTRUST_BLOB_INFO,
983 pub pSgnr: *mut WINTRUST_SGNR_INFO,
984 pub pCert: *mut WINTRUST_CERT_INFO,
985 }
986 #[cfg(all(feature = "Win32_Foundation", feature = "Win32_Security_Cryptography"))]
987 impl ::core::marker::Copy for WINTRUST_DATA_0 {}
988 #[cfg(all(feature = "Win32_Foundation", feature = "Win32_Security_Cryptography"))]
989 impl ::core::clone::Clone for WINTRUST_DATA_0 {
990 fn clone(&self) -> Self {
991 *self
992 }
993 }
994 #[repr(C)]
995 #[doc = "Required features: `\"Win32_Foundation\"`"]
996 #[cfg(feature = "Win32_Foundation")]
997 pub struct WINTRUST_FILE_INFO {
998 pub cbStruct: u32,
999 pub pcwszFilePath: ::windows_sys::core::PCWSTR,
1000 pub hFile: super::super::Foundation::HANDLE,
1001 pub pgKnownSubject: *mut ::windows_sys::core::GUID,
1002 }
1003 #[cfg(feature = "Win32_Foundation")]
1004 impl ::core::marker::Copy for WINTRUST_FILE_INFO {}
1005 #[cfg(feature = "Win32_Foundation")]
1006 impl ::core::clone::Clone for WINTRUST_FILE_INFO {
1007 fn clone(&self) -> Self {
1008 *self
1009 }
1010 }
1011 #[repr(C)]
1012 #[doc = "Required features: `\"Win32_Security_Cryptography\"`"]
1013 #[cfg(feature = "Win32_Security_Cryptography")]
1014 pub struct WINTRUST_SGNR_INFO {
1015 pub cbStruct: u32,
1016 pub pcwszDisplayName: ::windows_sys::core::PCWSTR,
1017 pub psSignerInfo: *mut super::Cryptography::CMSG_SIGNER_INFO,
1018 pub chStores: u32,
1019 pub pahStores: *mut super::Cryptography::HCERTSTORE,
1020 }
1021 #[cfg(feature = "Win32_Security_Cryptography")]
1022 impl ::core::marker::Copy for WINTRUST_SGNR_INFO {}
1023 #[cfg(feature = "Win32_Security_Cryptography")]
1024 impl ::core::clone::Clone for WINTRUST_SGNR_INFO {
1025 fn clone(&self) -> Self {
1026 *self
1027 }
1028 }
1029 #[repr(C)]
1030 #[doc = "Required features: `\"Win32_Security_Cryptography\"`"]
1031 #[cfg(feature = "Win32_Security_Cryptography")]
1032 pub struct WINTRUST_SIGNATURE_SETTINGS {
1033 pub cbStruct: u32,
1034 pub dwIndex: u32,
1035 pub dwFlags: WINTRUST_SIGNATURE_SETTINGS_FLAGS,
1036 pub cSecondarySigs: u32,
1037 pub dwVerifiedSigIndex: u32,
1038 pub pCryptoPolicy: *mut super::Cryptography::CERT_STRONG_SIGN_PARA,
1039 }
1040 #[cfg(feature = "Win32_Security_Cryptography")]
1041 impl ::core::marker::Copy for WINTRUST_SIGNATURE_SETTINGS {}
1042 #[cfg(feature = "Win32_Security_Cryptography")]
1043 impl ::core::clone::Clone for WINTRUST_SIGNATURE_SETTINGS {
1044 fn clone(&self) -> Self {
1045 *self
1046 }
1047 }
1048 #[repr(C)]
1049 pub struct WIN_CERTIFICATE {
1050 pub dwLength: u32,
1051 pub wRevision: u16,
1052 pub wCertificateType: u16,
1053 pub bCertificate: [u8; 1],
1054 }
1055 impl ::core::marker::Copy for WIN_CERTIFICATE {}
1056 impl ::core::clone::Clone for WIN_CERTIFICATE {
1057 fn clone(&self) -> Self {
1058 *self
1059 }
1060 }
1061 #[repr(C)]
1062 #[doc = "Required features: `\"Win32_Foundation\"`"]
1063 #[cfg(feature = "Win32_Foundation")]
1064 pub struct WIN_SPUB_TRUSTED_PUBLISHER_DATA {
1065 pub hClientToken: super::super::Foundation::HANDLE,
1066 pub lpCertificate: *mut WIN_CERTIFICATE,
1067 }
1068 #[cfg(feature = "Win32_Foundation")]
1069 impl ::core::marker::Copy for WIN_SPUB_TRUSTED_PUBLISHER_DATA {}
1070 #[cfg(feature = "Win32_Foundation")]
1071 impl ::core::clone::Clone for WIN_SPUB_TRUSTED_PUBLISHER_DATA {
1072 fn clone(&self) -> Self {
1073 *self
1074 }
1075 }
1076 #[repr(C)]
1077 #[doc = "Required features: `\"Win32_Foundation\"`"]
1078 #[cfg(feature = "Win32_Foundation")]
1079 pub struct WIN_TRUST_ACTDATA_CONTEXT_WITH_SUBJECT {
1080 pub hClientToken: super::super::Foundation::HANDLE,
1081 pub SubjectType: *mut ::windows_sys::core::GUID,
1082 pub Subject: *mut ::core::ffi::c_void,
1083 }
1084 #[cfg(feature = "Win32_Foundation")]
1085 impl ::core::marker::Copy for WIN_TRUST_ACTDATA_CONTEXT_WITH_SUBJECT {}
1086 #[cfg(feature = "Win32_Foundation")]
1087 impl ::core::clone::Clone for WIN_TRUST_ACTDATA_CONTEXT_WITH_SUBJECT {
1088 fn clone(&self) -> Self {
1089 *self
1090 }
1091 }
1092 #[repr(C)]
1093 pub struct WIN_TRUST_ACTDATA_SUBJECT_ONLY {
1094 pub SubjectType: *mut ::windows_sys::core::GUID,
1095 pub Subject: *mut ::core::ffi::c_void,
1096 }
1097 impl ::core::marker::Copy for WIN_TRUST_ACTDATA_SUBJECT_ONLY {}
1098 impl ::core::clone::Clone for WIN_TRUST_ACTDATA_SUBJECT_ONLY {
1099 fn clone(&self) -> Self {
1100 *self
1101 }
1102 }
1103 #[repr(C)]
1104 #[doc = "Required features: `\"Win32_Foundation\"`"]
1105 #[cfg(feature = "Win32_Foundation")]
1106 pub struct WIN_TRUST_SUBJECT_FILE {
1107 pub hFile: super::super::Foundation::HANDLE,
1108 pub lpPath: ::windows_sys::core::PCWSTR,
1109 }
1110 #[cfg(feature = "Win32_Foundation")]
1111 impl ::core::marker::Copy for WIN_TRUST_SUBJECT_FILE {}
1112 #[cfg(feature = "Win32_Foundation")]
1113 impl ::core::clone::Clone for WIN_TRUST_SUBJECT_FILE {
1114 fn clone(&self) -> Self {
1115 *self
1116 }
1117 }
1118 #[repr(C)]
1119 #[doc = "Required features: `\"Win32_Foundation\"`"]
1120 #[cfg(feature = "Win32_Foundation")]
1121 pub struct WIN_TRUST_SUBJECT_FILE_AND_DISPLAY {
1122 pub hFile: super::super::Foundation::HANDLE,
1123 pub lpPath: ::windows_sys::core::PCWSTR,
1124 pub lpDisplayName: ::windows_sys::core::PCWSTR,
1125 }
1126 #[cfg(feature = "Win32_Foundation")]
1127 impl ::core::marker::Copy for WIN_TRUST_SUBJECT_FILE_AND_DISPLAY {}
1128 #[cfg(feature = "Win32_Foundation")]
1129 impl ::core::clone::Clone for WIN_TRUST_SUBJECT_FILE_AND_DISPLAY {
1130 fn clone(&self) -> Self {
1131 *self
1132 }
1133 }
1134 #[repr(C)]
1135 #[doc = "Required features: `\"Win32_Security_Cryptography\"`"]
1136 #[cfg(feature = "Win32_Security_Cryptography")]
1137 pub struct WTD_GENERIC_CHAIN_POLICY_CREATE_INFO {
1138 pub Anonymous: WTD_GENERIC_CHAIN_POLICY_CREATE_INFO_0,
1139 pub hChainEngine: super::Cryptography::HCERTCHAINENGINE,
1140 pub pChainPara: *mut super::Cryptography::CERT_CHAIN_PARA,
1141 pub dwFlags: u32,
1142 pub pvReserved: *mut ::core::ffi::c_void,
1143 }
1144 #[cfg(feature = "Win32_Security_Cryptography")]
1145 impl ::core::marker::Copy for WTD_GENERIC_CHAIN_POLICY_CREATE_INFO {}
1146 #[cfg(feature = "Win32_Security_Cryptography")]
1147 impl ::core::clone::Clone for WTD_GENERIC_CHAIN_POLICY_CREATE_INFO {
1148 fn clone(&self) -> Self {
1149 *self
1150 }
1151 }
1152 #[repr(C)]
1153 #[doc = "Required features: `\"Win32_Security_Cryptography\"`"]
1154 #[cfg(feature = "Win32_Security_Cryptography")]
1155 pub union WTD_GENERIC_CHAIN_POLICY_CREATE_INFO_0 {
1156 pub cbStruct: u32,
1157 pub cbSize: u32,
1158 }
1159 #[cfg(feature = "Win32_Security_Cryptography")]
1160 impl ::core::marker::Copy for WTD_GENERIC_CHAIN_POLICY_CREATE_INFO_0 {}
1161 #[cfg(feature = "Win32_Security_Cryptography")]
1162 impl ::core::clone::Clone for WTD_GENERIC_CHAIN_POLICY_CREATE_INFO_0 {
1163 fn clone(&self) -> Self {
1164 *self
1165 }
1166 }
1167 #[repr(C)]
1168 #[doc = "Required features: `\"Win32_Foundation\"`, `\"Win32_Security_Cryptography_Catalog\"`, `\"Win32_Security_Cryptography_Sip\"`"]
1169 #[cfg(all(feature = "Win32_Foundation", feature = "Win32_Security_Cryptography_Catalog", feature = "Win32_Security_Cryptography_Sip"))]
1170 pub struct WTD_GENERIC_CHAIN_POLICY_DATA {
1171 pub Anonymous: WTD_GENERIC_CHAIN_POLICY_DATA_0,
1172 pub pSignerChainInfo: *mut WTD_GENERIC_CHAIN_POLICY_CREATE_INFO,
1173 pub pCounterSignerChainInfo: *mut WTD_GENERIC_CHAIN_POLICY_CREATE_INFO,
1174 pub pfnPolicyCallback: PFN_WTD_GENERIC_CHAIN_POLICY_CALLBACK,
1175 pub pvPolicyArg: *mut ::core::ffi::c_void,
1176 }
1177 #[cfg(all(feature = "Win32_Foundation", feature = "Win32_Security_Cryptography_Catalog", feature = "Win32_Security_Cryptography_Sip"))]
1178 impl ::core::marker::Copy for WTD_GENERIC_CHAIN_POLICY_DATA {}
1179 #[cfg(all(feature = "Win32_Foundation", feature = "Win32_Security_Cryptography_Catalog", feature = "Win32_Security_Cryptography_Sip"))]
1180 impl ::core::clone::Clone for WTD_GENERIC_CHAIN_POLICY_DATA {
1181 fn clone(&self) -> Self {
1182 *self
1183 }
1184 }
1185 #[repr(C)]
1186 #[doc = "Required features: `\"Win32_Foundation\"`, `\"Win32_Security_Cryptography_Catalog\"`, `\"Win32_Security_Cryptography_Sip\"`"]
1187 #[cfg(all(feature = "Win32_Foundation", feature = "Win32_Security_Cryptography_Catalog", feature = "Win32_Security_Cryptography_Sip"))]
1188 pub union WTD_GENERIC_CHAIN_POLICY_DATA_0 {
1189 pub cbStruct: u32,
1190 pub cbSize: u32,
1191 }
1192 #[cfg(all(feature = "Win32_Foundation", feature = "Win32_Security_Cryptography_Catalog", feature = "Win32_Security_Cryptography_Sip"))]
1193 impl ::core::marker::Copy for WTD_GENERIC_CHAIN_POLICY_DATA_0 {}
1194 #[cfg(all(feature = "Win32_Foundation", feature = "Win32_Security_Cryptography_Catalog", feature = "Win32_Security_Cryptography_Sip"))]
1195 impl ::core::clone::Clone for WTD_GENERIC_CHAIN_POLICY_DATA_0 {
1196 fn clone(&self) -> Self {
1197 *self
1198 }
1199 }
1200 #[repr(C)]
1201 #[doc = "Required features: `\"Win32_Foundation\"`, `\"Win32_Security_Cryptography\"`"]
1202 #[cfg(all(feature = "Win32_Foundation", feature = "Win32_Security_Cryptography"))]
1203 pub struct WTD_GENERIC_CHAIN_POLICY_SIGNER_INFO {
1204 pub Anonymous: WTD_GENERIC_CHAIN_POLICY_SIGNER_INFO_0,
1205 pub pChainContext: *mut super::Cryptography::CERT_CHAIN_CONTEXT,
1206 pub dwSignerType: u32,
1207 pub pMsgSignerInfo: *mut super::Cryptography::CMSG_SIGNER_INFO,
1208 pub dwError: u32,
1209 pub cCounterSigner: u32,
1210 pub rgpCounterSigner: *mut *mut WTD_GENERIC_CHAIN_POLICY_SIGNER_INFO,
1211 }
1212 #[cfg(all(feature = "Win32_Foundation", feature = "Win32_Security_Cryptography"))]
1213 impl ::core::marker::Copy for WTD_GENERIC_CHAIN_POLICY_SIGNER_INFO {}
1214 #[cfg(all(feature = "Win32_Foundation", feature = "Win32_Security_Cryptography"))]
1215 impl ::core::clone::Clone for WTD_GENERIC_CHAIN_POLICY_SIGNER_INFO {
1216 fn clone(&self) -> Self {
1217 *self
1218 }
1219 }
1220 #[repr(C)]
1221 #[doc = "Required features: `\"Win32_Foundation\"`, `\"Win32_Security_Cryptography\"`"]
1222 #[cfg(all(feature = "Win32_Foundation", feature = "Win32_Security_Cryptography"))]
1223 pub union WTD_GENERIC_CHAIN_POLICY_SIGNER_INFO_0 {
1224 pub cbStruct: u32,
1225 pub cbSize: u32,
1226 }
1227 #[cfg(all(feature = "Win32_Foundation", feature = "Win32_Security_Cryptography"))]
1228 impl ::core::marker::Copy for WTD_GENERIC_CHAIN_POLICY_SIGNER_INFO_0 {}
1229 #[cfg(all(feature = "Win32_Foundation", feature = "Win32_Security_Cryptography"))]
1230 impl ::core::clone::Clone for WTD_GENERIC_CHAIN_POLICY_SIGNER_INFO_0 {
1231 fn clone(&self) -> Self {
1232 *self
1233 }
1234 }
1235 #[doc = "Required features: `\"Win32_Foundation\"`"]
1236 #[cfg(feature = "Win32_Foundation")]
1237 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>;
1238 #[doc = "Required features: `\"Win32_Foundation\"`, `\"Win32_Security_Cryptography_Catalog\"`, `\"Win32_Security_Cryptography_Sip\"`"]
1239 #[cfg(all(feature = "Win32_Foundation", feature = "Win32_Security_Cryptography_Catalog", feature = "Win32_Security_Cryptography_Sip"))]
1240 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>;
1241 #[doc = "Required features: `\"Win32_Foundation\"`, `\"Win32_Security_Cryptography_Catalog\"`, `\"Win32_Security_Cryptography_Sip\"`"]
1242 #[cfg(all(feature = "Win32_Foundation", feature = "Win32_Security_Cryptography_Catalog", feature = "Win32_Security_Cryptography_Sip"))]
1243 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>;
1244 #[doc = "Required features: `\"Win32_Foundation\"`, `\"Win32_Security_Cryptography_Catalog\"`, `\"Win32_Security_Cryptography_Sip\"`"]
1245 #[cfg(all(feature = "Win32_Foundation", feature = "Win32_Security_Cryptography_Catalog", feature = "Win32_Security_Cryptography_Sip"))]
1246 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>;
1247 #[doc = "Required features: `\"Win32_Foundation\"`, `\"Win32_Security_Cryptography_Catalog\"`, `\"Win32_Security_Cryptography_Sip\"`"]
1248 #[cfg(all(feature = "Win32_Foundation", feature = "Win32_Security_Cryptography_Catalog", feature = "Win32_Security_Cryptography_Sip"))]
1249 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>;
1250 pub type PFN_CPD_MEM_ALLOC = ::core::option::Option<unsafe extern "system" fn(cbsize: u32) -> *mut ::core::ffi::c_void>;
1251 pub type PFN_CPD_MEM_FREE = ::core::option::Option<unsafe extern "system" fn(pvmem2free: *const ::core::ffi::c_void) -> ()>;
1252 #[doc = "Required features: `\"Win32_Foundation\"`"]
1253 #[cfg(feature = "Win32_Foundation")]
1254 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>;
1255 #[doc = "Required features: `\"Win32_Foundation\"`, `\"Win32_Security_Cryptography_Catalog\"`, `\"Win32_Security_Cryptography_Sip\"`"]
1256 #[cfg(all(feature = "Win32_Foundation", feature = "Win32_Security_Cryptography_Catalog", feature = "Win32_Security_Cryptography_Sip"))]
1257 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>;
1258 #[doc = "Required features: `\"Win32_Foundation\"`, `\"Win32_Security_Cryptography_Catalog\"`, `\"Win32_Security_Cryptography_Sip\"`"]
1259 #[cfg(all(feature = "Win32_Foundation", feature = "Win32_Security_Cryptography_Catalog", feature = "Win32_Security_Cryptography_Sip"))]
1260 pub type PFN_PROVIDER_CERTTRUST_CALL = ::core::option::Option<unsafe extern "system" fn(pprovdata: *mut CRYPT_PROVIDER_DATA) -> ::windows_sys::core::HRESULT>;
1261 #[doc = "Required features: `\"Win32_Foundation\"`, `\"Win32_Security_Cryptography_Catalog\"`, `\"Win32_Security_Cryptography_Sip\"`"]
1262 #[cfg(all(feature = "Win32_Foundation", feature = "Win32_Security_Cryptography_Catalog", feature = "Win32_Security_Cryptography_Sip"))]
1263 pub type PFN_PROVIDER_CLEANUP_CALL = ::core::option::Option<unsafe extern "system" fn(pprovdata: *mut CRYPT_PROVIDER_DATA) -> ::windows_sys::core::HRESULT>;
1264 #[doc = "Required features: `\"Win32_Foundation\"`, `\"Win32_Security_Cryptography_Catalog\"`, `\"Win32_Security_Cryptography_Sip\"`"]
1265 #[cfg(all(feature = "Win32_Foundation", feature = "Win32_Security_Cryptography_Catalog", feature = "Win32_Security_Cryptography_Sip"))]
1266 pub type PFN_PROVIDER_FINALPOLICY_CALL = ::core::option::Option<unsafe extern "system" fn(pprovdata: *mut CRYPT_PROVIDER_DATA) -> ::windows_sys::core::HRESULT>;
1267 #[doc = "Required features: `\"Win32_Foundation\"`, `\"Win32_Security_Cryptography_Catalog\"`, `\"Win32_Security_Cryptography_Sip\"`"]
1268 #[cfg(all(feature = "Win32_Foundation", feature = "Win32_Security_Cryptography_Catalog", feature = "Win32_Security_Cryptography_Sip"))]
1269 pub type PFN_PROVIDER_INIT_CALL = ::core::option::Option<unsafe extern "system" fn(pprovdata: *mut CRYPT_PROVIDER_DATA) -> ::windows_sys::core::HRESULT>;
1270 #[doc = "Required features: `\"Win32_Foundation\"`, `\"Win32_Security_Cryptography_Catalog\"`, `\"Win32_Security_Cryptography_Sip\"`"]
1271 #[cfg(all(feature = "Win32_Foundation", feature = "Win32_Security_Cryptography_Catalog", feature = "Win32_Security_Cryptography_Sip"))]
1272 pub type PFN_PROVIDER_OBJTRUST_CALL = ::core::option::Option<unsafe extern "system" fn(pprovdata: *mut CRYPT_PROVIDER_DATA) -> ::windows_sys::core::HRESULT>;
1273 #[doc = "Required features: `\"Win32_Foundation\"`, `\"Win32_Security_Cryptography_Catalog\"`, `\"Win32_Security_Cryptography_Sip\"`"]
1274 #[cfg(all(feature = "Win32_Foundation", feature = "Win32_Security_Cryptography_Catalog", feature = "Win32_Security_Cryptography_Sip"))]
1275 pub type PFN_PROVIDER_SIGTRUST_CALL = ::core::option::Option<unsafe extern "system" fn(pprovdata: *mut CRYPT_PROVIDER_DATA) -> ::windows_sys::core::HRESULT>;
1276 #[doc = "Required features: `\"Win32_Foundation\"`, `\"Win32_Security_Cryptography_Catalog\"`, `\"Win32_Security_Cryptography_Sip\"`"]
1277 #[cfg(all(feature = "Win32_Foundation", feature = "Win32_Security_Cryptography_Catalog", feature = "Win32_Security_Cryptography_Sip"))]
1278 pub type PFN_PROVIDER_TESTFINALPOLICY_CALL = ::core::option::Option<unsafe extern "system" fn(pprovdata: *mut CRYPT_PROVIDER_DATA) -> ::windows_sys::core::HRESULT>;
1279 #[doc = "Required features: `\"Win32_Foundation\"`, `\"Win32_Security_Cryptography_Catalog\"`, `\"Win32_Security_Cryptography_Sip\"`"]
1280 #[cfg(all(feature = "Win32_Foundation", feature = "Win32_Security_Cryptography_Catalog", feature = "Win32_Security_Cryptography_Sip"))]
1281 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>;
1282 #[doc = "Required features: `\"Win32_Foundation\"`, `\"Win32_Security_Cryptography_Catalog\"`, `\"Win32_Security_Cryptography_Sip\"`"]
1283 #[cfg(all(feature = "Win32_Foundation", feature = "Win32_Security_Cryptography_Catalog", feature = "Win32_Security_Cryptography_Sip"))]
1284 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>;