ASM_CMP_FLAGS enumeration (winsxs.h)

The values of the ASM_CMP_FLAGS enumeration are used by the IsEqual method to specify which portions of two assembly names to compare.

Syntax

typedef enum __MIDL_IAssemblyName_0004 {
  ASM_CMPF_NAME = 0x1,
  ASM_CMPF_MAJOR_VERSION = 0x2,
  ASM_CMPF_MINOR_VERSION = 0x4,
  ASM_CMPF_BUILD_NUMBER = 0x8,
  ASM_CMPF_REVISION_NUMBER = 0x10,
  ASM_CMPF_PUBLIC_KEY_TOKEN = 0x20,
  ASM_CMPF_CULTURE = 0x40,
  ASM_CMPF_CUSTOM = 0x80,
  ASM_CMPF_ALL,
  ASM_CMPF_DEFAULT = 0x100
} ASM_CMP_FLAGS;

Constants

 
ASM_CMPF_NAME
Value: 0x1
Compare the name portion of the assembly names.
ASM_CMPF_MAJOR_VERSION
Value: 0x2
Compare the major version portion of the assembly names.
ASM_CMPF_MINOR_VERSION
Value: 0x4
Compare the minor version portion of the assembly names.
ASM_CMPF_BUILD_NUMBER
Value: 0x8
Compare the build version portion of the assembly names.
ASM_CMPF_REVISION_NUMBER
Value: 0x10
Compare the revision version portion of the assembly names.
ASM_CMPF_PUBLIC_KEY_TOKEN
Value: 0x20
Compare the public key token portion of the assembly names.
ASM_CMPF_CULTURE
Value: 0x40
Compare the culture portion of the assembly names.
ASM_CMPF_CUSTOM
Value: 0x80
Compare the custom portion of the assembly names.
ASM_CMPF_ALL
Compare all portions of the assembly names. This is equivalent to setting:

<br>ASM_CMPF_NAME | ASM_CMPF_MAJOR_VERSION | ASM_CMPF_MINOR_VERSION | ASM_CMPF_REVISION_NUMBER | ASM_CMPF_BUILD_NUMBER | ASM_CMPF_PUBLIC_KEY_TOKEN | ASM_CMPF_CULTURE | ASM_CMPF_CUSTOM<br>
ASM_CMPF_DEFAULT
Value: 0x100
Ignore the version number to compare assemblies with simple names.

Requirements

Requirement Value
Minimum supported client Windows Vista [desktop apps only]
Minimum supported server Windows Server 2008 [desktop apps only]
Header winsxs.h