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