Sdílet prostřednictvím


ICLRStrongName Interface

Updated: August 2010

Groups all strong naming global static functions that are exported by MSCorEE.dll into a single interface. All ICLRStrongName methods return standard COM HRESULTs.

Methods

Method

Description

ICLRStrongName::GetHashFromAssemblyFile Method

Gets a hash of the specified assembly file, using the specified hash algorithm.

ICLRStrongName::GetHashFromAssemblyFileW Method

Gets a hash of the assembly file specified as a Unicode string, using the specified hash algorithm.

ICLRStrongName::GetHashFromBlob Method

Gets a hash of the assembly at the specified memory address, using the specified hash algorithm.

ICLRStrongName::GetHashFromFile Method

Generates a hash over the contents of the specified file.

ICLRStrongName::GetHashFromFileW Method

Generates a hash over the contents of the file specified by a Unicode string.

ICLRStrongName::GetHashFromHandle Method

Generates a hash over the contents of the file with the specified file handle, using the specified hash algorithm.

ICLRStrongName::StrongNameCompareAssemblies Method

Determines whether two assemblies differ only by their strong name signatures.

ICLRStrongName::StrongNameFreeBuffer Method

Frees memory that was allocated with a previous call to a strong name method such as StrongNameGetPublicKey, StrongNameTokenFromPublicKey, or StrongNameSignatureGeneration.

ICLRStrongName::StrongNameGetBlob Method

Fills the specified buffer with the binary representation of the executable file at the specified address.

ICLRStrongName::StrongNameGetBlobFromImage Method

Gets a binary representation of the assembly image at the specified memory address.

ICLRStrongName::StrongNameGetPublicKey Method

Gets the public key from a private/public key pair.

ICLRStrongName::StrongNameHashSize Method

Gets the buffer size required for a hash, using the specified hash algorithm.

ICLRStrongName::StrongNameKeyDelete Method

Deletes the specified key container.

ICLRStrongName::StrongNameKeyGen Method

Creates a new public/private key pair for strong name use.

ICLRStrongName::StrongNameKeyGenEx Method

Generates a new public/private key pair with the specified key size for strong name use.

ICLRStrongName::StrongNameKeyInstall Method

Imports a public/private key pair into a container.

ICLRStrongName::StrongNameSignatureGeneration Method

Generates a strong name signature for the specified assembly.

ICLRStrongName::StrongNameSignatureGenerationEx Method

Generates a strong name signature for the specified assembly, based on the specified flags.

ICLRStrongName::StrongNameSignatureSize Method

Returns the size of the strong name signature.

ICLRStrongName::StrongNameSignatureVerification Method

Gets a value indicating whether the assembly manifest at the supplied path contains a strong name signature, which is verified according to the specified flags.

ICLRStrongName::StrongNameSignatureVerificationEx Method

Gets a value indicating whether the assembly manifest at the supplied path contains a strong name signature.

ICLRStrongName::StrongNameSignatureVerificationFromImage Method

Verifies that an assembly that has already been mapped to memory is valid for the associated public key.

ICLRStrongName::StrongNameTokenFromAssembly Method

Creates a strong name token from the specified assembly file.

ICLRStrongName::StrongNameTokenFromAssemblyEx Method

Creates a strong name token from the specified assembly file, and returns the public key.

ICLRStrongName::StrongNameTokenFromPublicKey Method

Gets a token representing a public key.

Remarks

You can get an instance of the ICLRStrongName by calling the ICLRRuntimeInfo::GetInterface method using CLSID_CLRStrongName and IID_ICLRStrongName as parameters.

Requirements

Platforms: See .NET Framework System Requirements.

Header: MetaHost.h

Library: Included as a resource in MSCorEE.dll

.NET Framework Versions: 4

See Also

Other Resources

Hosting Interfaces

Hosting (Unmanaged API Reference)

Change History

Date

History

Reason

August 2010

Added information about getting an instance of the interface.

Information enhancement.

July 2010

Added information about members.

Information enhancement.