Muokkaa

Jaa


StrongNameCompareAssemblies Function

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

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

Syntax

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

Parameters

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.

Return Value

true on successful completion; otherwise, false.

Requirements

Platforms: See System Requirements.

Header: StrongName.h

Library: Included as a resource in MsCorEE.dll

.NET Framework Versions: Available since 1.0

Remarks

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.

See also