19 references to Crypt32
System.Windows.Extensions (19)
_generated\0\LibraryImports.g.cs (2)
199
internal static partial bool CertGetCertificateContextProperty(global::Microsoft.Win32.SafeHandles.SafeCertContextHandle pCertContext, global::Interop.
Crypt32
.CertContextPropId dwPropId, byte[] pvData, ref int pcbData)
235
static extern unsafe int __PInvoke(nint __pCertContext_native, global::Interop.
Crypt32
.CertContextPropId __dwPropId_native, byte* __pvData_native, int* __pcbData_native);
src\runtime\src\libraries\Common\src\Microsoft\Win32\SafeHandles\SafeCertContextHandle.cs (1)
8
using static Interop.
Crypt32
;
src\runtime\src\libraries\Common\src\Microsoft\Win32\SafeHandles\SafeCertStoreHandle.cs (1)
13
bool success = Interop.
Crypt32
.CertCloseStore(handle, 0);
System\Security\Cryptography\X509Certificates\X509Certificate2UI.cs (6)
108
SafeCertStoreHandle safeCertStoreHandle = Interop.
Crypt32
.CertOpenStore(
109
(IntPtr)Interop.
Crypt32
.CERT_STORE_PROV_MEMORY,
110
Interop.
Crypt32
.X509_ASN_ENCODING | Interop.
Crypt32
.PKCS_7_ASN_ENCODING,
157
if (!Interop.
Crypt32
.CertAddCertificateLinkToStore(safeCertStoreHandle,
159
Interop.
Crypt32
.CERT_STORE_ADD_ALWAYS,
System\Security\Cryptography\X509Certificates\X509Utils.cs (9)
16
SafeCertContextHandle safeCertContext = Interop.
Crypt32
.CertDuplicateCertificateContext(certificate.Handle);
27
safeCertStoreHandle = Interop.
Crypt32
.CertOpenStore(
28
new IntPtr(Interop.
Crypt32
.CERT_STORE_PROV_MEMORY),
29
Interop.
Crypt32
.X509_ASN_ENCODING | Interop.
Crypt32
.PKCS_7_ASN_ENCODING,
47
if (!Interop.
Crypt32
.CertAddCertificateLinkToStore(
50
Interop.
Crypt32
.CERT_STORE_ADD_ALWAYS,
64
IntPtr pEnumContext = Interop.
Crypt32
.CertEnumCertificatesInStore(safeCertStoreHandle, IntPtr.Zero);
69
pEnumContext = Interop.
Crypt32
.CertEnumCertificatesInStore(safeCertStoreHandle, pEnumContext);