Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
StrongNameCompareAssemblies Function

StrongNameCompareAssemblies Function

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

This function has been deprecated. Use the ICLRStrongName::StrongNameCompareAssemblies method instead.

BOOLEAN StrongNameCompareAssemblies (
    [in]  LPCWSTR   wszAssembly1,
    [in]  LPCWSTR   wszAssembly2,
    [out] DWORD     *pdwResult


[in] The path to the first assembly.


[in] The path to the second assembly.


[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.

true on successful completion; otherwise, false.

Platforms: See .NET Framework System Requirements.

Header: StrongName.h

Library: Included as a resource in MsCorEE.dll

.NET Framework Versions: 4.6, 4.5.2, 4.5.1, 4.5, 4, 3.5 SP1, 3.5, 3.0 SP1, 3.0, 2.0 SP1, 2.0, 1.1, 1.0

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

If the StrongNameCompareAssemblies function does not complete successfully, call the StrongNameErrorInfo function to retrieve the last generated error.

© 2015 Microsoft