ASSOCIATIONLEVEL enumeration (shobjidl_core.h)

Specifies the source of the default association for a file name extension. Used by methods of the IApplicationAssociationRegistration interface.

Syntax

typedef enum ASSOCIATIONLEVEL {
  AL_MACHINE = 0,
  AL_EFFECTIVE,
  AL_USER
} ;

Constants

 
AL_MACHINE
Value: 0
The machine-level default application association.
AL_EFFECTIVE
The effective default for the current user. This value should be used by most applications.
AL_USER
The per-user default application association. If this value is used and no per-user default is declared, the calling method fails with a value of HRESULT_FROM_WIN32(ERROR_NO_ASSOCIATION).

Requirements

Requirement Value
Minimum supported client Windows Vista [desktop apps only]
Minimum supported server Windows Server 2008 [desktop apps only]
Header shobjidl_core.h (include Shobjidl.h)

See also

HRESULT_FROM_WIN32