ICLRStrongName::StrongNameCompareAssemblies Method

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

HRESULT StrongNameCompareAssemblies (
    [in]  LPCWSTR   wszAssembly1,
    [in]  LPCWSTR   wszAssembly2,
    [out] DWORD     *pdwResult
);

wszAssembly1

[in] The path to the first assembly.

wszAssembly2

[in] The path to the second assembly.

pdwResult

[out] One of the following values:

  • SN_CMP_DIFFERENT (0) - Specifies that the assemblies contain different data.

  • SN_CMP_IDENTICAL (1) - Specifies that the assemblies are exactly the same, including their signatures and checksum.

  • SN_CMP_SIGONLY (2) - Specifies that the assemblies differ only by signature and checksum.

S_OK if the method completed successfully; otherwise, an HRESULT value that indicates failure (see Common HRESULT Values for a list).

Platforms: See .NET Framework System Requirements.

Header: MetaHost.h

Library: Included as a resource in MSCorEE.dll

.NET Framework Versions: 4

The strong name signature of an assembly consists of the assembly's text name, version, culture, and public key token.

Was this page helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

ADD
Show:
© 2014 Microsoft