// See the LICENSE file in the project root for more information.
using System;
-using System.Text;
-using System.Diagnostics;
using System.Runtime.InteropServices;
-using Microsoft.Win32.SafeHandles;
-
internal static partial class Interop
{
internal static partial class Crypt32
<Compile Include="Interop\Windows\Crypt32\Interop.CryptEncodeDecodeWrappers.cs" />
<Compile Include="Interop\Windows\Crypt32\Interop.CryptEncodeObject.cs" />
<Compile Include="Interop\Windows\Crypt32\Interop.CryptKeySpec.cs" />
- <Compile Include="Interop\Windows\Crypt32\Interop.CryptMsgClose.cs" />
<Compile Include="Interop\Windows\Crypt32\Interop.CryptMsgControl.cs" />
<Compile Include="Interop\Windows\Crypt32\Interop.CryptMsgGetParam.cs" />
<Compile Include="Interop\Windows\Crypt32\Interop.CryptMsgOpenToDecode.cs" />
<Compile Include="$(CommonPath)\Interop\Windows\Crypt32\Interop.CertFreeCertificateContext.cs">
<Link>Common\Interop\Windows\Crypt32\Interop.CertFreeCertificateContext.cs</Link>
</Compile>
+ <Compile Include="$(CommonPath)\Interop\Windows\Crypt32\Interop.CryptMsgClose.cs">
+ <Link>Common\Interop\Windows\Crypt32\Interop.CryptMsgClose.cs</Link>
+ </Compile>
<Compile Include="$(CommonPath)\Interop\Windows\Crypt32\Interop.DATA_BLOB.cs">
<Link>Common\Interop\Windows\Crypt32\Interop.DATA_BLOB.cs</Link>
</Compile>
private static extern bool CertVerifyCertificateChainPolicy(IntPtr pszPolicyOID, SafeX509ChainHandle pChainContext, [In] ref CERT_CHAIN_POLICY_PARA pPolicyPara, [In, Out] ref CERT_CHAIN_POLICY_STATUS pPolicyStatus);
[DllImport(Libraries.Crypt32, CharSet = CharSet.Unicode, SetLastError = true)]
- public static extern bool CryptMsgClose(IntPtr hCryptMsg);
-
- [DllImport(Libraries.Crypt32, CharSet = CharSet.Unicode, SetLastError = true)]
public static extern unsafe bool CryptImportPublicKeyInfoEx2(CertEncodingType dwCertEncodingType, CERT_PUBLIC_KEY_INFO* pInfo, int dwFlags, void* pvAuxInfo, out SafeBCryptKeyHandle phKey);
[DllImport(Libraries.Crypt32, CharSet = CharSet.Unicode, SetLastError = true)]
{
protected sealed override bool ReleaseHandle()
{
- bool success = Interop.crypt32.CryptMsgClose(handle);
+ bool success = Interop.Crypt32.CryptMsgClose(handle);
return success;
}
}
<Compile Include="$(CommonPath)\Interop\Windows\Crypt32\Interop.CertCloseStore.cs">
<Link>Common\Interop\Windows\Crypt32\Interop.CertCloseStore.cs</Link>
</Compile>
+ <Compile Include="$(CommonPath)\Interop\Windows\Crypt32\Interop.CryptMsgClose.cs">
+ <Link>Common\Interop\Windows\Crypt32\Interop.CryptMsgClose.cs</Link>
+ </Compile>
<Compile Include="$(CommonPath)\Interop\Windows\Crypt32\Interop.CertFreeCertificateContext.cs">
<Link>Common\Interop\Windows\Crypt32\Interop.CertFreeCertificateContext.cs</Link>
</Compile>