File: Microsoft\Runtime\Hosting\IClrStrongNameUsingIntPtr.cs
Project: Microsoft.Build.Tasks.v4.0.dll (Microsoft.Build.Tasks.v4.0)
#region Assembly Microsoft.Build.Tasks.v4.0, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
// C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.0\Microsoft.Build.Tasks.v4.0.dll
#endregion
 
using System;
using System.Runtime.InteropServices;
using System.Security;
 
namespace Microsoft.Runtime.Hosting
{
    [ComConversionLoss]
    [Guid("9FD93CCF-3280-4391-B3A9-96E1CDE77C8D")]
    [InterfaceType(ComInterfaceType.InterfaceIsIUnknown)]
    [SecurityCritical]
    internal interface IClrStrongNameUsingIntPtr
    {
        int GetHashFromAssemblyFile(string pszFilePath, ref int piHashAlg, out byte[] pbHash, int cchHash, out int pchHash);
        int GetHashFromAssemblyFileW(string pwzFilePath, ref int piHashAlg, byte[] pbHash, int cchHash, out int pchHash);
        int GetHashFromBlob(IntPtr pbBlob, int cchBlob, ref int piHashAlg, byte[] pbHash, int cchHash, out int pchHash);
        int GetHashFromFile(string pszFilePath, ref int piHashAlg, byte[] pbHash, int cchHash, out int pchHash);
        int GetHashFromFileW(string pwzFilePath, ref int piHashAlg, byte[] pbHash, int cchHash, out int pchHash);
        int GetHashFromHandle(IntPtr hFile, ref int piHashAlg, byte[] pbHash, int cchHash, out int pchHash);
        int StrongNameCompareAssemblies(string pwzAssembly1, string pwzAssembly2, out int dwResult);
        int StrongNameFreeBuffer(IntPtr pbMemory);
        int StrongNameGetBlob(string pwzFilePath, byte[] pbBlob, ref int pcbBlob);
        int StrongNameGetBlobFromImage(IntPtr pbBase, int dwLength, byte[] pbBlob, ref int pcbBlob);
        int StrongNameGetPublicKey(string pwzKeyContainer, IntPtr pbKeyBlob, int cbKeyBlob, out IntPtr ppbPublicKeyBlob, out int pcbPublicKeyBlob);
        int StrongNameHashSize(int ulHashAlg, out int cbSize);
        int StrongNameKeyDelete(string pwzKeyContainer);
        int StrongNameKeyGen(string pwzKeyContainer, int dwFlags, out IntPtr ppbKeyBlob, out int pcbKeyBlob);
        int StrongNameKeyGenEx(string pwzKeyContainer, int dwFlags, int dwKeySize, out IntPtr ppbKeyBlob, out int pcbKeyBlob);
        int StrongNameKeyInstall(string pwzKeyContainer, IntPtr pbKeyBlob, int cbKeyBlob);
        int StrongNameSignatureGeneration(string pwzFilePath, string pwzKeyContainer, IntPtr pbKeyBlob, int cbKeyBlob, IntPtr ppbSignatureBlob, out int pcbSignatureBlob);
        int StrongNameSignatureGenerationEx(string wszFilePath, string wszKeyContainer, IntPtr pbKeyBlob, int cbKeyBlob, IntPtr ppbSignatureBlob, out int pcbSignatureBlob, int dwFlags);
        int StrongNameSignatureSize(IntPtr pbPublicKeyBlob, int cbPublicKeyBlob, out int pcbSize);
        int StrongNameSignatureVerification(string pwzFilePath, int dwInFlags, out int dwOutFlags);
        int StrongNameSignatureVerificationEx(string pwzFilePath, bool fForceVerification, out bool fWasVerified);
        int StrongNameSignatureVerificationFromImage(IntPtr pbBase, int dwLength, int dwInFlags, out int dwOutFlags);
        int StrongNameTokenFromAssembly(string pwzFilePath, out IntPtr ppbStrongNameToken, out int pcbStrongNameToken);
        int StrongNameTokenFromAssemblyEx(string pwzFilePath, out IntPtr ppbStrongNameToken, out int pcbStrongNameToken, out IntPtr ppbPublicKeyBlob, out int pcbPublicKeyBlob);
        int StrongNameTokenFromPublicKey(IntPtr pbPublicKeyBlob, int cbPublicKeyBlob, out IntPtr ppbStrongNameToken, out int pcbStrongNameToken);
    }
}